aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-01-26 21:00:53 -0500
committerFranklin Wei <git@fwei.tk>2016-01-26 21:00:53 -0500
commit73d53b532e3e587382d53b8539d357b11e811a4b (patch)
treefd1b625a4304782826cf9863dce85e5008aeba67
parentcb21d47e2f9bf52f887241301c7437a367cd79ef (diff)
downloadnetcosm-73d53b532e3e587382d53b8539d357b11e811a4b.zip
netcosm-73d53b532e3e587382d53b8539d357b11e811a4b.tar.gz
netcosm-73d53b532e3e587382d53b8539d357b11e811a4b.tar.bz2
netcosm-73d53b532e3e587382d53b8539d357b11e811a4b.tar.xz
add travis tests
-rw-r--r--tests/all.sh3
-rw-r--r--tests/gen_data.sh31
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/all.sh b/tests/all.sh
new file mode 100644
index 0000000..68603d0
--- /dev/null
+++ b/tests/all.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+netcosm -a test test &
+./tests/gen_data.sh | telnet localhost 1234
diff --git a/tests/gen_data.sh b/tests/gen_data.sh
new file mode 100644
index 0000000..bba3964
--- /dev/null
+++ b/tests/gen_data.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+sleep .1
+echo test
+sleep .1
+echo test
+sleep 3
+echo say Running automated tests...
+sleep .1
+echo take sword
+sleep .1
+echo go in
+sleep .1
+echo client list
+sleep .1
+echo user list
+sleep .1
+echo user add test2
+sleep .1
+echo blah
+sleep .1
+echo blah
+sleep .1
+echo y
+sleep 3
+echo user list
+sleep .1
+echo drop sword
+sleep .1
+echo say Done with tests
+sleep .1
+echo quit