aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-22 12:47:51 -0700
committerChristian Cunningham <cc@localhost>2022-02-22 12:47:51 -0700
commitc59fed186238d07557817a752f951471201ba9e0 (patch)
tree56d1e97d276f3a5fb0bdb897f4d65eb4c99d0f24 /tests
parentef262d9a0b4b4d973e3c0fcabc9cdf4d57fc93ce (diff)
Automated testing
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run.sh4
-rwxr-xr-xtests/test1.bash9
-rwxr-xr-xtests/test1.sh10
3 files changed, 13 insertions, 10 deletions
diff --git a/tests/run.sh b/tests/run.sh
new file mode 100755
index 0000000..80217e8
--- /dev/null
+++ b/tests/run.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+for file in ./tests/*.bash; do
+ ${file}
+done
diff --git a/tests/test1.bash b/tests/test1.bash
new file mode 100755
index 0000000..d04af60
--- /dev/null
+++ b/tests/test1.bash
@@ -0,0 +1,9 @@
+#!/bin/bash
+rm -f l.test1.log
+make run-silent &
+cat guest.out >> l.test1.log &
+sleep 0.5
+printf "ab" >> guest.in
+sleep 1
+printf "\001x" >> guest.in
+sleep 0.5
diff --git a/tests/test1.sh b/tests/test1.sh
deleted file mode 100755
index 2641953..0000000
--- a/tests/test1.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-pushd ./
-rm -f test1.log
-make run &
-cat guest.out >> test1.log &
-sleep 1
-printf "ab" >> guest.in
-sleep 2
-printf "\001x" >> guest.in
-popd