File: run-unit-test

package info (click to toggle)
graphlan 1.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,848 kB
  • sloc: xml: 29,182; python: 1,690; sh: 137; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 663 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
#!/bin/sh -e

pkg=graphlan
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $AUTOPKGTEST_TMP
cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
find . -name "*.gz" -exec gunzip \{\} \;
for testdir in `find . -mindepth 1 -maxdepth 1 -type d` ; do
    cd $testdir
    for tscript in `ls *.sh | sort` ; do
        if grep -q export2graphlan $tscript ; then
            echo "Test script $testdir/$tscript requires export2graphlan which is not available."
        else
            echo "Running test script $testdir/$tscript ."
            sh $tscript
        fi
    done
    cd ..
done
rm -rf $AUTOPKGTEST_TMP/*