Add test for `exec` command.
authorAlberto Gonzalez <boqwxp@airmail.cc>
Mon, 16 Mar 2020 06:44:21 +0000 (06:44 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Mon, 16 Mar 2020 07:52:58 +0000 (07:52 +0000)
tests/various/exec.ys [new file with mode: 0644]

diff --git a/tests/various/exec.ys b/tests/various/exec.ys
new file mode 100644 (file)
index 0000000..0eec007
--- /dev/null
@@ -0,0 +1,6 @@
+exec -expect-return 0 -- exit 0
+exec -expect-return 27 -- exit 27
+exec -expect-stdout nana -expect-stdout api -not-expect-stdout giraffe -- echo "bananapie"
+
+logger -expect error "stdout did have a line" 1
+exec -not-expect-stdout giraffe -- echo "giraffe"