Add 'make testparser' option to test parser only
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user