summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/task
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/task')
-rw-r--r--cli/tests/testdata/task/deno.json3
-rw-r--r--cli/tests/testdata/task/task_cwd.out1
-rw-r--r--cli/tests/testdata/task/task_no_args.out2
-rw-r--r--cli/tests/testdata/task/task_non_existent.out2
4 files changed, 7 insertions, 1 deletions
diff --git a/cli/tests/testdata/task/deno.json b/cli/tests/testdata/task/deno.json
index 279c7ea8b..229315a4e 100644
--- a/cli/tests/testdata/task/deno.json
+++ b/cli/tests/testdata/task/deno.json
@@ -5,6 +5,7 @@
"deno_echo": "deno eval 'console.log(5)'",
"strings": "deno run main.ts && deno eval \"console.log(\\\"test\\\")\"",
"piped": "echo 12345 | (deno eval 'const b = new Uint8Array(1);Deno.stdin.readSync(b);console.log(b)' && deno eval 'const b = new Uint8Array(1);Deno.stdin.readSync(b);console.log(b)')",
- "exit_code_5": "echo $(echo 10 ; exit 2) && exit 5"
+ "exit_code_5": "echo $(echo 10 ; exit 2) && exit 5",
+ "echo_cwd": "echo $(pwd)"
}
}
diff --git a/cli/tests/testdata/task/task_cwd.out b/cli/tests/testdata/task/task_cwd.out
new file mode 100644
index 000000000..bfe3e7b11
--- /dev/null
+++ b/cli/tests/testdata/task/task_cwd.out
@@ -0,0 +1 @@
+[WILDCARD]tests
diff --git a/cli/tests/testdata/task/task_no_args.out b/cli/tests/testdata/task/task_no_args.out
index e8c034a2d..d7e509656 100644
--- a/cli/tests/testdata/task/task_no_args.out
+++ b/cli/tests/testdata/task/task_no_args.out
@@ -5,6 +5,8 @@ Available tasks:
deno eval 'console.log(5)'
- echo
echo 1
+- echo_cwd
+ echo $(pwd)
- exit_code_5
echo $(echo 10 ; exit 2) && exit 5
- piped
diff --git a/cli/tests/testdata/task/task_non_existent.out b/cli/tests/testdata/task/task_non_existent.out
index bd4b73c6f..4867d3068 100644
--- a/cli/tests/testdata/task/task_non_existent.out
+++ b/cli/tests/testdata/task/task_non_existent.out
@@ -7,6 +7,8 @@ Available tasks:
deno eval 'console.log(5)'
- echo
echo 1
+- echo_cwd
+ echo $(pwd)
- exit_code_5
echo $(echo 10 ; exit 2) && exit 5
- piped