File: run-unit-test

package info (click to toggle)
graphlan 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 15,720 kB
  • ctags: 136
  • sloc: xml: 29,182; python: 1,681; sh: 137; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (4)
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 [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/examples/* $ADTTMP
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 $ADTTMP/*