minimal: Add simple test; build and run minimal test on Travis CI.

This commit is contained in:
Damien George 2015-01-13 12:39:29 +00:00
parent a45b042e59
commit d710cef661
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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