~chicharreros/magicicada-client/1.0

« back to all changes in this revision

Viewing changes to run-tests

  • Committer: Magicicada Bot
  • Author(s): Facundo Batista
  • Date: 2018-03-22 18:27:26 UTC
  • mfrom: (1440.1.2 new-trash)
  • Revision ID: magicicada_bot-20180322182726-s9zxdqdnrqnuyav9
[r=nataliabidart] Start using a new way to send to trash, going away from Gnome.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
# version.  If you delete this exception statement from all source
29
29
# files in the program, then also delete it here.
30
30
 
31
 
# Allow alternative python executable via environment variable.  This is
32
 
# useful for virtualenv testing.
33
 
PYTHON=${PYTHON:-'python'}
34
 
 
35
31
set -e
36
32
if [ $# -ne 0 ]; then
37
33
    # run specific module given by the caller
42
38
fi
43
39
 
44
40
SYSNAME=`uname -s`
45
 
 
46
41
if [ "$SYSNAME" == "Darwin" ]; then
47
42
    IGNORE_FILES="test_linux.py,test_windows.py"
48
43
    IGNORE_PATHS="ubuntuone/platform/tests/linux"
54
49
 
55
50
echo "*** Running test suite for ""$MODULE"" ***"
56
51
export SSL_CERTIFICATES_DIR=/etc/ssl/certs
57
 
$PYTHON ./setup.py build
58
 
u1trial -i "$IGNORE_FILES" -p "$IGNORE_PATHS" "$MODULE"
59
 
$PYTHON ./setup.py clean
 
52
.env/bin/python /usr/bin/u1trial -i "$IGNORE_FILES" -p "$IGNORE_PATHS" $MODULE
60
53
rm -rf _trial_temp
61
 
rm -rf build