test/Makefile

Print this page




 378 endif
 379 
 380 ifdef CONCURRENCY
 381   EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY)
 382 endif
 383 
 384 # exclude modules test when testing legacy image
 385 ifeq ($(MODULE_BUILD),false)
 386   JTREG_TEST_OPTIONS += -k:\!modules
 387 endif
 388 
 389 # Some tests annoy me and fail frequently
 390 PROBLEM_LIST=ProblemList.txt
 391 PROBLEM_LISTS=$(PROBLEM_LIST) $(wildcard closed/$(PROBLEM_LIST))
 392 EXCLUDELIST=$(ABS_TEST_OUTPUT_DIR)/excludelist.txt
 393 
 394 MODULE_IMAGE_PROBLEM_LIST=ModulesProblemList.txt
 395 ifeq ($(MODULE_BUILD),true)
 396 ifndef NO_EXCLUDES_MODULES
 397 PROBLEM_LISTS += $(MODULE_IMAGE_PROBLEM_LIST)

 398 endif
 399 endif
 400 
 401 # Create exclude list for this platform and arch
 402 ifdef NO_EXCLUDES
 403 $(EXCLUDELIST): $(PROBLEM_LISTS) $(TEST_DEPENDENCIES)
 404         @$(ECHO) "NOTHING_EXCLUDED" > $@
 405 else
 406 $(EXCLUDELIST): $(PROBLEM_LISTS) $(TEST_DEPENDENCIES)
 407         @$(RM) $@ $@.temp1 $@.temp2
 408         @(($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-all'          ) ;\
 409           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(PLATFORM_OS)'          ) ;\
 410           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_ARCH2)'  ) ;\
 411           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_VERSION)') ;\
 412           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH)'      ) ;\
 413           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH2)'     ) ;\
 414           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-all'             ) ;\
 415           ($(ECHO) "#") ;\
 416         ) | $(SED) -e 's@^[\ ]*@@' \
 417           | $(EGREP) -v '^#' > $@.temp1




 378 endif
 379 
 380 ifdef CONCURRENCY
 381   EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY)
 382 endif
 383 
 384 # exclude modules test when testing legacy image
 385 ifeq ($(MODULE_BUILD),false)
 386   JTREG_TEST_OPTIONS += -k:\!modules
 387 endif
 388 
 389 # Some tests annoy me and fail frequently
 390 PROBLEM_LIST=ProblemList.txt
 391 PROBLEM_LISTS=$(PROBLEM_LIST) $(wildcard closed/$(PROBLEM_LIST))
 392 EXCLUDELIST=$(ABS_TEST_OUTPUT_DIR)/excludelist.txt
 393 
 394 MODULE_IMAGE_PROBLEM_LIST=ModulesProblemList.txt
 395 ifeq ($(MODULE_BUILD),true)
 396 ifndef NO_EXCLUDES_MODULES
 397 PROBLEM_LISTS += $(MODULE_IMAGE_PROBLEM_LIST)
 398 PROBLEM_LISTS += $(wildcard closed/$(MODULE_IMAGE_PROBLEM_LIST))
 399 endif
 400 endif
 401 
 402 # Create exclude list for this platform and arch
 403 ifdef NO_EXCLUDES
 404 $(EXCLUDELIST): $(PROBLEM_LISTS) $(TEST_DEPENDENCIES)
 405         @$(ECHO) "NOTHING_EXCLUDED" > $@
 406 else
 407 $(EXCLUDELIST): $(PROBLEM_LISTS) $(TEST_DEPENDENCIES)
 408         @$(RM) $@ $@.temp1 $@.temp2
 409         @(($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-all'          ) ;\
 410           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(PLATFORM_OS)'          ) ;\
 411           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_ARCH2)'  ) ;\
 412           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_VERSION)') ;\
 413           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH)'      ) ;\
 414           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH2)'     ) ;\
 415           ($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-all'             ) ;\
 416           ($(ECHO) "#") ;\
 417         ) | $(SED) -e 's@^[\ ]*@@' \
 418           | $(EGREP) -v '^#' > $@.temp1