File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1717 with :
1818 toit-version : ' v2.0.0-alpha.120'
1919
20+ - run : make install
2021 - run : make test
Original file line number Diff line number Diff line change 1+ .PHONY : install
2+ install :
3+ @if command -v jag > /dev/null 2>&1 ; then \
4+ jag pkg install; \
5+ elif command -v toit > /dev/null 2>&1 ; then \
6+ toit.pkg install; \
7+ else \
8+ echo " Error: Neither 'jag' nor 'toit' found in PATH" ; \
9+ exit 1; \
10+ fi
11+
112.PHONY : test
213test :
3- @if command -v jag > /dev/null 2>&1 ; then \
4- find tests -type d -name ' .packages' -prune -o -type f \( -name ' *_test.toit' -o -name ' *.test.toit' \) -exec sh -c ' echo Running {} && jag run --device host {}' \; ; \
14+ @FAILED=0; \
15+ if command -v jag > /dev/null 2>&1 ; then \
16+ find tests -type d -name ' .packages' -prune -o -type f \( -name ' *_test.toit' -o -name ' *.test.toit' \) -exec sh -c ' echo Running {} && jag run --device host {} || FAILED=1' \; ; \
517 elif command -v toit.run > /dev/null 2>&1 ; then \
6- find tests -type d -name ' .packages' -prune -o -type f \( -name ' *_test.toit' -o -name ' *.test.toit' \) -exec sh -c ' echo Running {} && toit.run {}' \; ; \
18+ find tests -type d -name ' .packages' -prune -o -type f \( -name ' *_test.toit' -o -name ' *.test.toit' \) -exec sh -c ' echo Running {} && toit.run {} || FAILED=1 ' \; ; \
719 else \
820 echo " Error: Neither 'jag' nor 'toit.run' found in PATH" ; \
921 exit 1; \
22+ fi ; \
23+ if [ $$ FAILED -ne 0 ]; then \
24+ exit 1; \
1025 fi
You can’t perform that action at this time.
0 commit comments