From d710cef6610eff758e96f351e6b91c1c9d8df9f6 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 13 Jan 2015 12:39:29 +0000 Subject: [PATCH] minimal: Add simple test; build and run minimal test on Travis CI. --- .travis.yml | 1 + minimal/Makefile | 3 +++ 2 files changed, 4 insertions(+) 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