Merge branch 'master' of git-server:jerry
This commit is contained in:
@@ -79,11 +79,14 @@ all: precommit
|
|||||||
|
|
||||||
PRECOMMIT_CHECK_TARGETS_LIST= debug.linux-sanitize.check \
|
PRECOMMIT_CHECK_TARGETS_LIST= debug.linux-sanitize.check \
|
||||||
debug.linux-valgrind.check \
|
debug.linux-valgrind.check \
|
||||||
|
debug.linux-musl-valgrind.check \
|
||||||
debug_release.linux-sanitize.check \
|
debug_release.linux-sanitize.check \
|
||||||
debug_release.linux-valgrind.check \
|
debug_release.linux-valgrind.check \
|
||||||
|
debug_release.linux-musl.check \
|
||||||
release.linux-sanitize.check \
|
release.linux-sanitize.check \
|
||||||
release.linux-musl-valgrind.check \
|
release.linux-musl-valgrind.check \
|
||||||
release.linux-libc_raw-valgrind.check
|
release.linux-valgrind.check \
|
||||||
|
release.linux.check
|
||||||
|
|
||||||
push: ./tools/push.sh
|
push: ./tools/push.sh
|
||||||
@ ./tools/push.sh
|
@ ./tools/push.sh
|
||||||
@@ -95,13 +98,43 @@ precommit: clean
|
|||||||
@ echo -e "All targets were built successfully. Starting unit tests' build and run.\n"
|
@ echo -e "All targets were built successfully. Starting unit tests' build and run.\n"
|
||||||
@ $(MAKE) unittests TESTS_OPTS="--silent"
|
@ $(MAKE) unittests TESTS_OPTS="--silent"
|
||||||
@ echo -e "Unit tests completed successfully. Starting parse-only testing.\n"
|
@ echo -e "Unit tests completed successfully. Starting parse-only testing.\n"
|
||||||
@ $(MAKE) $(PRECOMMIT_CHECK_TARGETS_LIST) TESTS_DIR=./tests/jerry TESTS_OPTS="--parse-only" OUTPUT_TO_LOG=enable
|
@ # Parse-only testing
|
||||||
@ echo -e "\e[0;31mFIXME:\e[0m './benchmarks/jerry parse-only' testing skipped.\n"; # $(MAKE) -s $(PRECOMMIT_CHECK_TARGETS_LIST) TESTS_DIR=./benchmarks/jerry TESTS_OPTS="--parse-only" OUTPUT_TO_LOG=enable
|
@ for path in "./tests/jerry" "./benchmarks/jerry"; \
|
||||||
|
do \
|
||||||
|
run_ids=""; \
|
||||||
|
for check_target in $(PRECOMMIT_CHECK_TARGETS_LIST); \
|
||||||
|
do \
|
||||||
|
$(MAKE) -s -f Makefile.mk TARGET=$$check_target $$check_target TESTS_DIR="$$path" TESTS_OPTS="--parse-only" OUTPUT_TO_LOG=enable & \
|
||||||
|
run_ids="$$run_ids $$!"; \
|
||||||
|
done; \
|
||||||
|
result_ok=1; \
|
||||||
|
for run_id in $$run_ids; \
|
||||||
|
do \
|
||||||
|
wait $$run_id || result_ok=0; \
|
||||||
|
done; \
|
||||||
|
[ $$result_ok -eq 1 ] || exit 1; \
|
||||||
|
done
|
||||||
@ echo -e "Parse-only testing completed successfully. Starting full tests run.\n"
|
@ echo -e "Parse-only testing completed successfully. Starting full tests run.\n"
|
||||||
@ echo -e "\e[0;31mFIXME:\e[0m Full testing skipped.\n"; # $(MAKE) -s $(PRECOMMIT_CHECK_TARGETS_LIST) TESTS_DIR=./tests/jerry OUTPUT_TO_LOG=enable
|
@ echo -e "\e[0;31mFIXME:\e[0m Full testing skipped.\n";
|
||||||
|
@ # Full testing
|
||||||
|
@ # for path in "./tests/jerry" "./benchmarks/jerry"; \
|
||||||
|
# do \
|
||||||
|
# run_ids=""; \
|
||||||
|
# for check_target in $(PRECOMMIT_CHECK_TARGETS_LIST); \
|
||||||
|
# do \
|
||||||
|
# $(MAKE) -s -f Makefile.mk TARGET=$$check_target $$check_target TESTS_DIR="$$path" TESTS_OPTS="" OUTPUT_TO_LOG=enable & \
|
||||||
|
# run_ids="$$run_ids $$!"; \
|
||||||
|
# done; \
|
||||||
|
# result_ok=1; \
|
||||||
|
# for run_id in $$run_ids; \
|
||||||
|
# do \
|
||||||
|
# wait $$run_id || result_ok=0; \
|
||||||
|
# done; \
|
||||||
|
# [ $$result_ok -eq 1 ] || exit 1; \
|
||||||
|
# done
|
||||||
@ echo -e "Full testing completed successfully\n\n================\n\n"
|
@ echo -e "Full testing completed successfully\n\n================\n\n"
|
||||||
|
|
||||||
$(JERRY_TARGETS) $(TESTS_TARGET) $(FLASH_TARGETS) $(CHECK_TARGETS):
|
$(JERRY_TARGETS) $(TESTS_TARGET) $(FLASH_TARGETS):
|
||||||
@$(MAKE) -s -f Makefile.mk TARGET=$@ $@
|
@$(MAKE) -s -f Makefile.mk TARGET=$@ $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
Reference in New Issue
Block a user