Add 'make testparser' option to test parser only

This commit is contained in:
Ilmir Usmanov
2014-07-28 17:28:18 +04:00
parent 24403c618e
commit 306f111a28
5 changed files with 134 additions and 13 deletions
+12
View File
@@ -37,6 +37,11 @@ ifeq ($(TARGET_MODE),$(TESTS_TARGET))
TARGET_SYSTEM = linux
endif
# parse-only mode -> linux system
ifeq ($(TARGET_MODE),$(PARSER_TESTS_TARGET))
TARGET_SYSTEM = linux
endif
#
# Options setup
#
@@ -284,6 +289,13 @@ $(TESTS_TARGET):
@ echo Done
@ echo
$(PARSER_TESTS_TARGET): debug.$(TARGET_SYSTEM)
@mkdir -p $(TARGET_DIR)/check
@ echo "=== Running parser tests ==="
@ if [ -f $(TARGET_DIR)/$(ENGINE_NAME) ]; then \
./tools/jerry_test_parser.sh $(TARGET_DIR)/$(ENGINE_NAME) $(TARGET_DIR)/check; \
fi
$(CHECK_TARGETS): $(TARGET_OF_ACTION)
@ make unittests
@ mkdir -p $(TARGET_DIR)/check