From 4ff5042abc64e343b5db20852d45ab7426545bb3 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Wed, 6 Aug 2014 15:54:37 +0400 Subject: [PATCH] Enabling full testing mode during pre-commit. --- Makefile | 31 +++++++++++++++---------------- tests/jerry/{for.js => N.for.js} | 0 2 files changed, 15 insertions(+), 16 deletions(-) rename tests/jerry/{for.js => N.for.js} (100%) diff --git a/Makefile b/Makefile index 59728ec14..1c10d1927 100644 --- a/Makefile +++ b/Makefile @@ -114,23 +114,22 @@ precommit: clean [ $$result_ok -eq 1 ] || exit 1; \ done @ echo -e "Parse-only testing completed successfully. Starting full tests run.\n" - @ 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 + @ for path in "./tests/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" $(JERRY_TARGETS) $(TESTS_TARGET) $(FLASH_TARGETS): diff --git a/tests/jerry/for.js b/tests/jerry/N.for.js similarity index 100% rename from tests/jerry/for.js rename to tests/jerry/N.for.js