summaryrefslogtreecommitdiff
path: root/test/libapt/run-tests.sh
blob: 365bbe215fa45fe1fc09e8ac4e63f9da88465c29 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
echo "Compiling the tests ..."
make
echo "Running all testcases ..."
PATH=$(pwd)/../../build/bin
for testapp in $(/bin/ls ${PATH}/*_libapt_test)
do
	echo -n "Testing with \033[1;35m$(/usr/bin/basename ${testapp})\033[0m ... "
	LD_LIBRARY_PATH=${PATH} ${testapp} && echo "\033[1;32mOKAY\033[0m" || echo "\033[1;31mFAILED\033[0m"
done