mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
Tests: Run each test in their respective directories
This is so they can find their associated resources and it's the same behavior as in Lagom. This also required changing some tests so that they could write their resources in a writable location.
This commit is contained in:
parent
9ffb3e7e30
commit
6bc7f2204e
3 changed files with 16 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
# go to a writable directory
|
||||
cd /tmp
|
||||
|
||||
# Simple usage, single doc
|
||||
echo <<-test > sh.doc.test
|
||||
|
@ -71,4 +73,6 @@ test
|
|||
test2
|
||||
|
||||
rm -f sh.doc.test
|
||||
# return to original directory
|
||||
cd -
|
||||
pass
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
# go to a writable directory
|
||||
cd /tmp
|
||||
singlecommand_ok=yes
|
||||
multicommand_ok=yes
|
||||
inlineexec_ok=yes
|
||||
|
@ -95,5 +96,6 @@ if not test \
|
|||
|
||||
fail "Something failed :("
|
||||
}
|
||||
|
||||
# return to original directory
|
||||
cd -
|
||||
echo PASS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue