#!/bin/sh
#
# Copyright (C) 2013 Canonical, Ltd.
#
# Authors:
#  Scott Sweeny <scott.sweeny@canonical.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Run the dbus introspection tests and store the results in /var/tmp
# Normally this would go in /var/log/ but these tests have to run in a session
# (and therefore as the ufa user who doesn't have write access to /var/log) to
# talk to dbus and besides we might want to fetch these results from Android
# for reporting.
nosetests --verbose /usr/share/cambridge-ufacts/ufaspy 2>&1 | tee /var/tmp/ufaspy.log
