File: run-unit-test

package info (click to toggle)
python-ruffus 2.6.3%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,828 kB
  • ctags: 2,843
  • sloc: python: 15,745; makefile: 180; sh: 14
file content (24 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh -e

pkg=python-ruffus
if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
mkdir ruffus
cd ruffus
cp -a /usr/share/doc/python-ruffus-doc/test .
cd test
find . -type f -name "*.gz" -exec gunzip \{\} \;
# mod +x [a-z]*.py

export LC_ALL=C.UTF-8
for testscript in run_all_unit_tests*.cmd ; do
    # exclude tests with known issues ... should not be needed any more since fix_test.patch
#    sed -i -e 's/\(unittest test_file_name_parameters.*\)\\/\1 true/' \
#           -e 's/\(unittest test_ruffus_utility.*\)\\/\1 true/' \
#        $testscript
    sh $testscript
done

# rm -f $ADTTMP/*