Basic setup for tests

Based on the test setup of stub.sh: https://github.com/jimeh/stub.sh
This commit is contained in:
2014-05-24 11:01:23 +01:00
parent 2aa549ff70
commit 1bf087faa3
5 changed files with 85 additions and 0 deletions

8
test/test-helper.sh Normal file
View File

@@ -0,0 +1,8 @@
[ -n "$TEST_DEBUG" ] && set -x
# Set testroot variable.
testroot="$(dirname "$BASH_SOURCE")"
# Include assert.sh and stub.sh libraries.
source "${testroot}/assert.sh"
source "${testroot}/stub.sh"