Implement test initialization properly

Make test-init.sh work even if tests are executed from another
directory.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2014-07-08 14:56:51 +02:00
parent 8aaaf18268
commit 7904af5d9d
49 changed files with 52 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh
. ./test-init.sh
. "${TEST_INIT:-./test-init.sh}"
if [ "$1" = 'actual' -o "$1" = 'expected' ]; then
echo 42