mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
Userland: Install shell tests on Serenity
Also make them runnable anywhere. Previously they required $PWD to be the directory containing test-commons.inc, and for $PWD to be writable.
This commit is contained in:
parent
e787738c24
commit
8fc862f710
13 changed files with 19 additions and 13 deletions
|
@ -18,3 +18,9 @@ set(SOURCES
|
|||
|
||||
serenity_bin(Shell)
|
||||
target_link_libraries(Shell LibShell)
|
||||
|
||||
install(DIRECTORY Tests/ DESTINATION usr/Tests/Shell
|
||||
PATTERN "Tests/*"
|
||||
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
||||
GROUP_EXECUTE GROUP_READ
|
||||
WORLD_EXECUTE WORLD_READ)
|
||||
|
|
|
@ -4,7 +4,7 @@ echo "Not running Shell-backgrounding as it has a high failure rate"
|
|||
echo PASS
|
||||
exit 0
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
setopt --verbose
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
setopt --verbose
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
rm -rf shell-test
|
||||
mkdir -p shell-test
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
setopt --verbose
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
# Syntax ok?
|
||||
fn() { echo $* }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
setopt --verbose
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
singlecommand_ok=yes
|
||||
multicommand_ok=yes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/Shell
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
result=no
|
||||
match hello {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
# `head -n 1` should close stdout of the `Shell -c` command, which means the
|
||||
# second echo should exit unsuccessfully and sigpipe.sh.out should not be
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
if not test "$*" = "" { fail "Argv list not empty" }
|
||||
if not test "$#" -eq 0 { fail "Argv list empty but count non-zero" }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#/bin/sh
|
||||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
setopt --verbose
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
source test-commons.inc
|
||||
source $(dirname "$0")/test-commons.inc
|
||||
|
||||
# Are comments ignored?
|
||||
# Sanity check: can we do && and || ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue