File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ script:
58
58
- (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --emit native)
59
59
- (cd tests && MICROPY_CPYTHON3=python3.4 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests --via-mpy -d basics float)
60
60
61
+ # test when input script comes from stdin
62
+ - cat tests/basics/0prelim.py | ports/unix/micropython_coverage | grep -q 'abc'
63
+
61
64
# run coveralls coverage analysis (try to, even if some builds/tests failed)
62
65
- (cd ports/unix && coveralls --root ../.. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)
63
66
Original file line number Diff line number Diff line change @@ -258,6 +258,7 @@ coverage_test: coverage
258
258
cd $(TOP ) /tests && MICROPY_MICROPYTHON=../$(DIRNAME ) /micropython_coverage ./run-tests -d thread
259
259
cd $(TOP ) /tests && MICROPY_MICROPYTHON=../$(DIRNAME ) /micropython_coverage ./run-tests --emit native
260
260
cd $(TOP ) /tests && MICROPY_MICROPYTHON=../$(DIRNAME ) /micropython_coverage ./run-tests --via-mpy -d basics float
261
+ cat $(TOP ) /tests/basics/0prelim.py | ./micropython_coverage | grep -q ' abc'
261
262
gcov -o build-coverage/py $(TOP ) /py/* .c
262
263
gcov -o build-coverage/extmod $(TOP ) /extmod/* .c
263
264
You can’t perform that action at this time.
0 commit comments