summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2013-09-05 17:21:25 -0700
committerPhilip Chimento <philip@endlessm.com>2013-09-16 10:30:42 -0700
commitd88e6674fd6fcad3bdd841c75c81fec1815615c8 (patch)
treee8ee2e9d1a99479d859831b1c7dc436def2cb34d /test
parent1c4bc890875ee5e7edad81fd6a8b5644058e936d (diff)
First attempt at an EOS test runner
This adds a script eos-run-test which is adapted from gjs_run_tests, but does not try to discover the tests itself. Instead, in keeping with Automake's test suite facilities, it takes the filename of a test to run. [endlessm/eos-sdk#290]
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am5
-rw-r--r--test/tools/eos-run-test/sanitycheck.js3
2 files changed, 8 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index b4217c1..dcf6ee4 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -24,3 +24,8 @@ test_run_tests_LDADD = $(TEST_LIBS)
test_smoke_tests_hello_SOURCES = test/smoke-tests/hello.c
test_smoke_tests_hello_CPPFLAGS = $(TEST_FLAGS)
test_smoke_tests_hello_LDADD = $(TEST_LIBS)
+
+javascript_tests = \
+ test/tools/eos-run-test/sanitycheck.js \
+ $(NULL)
+EXTRA_DIST += $(javascript_tests)
diff --git a/test/tools/eos-run-test/sanitycheck.js b/test/tools/eos-run-test/sanitycheck.js
new file mode 100644
index 0000000..4bb3a80
--- /dev/null
+++ b/test/tools/eos-run-test/sanitycheck.js
@@ -0,0 +1,3 @@
+function testNothing() {
+ assertEquals(2, 2);
+} \ No newline at end of file