From 6ed3d421006f7d56c5d96fbaf1b971bb3561d1ed Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Wed, 23 Oct 2019 21:44:03 -0400 Subject: added a test --- tests/bf/test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tests/bf/test.sh (limited to 'tests/bf/test.sh') diff --git a/tests/bf/test.sh b/tests/bf/test.sh new file mode 100755 index 0000000..8b76794 --- /dev/null +++ b/tests/bf/test.sh @@ -0,0 +1,9 @@ +#!/bin/sh +if [ "$(cat hw0.bf | ./bf.bin)" != "Hello World!" ]; then + echo "hello world 0 failed." + exit 1 +fi +if [ "$(cat hw1.bf | ./bf.bin)" != "Hello World!" ]; then + echo "hello world 1 failed." + exit 1 +fi -- cgit v1.2.3