Define GENERATE_FILES for test generation (#3890)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 6 Dec 2018 08:11:38 +0000 (17:11 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 6 Dec 2018 08:11:38 +0000 (17:11 +0900)
Introduce GENERATE_FILES environment variable to skip running generate_test.sh
If you set GENERATE_FILES 0, makefile skip running generate_test.sh. Default is 1 (run generate_test.sh default)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Makefile

index 1bb6949..1ea07d3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ OBS_BUILD?=OFF
 COVERAGE_BUILD?=0
 BENCHMARK_ACL_BUILD?=0
 OPTIONS?=
+GENERATE_FILES?=1
 
 # make TARGET and TYPE to lowercase
 TARGET_ARCH_LC=$(shell echo $(TARGET_ARCH) | tr A-Z a-z)
@@ -143,7 +144,9 @@ tflite: tflite_build_internal
 ### Command (internal)
 ###
 configure_internal:
+ifeq ($(GENERATE_FILES),1)
        runtimes/tests/neural_networks_test/specs/generate_test.sh
+endif
 
        mkdir -p $(BUILD_ROOT)
        cmake -B$(CURDIR)/$(BUILD_ROOT) -H$(CURDIR) \