summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-11-26 22:24:03 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-11-26 22:24:03 +0100
commite4a30974d7b3fa092d962682e22c5a8171cf3407 (patch)
tree2e35f75a530203a23d85ec88e874dcf7c1a145b6
parent45df0ad2aab7d019cec855ba2cfe7ecdd0f8c7c8 (diff)
Add a very simple test runner
-rwxr-xr-xtest/libapt/run-tests.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libapt/run-tests.sh b/test/libapt/run-tests.sh
new file mode 100755
index 000000000..365bbe215
--- /dev/null
+++ b/test/libapt/run-tests.sh
@@ -0,0 +1,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