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/*
|