aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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