diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Shell/CMakeLists.txt | 6 | ||||
-rw-r--r-- | Userland/Shell/Tests/backgrounding.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/brace-exp.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/builtin-redir.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/control-structure-as-command.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/function.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/if.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/loop.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/match.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/sigpipe.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/special-vars.sh | 2 | ||||
-rw-r--r-- | Userland/Shell/Tests/subshell.sh | 4 | ||||
-rw-r--r-- | Userland/Shell/Tests/valid.sh | 2 |
13 files changed, 19 insertions, 13 deletions
diff --git a/Userland/Shell/CMakeLists.txt b/Userland/Shell/CMakeLists.txt index ae25a8cde9..7d66142486 100644 --- a/Userland/Shell/CMakeLists.txt +++ b/Userland/Shell/CMakeLists.txt @@ -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) diff --git a/Userland/Shell/Tests/backgrounding.sh b/Userland/Shell/Tests/backgrounding.sh index 912d92447f..6b12d8109d 100644 --- a/Userland/Shell/Tests/backgrounding.sh +++ b/Userland/Shell/Tests/backgrounding.sh @@ -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 diff --git a/Userland/Shell/Tests/brace-exp.sh b/Userland/Shell/Tests/brace-exp.sh index f47bf31089..e283d4410d 100644 --- a/Userland/Shell/Tests/brace-exp.sh +++ b/Userland/Shell/Tests/brace-exp.sh @@ -1,6 +1,6 @@ #!/bin/sh -source test-commons.inc +source $(dirname "$0")/test-commons.inc setopt --verbose diff --git a/Userland/Shell/Tests/builtin-redir.sh b/Userland/Shell/Tests/builtin-redir.sh index fba2b5f985..ff4254c311 100644 --- a/Userland/Shell/Tests/builtin-redir.sh +++ b/Userland/Shell/Tests/builtin-redir.sh @@ -1,6 +1,6 @@ #!/bin/sh -source test-commons.inc +source $(dirname "$0")/test-commons.inc rm -rf shell-test mkdir -p shell-test diff --git a/Userland/Shell/Tests/control-structure-as-command.sh b/Userland/Shell/Tests/control-structure-as-command.sh index 669837fca6..0ec3a3055f 100644 --- a/Userland/Shell/Tests/control-structure-as-command.sh +++ b/Userland/Shell/Tests/control-structure-as-command.sh @@ -1,6 +1,6 @@ #!/bin/sh -source test-commons.inc +source $(dirname "$0")/test-commons.inc setopt --verbose diff --git a/Userland/Shell/Tests/function.sh b/Userland/Shell/Tests/function.sh index 8b2f4d362c..459ea6ba28 100644 --- a/Userland/Shell/Tests/function.sh +++ b/Userland/Shell/Tests/function.sh @@ -1,6 +1,6 @@ #!/bin/sh -source test-commons.inc +source $(dirname "$0")/test-commons.inc # Syntax ok? fn() { echo $* } diff --git a/Userland/Shell/Tests/if.sh b/Userland/Shell/Tests/if.sh index 214137a9cb..1f8e686378 100644 --- a/Userland/Shell/Tests/if.sh +++ b/Userland/Shell/Tests/if.sh @@ -1,6 +1,6 @@ #!/bin/sh -source test-commons.inc +source $(dirname "$0")/test-commons.inc setopt --verbose diff --git a/Userland/Shell/Tests/loop.sh b/Userland/Shell/Tests/loop.sh index 7c364dda36..6d81ebf7ef 100644 --- a/Userland/Shell/Tests/loop.sh +++ b/Userland/Shell/Tests/loop.sh @@ -1,6 +1,6 @@ #!/bin/sh -source test-commons.inc +source $(dirname "$0")/test-commons.inc singlecommand_ok=yes multicommand_ok=yes diff --git a/Userland/Shell/Tests/match.sh b/Userland/Shell/Tests/match.sh index ff21227869..d436cc9393 100644 --- a/Userland/Shell/Tests/match.sh +++ b/Userland/Shell/Tests/match.sh @@ -1,6 +1,6 @@ #!/bin/Shell -source test-commons.inc +source $(dirname "$0")/test-commons.inc result=no match hello { diff --git a/Userland/Shell/Tests/sigpipe.sh b/Userland/Shell/Tests/sigpipe.sh index 199c41631d..af66fef632 100644 --- a/Userland/Shell/Tests/sigpipe.sh +++ b/Userland/Shell/Tests/sigpipe.sh @@ -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 diff --git a/Userland/Shell/Tests/special-vars.sh b/Userland/Shell/Tests/special-vars.sh index e3d3b134d4..23525d28d2 100644 --- a/Userland/Shell/Tests/special-vars.sh +++ b/Userland/Shell/Tests/special-vars.sh @@ -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" } diff --git a/Userland/Shell/Tests/subshell.sh b/Userland/Shell/Tests/subshell.sh index 976999f656..178e358b15 100644 --- a/Userland/Shell/Tests/subshell.sh +++ b/Userland/Shell/Tests/subshell.sh @@ -1,6 +1,6 @@ -#/bin/sh +#!/bin/sh -source test-commons.inc +source $(dirname "$0")/test-commons.inc setopt --verbose diff --git a/Userland/Shell/Tests/valid.sh b/Userland/Shell/Tests/valid.sh index 61e136d415..b494ce56b2 100644 --- a/Userland/Shell/Tests/valid.sh +++ b/Userland/Shell/Tests/valid.sh @@ -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 || ? |