test-lib*.sh: set GIT_CEILING_DIRECTORIES
[topgit/pro.git] / t / t0000-itworks.sh
blob723f7d5eb57a5d7187b9f9bfda271ad30f0cd90b
1 #!/bin/sh
3 TEST_NO_CREATE_REPO=1
5 test_description='Test sanity of test framework
7 1 - it works
9 Just a basic test that always succeeds
11 2 - it works on stdin
13 Another basic test but read using the magic -
15 3 - empty test fails
17 An empty test script does not change the exit code and
18 the testing library arranges for the exit code to be 1
19 at the beginning of the test so an empty test should
20 always fail
23 . ./test-lib.sh
25 test_plan 3
27 test_expect_success 'it works' ':'
28 test_expect_success 'it works on stdin' - <<-'EOT'
29 : && # no more quoting issues but 'tis a bit slower!
30 : # unpaired " are allowed too!
31 EOT
32 test_expect_failure 'empty test fails' ''
34 test_done