summaryrefslogtreecommitdiff
path: root/test/hello/test_hello.sh
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-31 18:30:10 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-03 10:09:24 +0200
commit3626877554b6c567d43336ec49414cedfe487260 (patch)
treef80c51ec1867fea029b955d85e89e39017f920e3 /test/hello/test_hello.sh
downloadhello-nix-3626877554b6c567d43336ec49414cedfe487260.tar.gz
Initial commit
Diffstat (limited to 'test/hello/test_hello.sh')
-rw-r--r--test/hello/test_hello.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/hello/test_hello.sh b/test/hello/test_hello.sh
new file mode 100644
index 0000000..08347e8
--- /dev/null
+++ b/test/hello/test_hello.sh
@@ -0,0 +1,5 @@
+set -e
+
+./hello | grep -i world
+./hello Universe | grep Universe
+./hello Universe | grep -i world && exit 1 || :