summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-06 05:39:19 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-06 05:39:19 +0200
commit18379e15998e96ca604c10adc6295cc4b89ae8e4 (patch)
treea3545affdbaaa9209990ad0f73b60a7fc49dfc6b
parent7c461804ac6ae24d3026e803e7a0a04303a687c3 (diff)
Updating Balau and Dalos-modules, and adding a few Lua tests for Dalos-cli.
m---------Balau0
m---------Dalos-modules0
-rw-r--r--Makefile4
-rw-r--r--tests/alltests.lua5
-rw-r--r--tests/load-test.lua1
-rw-r--r--tests/runtests.lua1
-rw-r--r--tests/test1.lua3
7 files changed, 13 insertions, 1 deletions
diff --git a/Balau b/Balau
-Subproject cd5da6097812baf125c2dc4f1d12e1a3f498546
+Subproject 1a67500d100520dd8be9856f2f57ab8b0fbf90b
diff --git a/Dalos-modules b/Dalos-modules
-Subproject 3c1040007a354ce55bd964beabac94b67c1f6fc
+Subproject da30e788fea8391efecc648ae0efc8db665a1a0
diff --git a/Makefile b/Makefile
index 09cc5d6..c91cdec 100644
--- a/Makefile
+++ b/Makefile
@@ -48,8 +48,10 @@ strip: $(TARGET)
Balau:
$(MAKE) -C Balau
-tests:
+tests: $(TARGET)
$(MAKE) -C Balau tests
+ ./$(TARGET) tests/alltests.lua tests/runtests.lua
+ ./$(TARGET) tests/alltests.lua -e 'runtests()'
Balau/libBalau.a:
$(MAKE) -C Balau
diff --git a/tests/alltests.lua b/tests/alltests.lua
new file mode 100644
index 0000000..d0feda2
--- /dev/null
+++ b/tests/alltests.lua
@@ -0,0 +1,5 @@
+load "tests/test1.lua"
+
+function runtests()
+ test1()
+end
diff --git a/tests/load-test.lua b/tests/load-test.lua
new file mode 100644
index 0000000..9700e50
--- /dev/null
+++ b/tests/load-test.lua
@@ -0,0 +1 @@
+print "in load-test.lua"
diff --git a/tests/runtests.lua b/tests/runtests.lua
new file mode 100644
index 0000000..f37e71a
--- /dev/null
+++ b/tests/runtests.lua
@@ -0,0 +1 @@
+runtests()
diff --git a/tests/test1.lua b/tests/test1.lua
new file mode 100644
index 0000000..bc42fd9
--- /dev/null
+++ b/tests/test1.lua
@@ -0,0 +1,3 @@
+function test1()
+ load "tests/load-test.lua"
+end