summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-13 12:39:29 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-13 12:39:29 +0000
commitd710cef6610eff758e96f351e6b91c1c9d8df9f6 (patch)
tree8648168e2484889ccbbdab2469cb7cc20dbf269e
parenta45b042e59839cdc4bafd0414d267e1600829997 (diff)
downloadmicropython-d710cef6610eff758e96f351e6b91c1c9d8df9f6.tar.gz
micropython-d710cef6610eff758e96f351e6b91c1c9d8df9f6.zip
minimal: Add simple test; build and run minimal test on Travis CI.
-rw-r--r--.travis.yml1
-rw-r--r--minimal/Makefile3
2 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 48575f6e6b..bb3cda8661 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,6 +12,7 @@ before_script:
- sudo apt-get install realpath
script:
+ - make -C minimal test
- make -C unix CC=gcc-4.7
- make -C unix-cpy CC=gcc-4.7
- make -C bare-arm
diff --git a/minimal/Makefile b/minimal/Makefile
index 022b9e0c41..78d1f4fd2f 100644
--- a/minimal/Makefile
+++ b/minimal/Makefile
@@ -71,4 +71,7 @@ run:
sleep 1
reset
+test: $(BUILD)/firmware.elf
+ $(Q)echo -e "print('hello world!', list(x+1 for x in range(10)), end='eol\\\\n')\\r\\n\\x04" | $(BUILD)/firmware.elf | tail -n2 | grep "^hello world! \\[1, 2, 3, 4, 5, 6, 7, 8, 9, 10\\]eol"
+
include ../py/mkrules.mk