[PHP-QA] com pftt2: updates for Azure App Services, Nanoserver and other changes: bin/NanoServerApiScan.exe src/com/mostc/pftt/model/ApplicationSourceTestPack.java src/com/mostc/pftt/model/app/AppUnit

2018-06-20 Thread Matt Ficken
Commit:d718fd0f726cc04289b74f3a7ec3466d0a79ad9b
Author:Matt Ficken  Wed, 20 Jun 2018 19:36:17 
-0700
Parents:   a6b3e5b47bdd498fb3255059de6b2425a3ba7f58
Branches:  master

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

Log:
updates for Azure App Services, Nanoserver and other changes

Changed paths:
  A  bin/NanoServerApiScan.exe
  A  src/com/mostc/pftt/model/ApplicationSourceTestPack.java
  A  src/com/mostc/pftt/model/app/AppUnitTestCase.java
  A  src/com/mostc/pftt/model/sapi/GenericWebServerManager.java
  A  src/com/mostc/pftt/runner/AbstractApplicationUnitTestCaseRunner.java
  A  src/com/mostc/pftt/runner/CliSimpleTestCaseRunner.java
  A  src/com/mostc/pftt/runner/HttpSimpleTestCaseRunner.java
  A  src/com/mostc/pftt/runner/LocalSimpleTestPackRunner.java

diff --git a/bin/NanoServerApiScan.exe b/bin/NanoServerApiScan.exe
new file mode 100644
index 000..4fbbea9
Binary files /dev/null and b/bin/NanoServerApiScan.exe differ
diff --git a/src/com/mostc/pftt/model/ApplicationSourceTestPack.java 
b/src/com/mostc/pftt/model/ApplicationSourceTestPack.java
new file mode 100644
index 000..ce4a290
--- /dev/null
+++ b/src/com/mostc/pftt/model/ApplicationSourceTestPack.java
@@ -0,0 +1,155 @@
+package com.mostc.pftt.model;
+
+import java.io.File;
+import java.io.IOException;
+
+import javax.annotation.Nullable;
+
+import com.github.mattficken.Overridable;
+import com.github.mattficken.io.StringUtil;
+import com.mostc.pftt.host.AHost;
+import com.mostc.pftt.host.LocalHost;
+import com.mostc.pftt.model.core.EBuildBranch;
+import com.mostc.pftt.results.ConsoleManager;
+import com.mostc.pftt.scenario.AzureWebsitesScenario;
+import com.mostc.pftt.scenario.FileSystemScenario;
+import com.mostc.pftt.scenario.SAPIScenario;
+
+public abstract class ApplicationSourceTestPack extends SourceTestPack {
+   protected String test_pack_root;
+   
+   /** installs the tests after they have been copied to storage (if 
needed)
+* 
+* @see #getRoot() returns the location the tests and their php files 
have been copied to (if they were
+* copied, if not copied, returns location they are stored at)
+* 
+* @param cm
+* @param host
+* @return
+* @throws Exception
+*/
+   protected abstract boolean openAfterInstall(ConsoleManager cm, AHost 
host) throws Exception;
+   
+   /** the base directory within the PFTT directory to find the test case 
files and required php files
+* 
+* Typically, test-packs will call #ensureAppDecompressed
+* 
+* @param cm
+* @param host - determine the absolute path on this host
+* @see AHost#getPfttDir
+* @return
+*/
+   protected abstract String getSourceRoot(ConsoleManager cm, AHost host);
+   
+   protected void doInstallInPlace(ConsoleManager cm, AHost host) throws 
IOException, Exception {
+   final String src_root = getSourceRoot(cm, 
LocalHost.getInstance());
+   if (!new File(src_root).isDirectory()) {
+   throw new IOException("source-test-pack not found: 
"+src_root);
+   }
+   setRoot(src_root);
+   
+   openAfterInstall(cm, host);
+   }
+   
+   protected void doInstallNamed(ConsoleManager cm, AHost host) throws 
IOException, Exception {
+   final String src_root = getSourceRoot(cm, 
LocalHost.getInstance());
+   if (!new File(src_root).isDirectory()) {
+   throw new IOException("source-test-pack not found: 
"+src_root);
+   }
+   setRoot(src_root);
+   
+   openAfterInstall(cm, host);
+   }
+   
+   protected void doInstall(SAPIScenario sapi_scenario, ConsoleManager cm, 
AHost host, String local_test_pack_dir, String remote_test_pack_dir) throws 
IOException, Exception {
+   LocalHost local_host = LocalHost.getInstance();
+   final String src_root = getSourceRoot(cm, local_host);
+   if (!new File(src_root).isDirectory()) {
+   throw new IOException("source-test-pack not found: 
"+src_root);
+   }
+   
+   // using #uploadCompressWith7Zip instead of just #upload makes 
a huge difference
+   // for PhpUnit test-packs because of the large number of small 
files that have to be uploaded
+   // TODO temp azure host.uploadCompressWith7Zip(cm, getClass(), 
src_root, local_host, remote_test_pack_dir);
+   System.out.println("71 "+local_test_pack_dir);
+   //System.exit(0);
+   
+   if (AzureWebsitesScenario.check(sapi_scenario)) {
+   
setRoot("D:\\HOME\\SITE\\WWWROOT\\"+FileSystemScenario.basename(getName()).replace("-12.3",
 "").replace("-1.20.2", ""));//MEDIAWIKI");//local_

[PHP-QA] com pftt2: updates for Azure App Services, Nanoserver and other changes: src/com/mostc/pftt/host/AHost.java src/com/mostc/pftt/host/AbstractRemoteTestPackRunner.java src/com/mostc/pftt/host/C

2018-06-20 Thread Matt Ficken
Commit:2ef731848e50eec67b29cb1d8675b85b4d980f8d
Author:Matt Ficken  Wed, 20 Jun 2018 20:14:00 
-0700
Parents:   d718fd0f726cc04289b74f3a7ec3466d0a79ad9b
Branches:  master

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

Log:
updates for Azure App Services, Nanoserver and other changes

Changed paths:
  M  src/com/mostc/pftt/host/AHost.java
  M  src/com/mostc/pftt/host/AbstractRemoteTestPackRunner.java
  M  src/com/mostc/pftt/host/CommonCommandManager.java
  M  src/com/mostc/pftt/host/ExecOutput.java
  M  src/com/mostc/pftt/host/Host.java
  M  src/com/mostc/pftt/host/HostGroup.java
  M  src/com/mostc/pftt/host/LocalHost.java
  M  src/com/mostc/pftt/host/PSCAgentServer.java
  M  src/com/mostc/pftt/host/PosixLocalHost.java
  M  src/com/mostc/pftt/host/RemoteHost.java
  M  src/com/mostc/pftt/host/RemotePhptTestPackRunner.java
  M  src/com/mostc/pftt/host/SSHHost.java
  M  src/com/mostc/pftt/host/TempFileExecOutput.java
  M  src/com/mostc/pftt/host/WindowsLocalHost.java
  M  src/com/mostc/pftt/main/Config.java
  M  src/com/mostc/pftt/main/PfttAgentMain.java
  M  src/com/mostc/pftt/main/PfttMain.java
  M  src/com/mostc/pftt/model/ActiveTestPack.java
  M  src/com/mostc/pftt/model/SourceTestPack.java
  M  src/com/mostc/pftt/model/app/DatabasePhpUnitSourceTestPack.java
  M  src/com/mostc/pftt/model/app/PhpUnitActiveTestPack.java
  M  src/com/mostc/pftt/model/app/PhpUnitSourceTestPack.java
  M  src/com/mostc/pftt/model/app/PhpUnitTemplate.groovy
  M  src/com/mostc/pftt/model/app/PhpUnitTestCase.java
  M  src/com/mostc/pftt/model/core/EBuildBranch.java
  M  src/com/mostc/pftt/model/core/ECompiler.java
  M  src/com/mostc/pftt/model/core/EPhptSection.java
  M  src/com/mostc/pftt/model/core/PhpBuild.java
  M  src/com/mostc/pftt/model/core/PhpBuildInfo.groovy
  M  src/com/mostc/pftt/model/core/PhpDebugPack.java
  M  src/com/mostc/pftt/model/core/PhpIni.java
  M  src/com/mostc/pftt/model/core/PhpParser.java
  M  src/com/mostc/pftt/model/core/PhptActiveTestPack.java
  M  src/com/mostc/pftt/model/core/PhptOverrideManager.java
  M  src/com/mostc/pftt/model/core/PhptSourceTestPack.java
  M  src/com/mostc/pftt/model/core/PhptTestCase.java
  M  src/com/mostc/pftt/model/custom/NTFSACL.java
  M  src/com/mostc/pftt/model/sapi/AbstractManagedProcessesWebServerManager.java
  M  src/com/mostc/pftt/model/sapi/ApacheManager.java
  M  src/com/mostc/pftt/model/sapi/BuiltinWebServerManager.java
  M  src/com/mostc/pftt/model/sapi/CliSAPIInstance.java
  M  src/com/mostc/pftt/model/sapi/CrashedWebServerInstance.java
  M  src/com/mostc/pftt/model/sapi/EApacheVersion.java
  M  src/com/mostc/pftt/model/sapi/IISManager.java
  M  src/com/mostc/pftt/model/sapi/SAPIInstance.java
  M  src/com/mostc/pftt/model/sapi/TestCaseGroupKey.java
  M  src/com/mostc/pftt/model/sapi/WebServerInstance.java
  M  src/com/mostc/pftt/model/sapi/WebServerManager.java
  M  src/com/mostc/pftt/model/smoke/RequiredExtensionsSmokeTest.java
  M  src/com/mostc/pftt/model/smoke/RequiredFeaturesSmokeTest.java
  M  src/com/mostc/pftt/model/smoke/TempDirWritableSmokeTest.java
  M  src/com/mostc/pftt/model/ui/UITestRunner.java
  M  src/com/mostc/pftt/results/CodeCoverageSummary.java
  M  src/com/mostc/pftt/results/ConsoleManager.java
  M  src/com/mostc/pftt/results/LocalConsoleManager.java
  M  src/com/mostc/pftt/results/PhpResultPackReader.java
  M  src/com/mostc/pftt/results/PhpResultPackWriter.java
  M  src/com/mostc/pftt/results/PhpUnitTestResult.java
  M  src/com/mostc/pftt/results/PhptResultReader.java
  M  src/com/mostc/pftt/results/PhptResultWriter.java
  M  src/com/mostc/pftt/results/PhptTestResult.java
  M  src/com/mostc/pftt/results/TestCaseCodeCoverage.java
  M  src/com/mostc/pftt/results/TextBuilder.java
  M  src/com/mostc/pftt/results/UITestReader.java
  M  src/com/mostc/pftt/results/UITestWriter.java
  M  src/com/mostc/pftt/runner/AbstractLocalTestPackRunner.java
  M  src/com/mostc/pftt/runner/AbstractPhpUnitTestCaseRunner.java
  M  src/com/mostc/pftt/runner/AbstractPhptTestCaseRunner.java
  M  src/com/mostc/pftt/runner/AbstractTestCaseRunner.java
  M  src/com/mostc/pftt/runner/AbstractTestPackRunner.java
  M  src/com/mostc/pftt/runner/BuiltinWebHttpPhpUnitTestCaseRunner.java
  M  src/com/mostc/pftt/runner/BuiltinWebHttpPhptTestCaseRunner.java
  M  src/com/mostc/pftt/runner/CliPhpUnitTestCaseRunner.java
  M  src/com/mostc/pftt/runner/CliPhptTestCaseRunner.java
  M  src/com/mostc/pftt/runner/HttpPhpUnitTestCaseRunner.java
  M  src/com/mostc/pftt/runner/HttpPhptTestCaseRunner.java
  M  src/com/mostc/pftt/runner/LocalPhpUnitTestPackRunner.java
  M  src/com/mostc/pftt/runner/LocalPhptTestPackRunner.java
  M  src/com/mostc/pftt/runner/PhptTestPreparer.java
  M  src/com/mostc/pftt/scenario/APCScenario.java
  M  src/com/mostc/pftt/scenario/APCUScenario.java
  M  src/com/mostc/pftt/scenario/ApacheScenario.java
  M  src/com/mostc/pftt/scenario/ApplicationScenario.java
  M  src/com/mostc/pftt/scenario/Buil

[PHP-QA] com web/qa: No ../.. hacks: list_builds.php

2018-06-20 Thread Rasmus Lerdorf
Commit:9e20078128d975ac396665f0ac4da1e7e2731871
Author:Rasmus Lerdorf  Wed, 20 Jun 2018 
21:26:36 -0700
Parents:   ab9bc8d68b7e6082f6bb74a2d08c8e8e7a75be3c
Branches:  master

Link:   
http://git.php.net/?p=web/qa.git;a=commitdiff;h=9e20078128d975ac396665f0ac4da1e7e2731871

Log:
No ../.. hacks

Changed paths:
  M  list_builds.php


Diff:
diff --git a/list_builds.php b/list_builds.php
index e8a06f3..3439e06 100755
--- a/list_builds.php
+++ b/list_builds.php
@@ -1,97 +1,97 @@
-
-
-
-Choose a PHP revision or build
- $latest_revision_mtime) {
-   $latest_revision = $revision;
-   $latest_revision_mtime = $mtime;
-   }
-   $revisions_by_mtime[$mtime] = $revision;
-   }
-} // end foreach
-
-$mtimes = array_keys($revisions_by_mtime);
-
-sort($mtimes);
-
-$revisions = array();
-
-foreach ($mtimes as $mtime) {
-array_push($revisions, $revisions_by_mtime[$mtime]);
-}
-
-$red = is_file(BASE_REPORT_DIR."/$branch/$latest_revision/FAIL_CRASH.txt");
-
-?>
-
-   
-   Latest:
-   
-   
-
-
-
-   
-   
-   
-   
-   
-
-
-
-
+
+
+
+Choose a PHP revision or build
+ $latest_revision_mtime) {
+   $latest_revision = $revision;
+   $latest_revision_mtime = $mtime;
+   }
+   $revisions_by_mtime[$mtime] = $revision;
+   }
+} // end foreach
+
+$mtimes = array_keys($revisions_by_mtime);
+
+sort($mtimes);
+
+$revisions = array();
+
+foreach ($mtimes as $mtime) {
+array_push($revisions, $revisions_by_mtime[$mtime]);
+}
+
+$red = is_file(BASE_REPORT_DIR."/$branch/$latest_revision/FAIL_CRASH.txt");
+
+?>
+
+   
+   Latest:
+   
+   
+
+
+
+   
+   
+   
+   
+   
+
+
+
+


--
PHP Quality Assurance Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php