Skip to content

Support for running tests outside t/ + don't run a TODO test

Ævar Arnfjörð Bjarmason git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest4 patches 1 replyIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4test-lib: Use $TEST_DIRECTORY or $GIT_BUILD_DIR instead of $(pwd) and ../t/test-lib.sh+8 -80 replies
2/4test-lib: Use "$GIT_BUILD_DIR" instead of "$TEST_DIRECTORY"/../t/test-lib.sh+15 -140 replies
3/4test-lib: Allow overriding of TEST_DIRECTORYt/test-lib.sh+7 -10 replies
4/4t/t0000-basic.sh: Run the passing TODO test inside its own test-libt/t0000-basic.sh+31 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] Support for running tests outside t/ + don't run a TODO test

This *really* v3, I just sent another copy of v2 unchanged accidentally (this is really not my day). This one:

* Fixes a trivial shell syntax error in the last patch (oops!)

* Uses #!$SHELL_PATH for a shebang instead of #!/bin/sh in the file we're about to write out. This now passes e.g. on Solaris which has an insane /bin/sh.

As an aside there's a bunch of other things in our tests that are writing out shellscripts with a #!/bin/sh shebang instead of #!$SHELL_PATH. These are passing purely by accident since they just happen to use shell syntax that doesn't run afoul of grumpy old shells like Solaris's /bin/sh.

Ævar Arnfjörð Bjarmason (4):
test-lib: Use $TEST_DIRECTORY or $GIT_BUILD_DIR instead of $(pwd) and

    ../

test-lib: Use "$GIT_BUILD_DIR" instead of "$TEST_DIRECTORY"/../
test-lib: Allow overriding of TEST_DIRECTORY t/t0000-basic.sh: Run the passing TODO test inside its own test-lib

 t/t0000-basic.sh |   31 +++++++++++++++++++++++++++++++
 t/test-lib.sh    |   39 +++++++++++++++++++++++----------------
 2 files changed, 54 insertions(+), 16 deletions(-)
Signature · 1 line
1.7.2.1.446.g168052