فهرست منبع

[acceptance-tests] Write list of CoreCLR tests into file and pass it to test-runner

This shaved about 30 seconds off the time until the test-runner started on my machine compared to
passing the tests in the command line directly (we have *lots* of CoreCLR tests).
Alexander Köplinger 10 سال پیش
والد
کامیت
2684e2fc3c
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 1 0
      acceptance-tests/.gitignore
  2. 3 1
      acceptance-tests/Makefile.am

+ 1 - 0
acceptance-tests/.gitignore

@@ -3,3 +3,4 @@ Makefile
 *.exe
 *.dll
 *.mdb
+coreclr-testlist.txt

+ 3 - 1
acceptance-tests/Makefile.am

@@ -69,7 +69,9 @@ coreclr-compile-tests: coreclr-validate
 	$(MAKE) -j4 $(CORECLR_TESTSI_CS) $(CORECLR_TESTSI_IL)
 
 coreclr-runtest-managed: coreclr-validate test-runner.exe $(CORECLR_TESTSI_CS) $(CORECLR_TESTSI_IL)
-	@$(RUNTIME) ./test-runner.exe -j a --testsuite-name "coreclr" --expected-exit-code 100 $(CORECLR_TESTSI_CS) $(CORECLR_TESTSI_IL)
+	@echo $(CORECLR_TESTSI_CS) $(CORECLR_TESTSI_IL) | tr " " "\n" > coreclr-testlist.txt
+	$(RUNTIME) ./test-runner.exe -j a --testsuite-name "coreclr" --expected-exit-code 100 --input-file coreclr-testlist.txt
+	@rm -f coreclr-testlist.txt
 
 check-coreclr: coreclr-compile-tests coreclr-runtest-managed