CDPATH test
This commit is contained in:
parent
cb91efb126
commit
c93456f6e5
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd ..
|
||||
export CDPATH=$PWD
|
||||
./urchin -f 'tests/urchin exit code' >/dev/null
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
export tmp=$(mktemp -d)
|
||||
|
||||
contents="$1"
|
||||
expectation="$2"
|
||||
|
||||
@ -20,4 +22,8 @@ case "$expectation" in ok) regex='^ok 1 - testcase';;
|
||||
esac
|
||||
|
||||
# Run the test suite
|
||||
set +e
|
||||
../../urchin -n -t $testdir | grep "$regex"
|
||||
code=$?
|
||||
rm -R $tmp
|
||||
exit $?
|
||||
|
1
tests/Single-file test suites/CDPATH
Executable file
1
tests/Single-file test suites/CDPATH
Executable file
@ -0,0 +1 @@
|
||||
CDPATH=/ .test_testsuite '' ok
|
@ -1,2 +1 @@
|
||||
export tmp=$(mktemp -d)
|
||||
export PATH="$PWD:$PATH"
|
||||
|
@ -1 +0,0 @@
|
||||
rm -R "$tmp"
|
Loading…
Reference in New Issue
Block a user