Skip to content
Snippets Groups Projects
Commit b17028bb authored by René Kijewski's avatar René Kijewski
Browse files

tests/Travis: run unittests on x86, too

parent 91318f5d
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,12 @@ install: ...@@ -17,10 +17,12 @@ install:
- sudo apt-get install gcc-arm-none-eabi - sudo apt-get install gcc-arm-none-eabi
- sudo apt-get install gcc-msp430 - sudo apt-get install gcc-msp430
- sudo apt-get install pcregrep libpcre3 - sudo apt-get install pcregrep libpcre3
- sudo apt-get install qemu-system-x86 python3
script: script:
- ./dist/tools/compile_test/compile_test.py - ./dist/tools/compile_test/compile_test.py
- make -C ./tests/unittests term - make -C ./tests/unittests test BOARD=native
- make -C ./tests/unittests test BOARD=qemu-i386
- ./dist/tools/licenses/check.sh master - ./dist/tools/licenses/check.sh master
notifications: notifications:
......
...@@ -40,3 +40,9 @@ ifeq (, $(UNIT_TESTS)) ...@@ -40,3 +40,9 @@ ifeq (, $(UNIT_TESTS))
else else
CFLAGS += -DTEST_SUITES='$(subst $() $(),$(charCOMMA),$(UNIT_TESTS:tests-%=%))' CFLAGS += -DTEST_SUITES='$(subst $() $(),$(charCOMMA),$(UNIT_TESTS:tests-%=%))'
endif endif
test: SHELL=bash
test:
@exec 5>&1 && \
LOG=$$("$(MAKE)" -s term | tee >(cat - >&5)) && \
grep 'OK ([1-9][0-9]* tests)' <<< $${LOG} > /dev/null
...@@ -31,11 +31,6 @@ int main(void) ...@@ -31,11 +31,6 @@ int main(void)
#endif #endif
TESTS_END(); TESTS_END();
#if defined (BOARD_NATIVE) && !defined (OUTPUT)
void _exit(int);
_exit(TestRunnerHadErrors);
#endif
lpm_set(LPM_POWERDOWN); lpm_set(LPM_POWERDOWN);
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment