5 test_description
='Test sanity of test framework
9 Just a basic test that always succeeds
13 Another basic test but read using the magic -
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
22 4 - git rev-parse --git-dir fails
24 GIT_CEILING_DIRECTORIES should be set properly to avoid
25 finding the repository containing the tests themselves
26 so verify that it does indeed fail.
33 test_expect_success
'it works' ':'
34 test_expect_success
'it works on stdin' - <<-'EOT'
35 : && # no more quoting issues but 'tis a bit slower!
36 : # unpaired " are allowed too!
38 test_expect_failure
'empty test fails' ''
39 test_expect_success
'git rev-parse --git-dir fails' '
40 test_must_fail git rev-parse --git-dir