Skip to content

Commit d710cef

Browse files
committed
minimal: Add simple test; build and run minimal test on Travis CI.
1 parent a45b042 commit d710cef

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ before_script:
1212
- sudo apt-get install realpath
1313

1414
script:
15+
- make -C minimal test
1516
- make -C unix CC=gcc-4.7
1617
- make -C unix-cpy CC=gcc-4.7
1718
- make -C bare-arm

minimal/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,7 @@ run:
7171
sleep 1
7272
reset
7373

74+
test: $(BUILD)/firmware.elf
75+
$(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"
76+
7477
include ../py/mkrules.mk

0 commit comments

Comments
 (0)