Commit:    1793d35586675027c8a415f09f9fd4ad53466aca
Author:    Allen Truong <v-alt...@microsoft.com>         Thu, 5 Sep 2019 
12:00:35 -0700
Committer: Christoph M. Becker <cmbecke...@gmx.de>      Fri, 6 Sep 2019 
00:15:25 +0200
Parents:   1354c8c0f18ed9a49f3fd353d8a6f823131ea7b6
Branches:  master

Link:       
http://git.php.net/?p=pftt2.git;a=commitdiff;h=1793d35586675027c8a415f09f9fd4ad53466aca

Log:
Adding test_qa file for VMs

Changed paths:
  A  bin/test_qa.cmd


Diff:
diff --git a/bin/test_qa.cmd b/bin/test_qa.cmd
new file mode 100644
index 00000000..77598557
--- /dev/null
+++ b/bin/test_qa.cmd
@@ -0,0 +1,50 @@
+@ECHO OFF 
+setlocal enabledelayedexpansion
+
+set branch=%1
+
+REM Check if parameters are set
+if %branch%.==. (
+       GOTO args_error
+) else (
+       GOTO set_env
+)
+
+
+:args_error
+echo User error: must specify branch
+echo test_release "<branch>"
+echo Branch can be any of: 7.2.XRCX, 7.3.XRCX, 7.4.XRCX
+exit /b
+
+:set_env
+REM set important env vars
+IF DEFINED PFTT_SHELL GOTO :skip_set_env
+CALL %~dp0set_env.cmd
+:skip_set_env
+
+SET cpu[0]=x64
+SET cpu[1]=x86
+SET cpu[2]=x64
+SET cpu[3]=x86
+SET thread[0]=NTS
+SET thread[1]=NTS
+SET thread[2]=TS
+SET thread[3]=TS
+set test_pack=php-test-pack-%branch%
+
+SET PHP_BUILDS=%~d0\PHPBuilds
+
+
+for /L %%j in (0,1,3) do (
+       call %~dp0get_qa.cmd %branch% !thread[%%j]! !cpu[%%j]!
+       
+       if !thread[%%j]!==NTS (
+               set file_name=php-%branch%-!thread[%%j]!-win32-vc15-!cpu[%%j]!
+       ) else (
+               set file_name=php-%branch%-win32-vc15-!cpu[%%j]!
+       )
+       
+       call %~dp0pftt.cmd -results_only core_list %PHP_BUILDS%\!file_name! 
%PHP_BUILDS%\%test_pack% %PFTT_HOME%\tests-to-run.txt
+       call %~dp0pftt.cmd -config opcache -results_only core_list 
%PHP_BUILDS%\!file_name! %PHP_BUILDS%\%test_pack% %PFTT_HOME%\tests-to-run.txt
+)
\ No newline at end of file

Reply via email to