chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test suite: Provide a stunt dgit
[dgit.git]
/
tests
/
tstunt
/
dgit
diff --git a/tests/tstunt/dgit
b/tests/tstunt/dgit
new file mode 100755
(executable)
index 0000000..
3a9751d
--- /dev/null
+++ b/
tests/tstunt/dgit
@@ -0,0
+1,9
@@
+#!/bin/bash
+# NB This requires use of t-chain-test-somehow.
+set -ex
+oldpwd=$(pwd)
+cd "$DGIT_TEST_TROOT/.."
+. tests/lib
+cd "$oldpwd"
+trap '' EXIT # preserves our exit status
+t-dgit "$@"