-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the skipif wordings and styles (#1070)
- Loading branch information
Showing
17 changed files
with
185 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
if (!extension_loaded("pdo") || !extension_loaded('pdo_sqlsrv')) | ||
die("PDO driver cannot be loaded; skipping test.\n"); | ||
?> | ||
if (!extension_loaded("pdo_sqlsrv")) { | ||
die("skip Extension not loaded"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?php | ||
if (!extension_loaded("pdo") || !extension_loaded('pdo_sqlsrv')) | ||
die("PDO driver cannot be loaded; skipping test.\n"); | ||
if (!extension_loaded("pdo_sqlsrv")) { | ||
die("skip Extension not loaded"); | ||
} | ||
require 'MsSetup.inc'; | ||
if ($daasMode) die("skip test not applicable in Azure\n"); | ||
|
||
?> | ||
if ($daasMode) { | ||
die("skip test not applicable in Azure\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<?php | ||
if (!extension_loaded("pdo") || !extension_loaded('pdo_sqlsrv')) { | ||
die("PDO driver cannot be loaded; skipping test.\n"); | ||
} | ||
|
||
require_once("MsSetup.inc"); | ||
require_once("MsCommon_mid-refactor.inc"); | ||
|
||
$dsn = getDSN($server, null); | ||
$conn = new PDO($dsn, $uid, $pwd); | ||
if (! $conn) { | ||
echo("Error: could not connect during SKIPIF!"); | ||
} elseif (isColEncrypted()) { | ||
if (!isAEQualified($conn)) { | ||
die("skip - AE feature not supported in the current environment."); | ||
} | ||
} | ||
<?php | ||
if (!extension_loaded("pdo_sqlsrv")) { | ||
die("skip Extension not loaded"); | ||
} | ||
|
||
require_once("MsSetup.inc"); | ||
require_once("MsCommon_mid-refactor.inc"); | ||
|
||
$dsn = getDSN($server, null); | ||
$conn = new PDO($dsn, $uid, $pwd); | ||
if (! $conn) { | ||
die("skip could not connect during SKIPIF!"); | ||
} elseif (isColEncrypted()) { | ||
if (!isAEQualified($conn)) { | ||
die("skip - AE feature not supported in the current environment."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
<?php | ||
if (!extension_loaded("pdo") || !extension_loaded('pdo_sqlsrv')) { | ||
die("PDO driver cannot be loaded; skipping test.\n"); | ||
} | ||
|
||
require_once("MsSetup.inc"); | ||
|
||
if ($keystore != 'akv') | ||
die ( 'skip - the test requires valid Azure Key Vault credentials.' ); | ||
|
||
if ($driver != "ODBC Driver 17 for SQL Server") { | ||
// the testing is not set to use ODBC 17 | ||
die("skip - AE feature not supported in the current environment."); | ||
} | ||
|
||
require_once("MsCommon_mid-refactor.inc"); | ||
|
||
$dsn = getDSN($server, null); | ||
$conn = new PDO($dsn, $uid, $pwd); | ||
if (! $conn) { | ||
echo("Error: could not connect during SKIPIF!"); | ||
} elseif (!isAEQualified($conn)) { | ||
die("skip - AE feature not supported in the current environment."); | ||
} | ||
<?php | ||
if (!extension_loaded("pdo_sqlsrv")) { | ||
die("skip Extension not loaded"); | ||
} | ||
|
||
require_once("MsSetup.inc"); | ||
|
||
if ($keystore != 'akv') { | ||
die('skip the test requires valid Azure Key Vault credentials.'); | ||
} | ||
|
||
if ($driver != "ODBC Driver 17 for SQL Server") { | ||
// the testing is not set to use ODBC 17 | ||
die("skip AE feature not supported in the current environment."); | ||
} | ||
|
||
require_once("MsCommon_mid-refactor.inc"); | ||
|
||
$dsn = getDSN($server, null); | ||
$conn = new PDO($dsn, $uid, $pwd); | ||
if (! $conn) { | ||
die("skip could not connect during SKIPIF!"); | ||
} elseif (!isAEQualified($conn)) { | ||
die("skip AE feature not supported in the current environment."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?php | ||
|
||
if ( !( strtoupper( substr( php_uname( 's' ),0,3 ) ) === 'WIN' ) ) die( "Skip, test on windows only." ); | ||
if (!(strtoupper(substr(php_uname('s'), 0, 3)) === 'WIN')) { | ||
die("Skip test on windows only."); | ||
} | ||
|
||
if (!extension_loaded("pdo") || !extension_loaded('pdo_sqlsrv')) | ||
die("PDO driver cannot be loaded; skipping test.\n"); | ||
|
||
?> | ||
if (!extension_loaded("pdo") || !extension_loaded('pdo_sqlsrv')) { | ||
die("skip extension not loaded"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
<?php | ||
|
||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { | ||
die("Skipped: Test for Linux and macOS"); | ||
die("skip Test for Linux and macOS"); | ||
} | ||
|
||
if (!extension_loaded("sqlsrv")) { | ||
die("skip extension not loaded"); | ||
if (!extension_loaded("pdo_sqlsrv")) { | ||
die("skip Extension not loaded"); | ||
} | ||
|
||
// check if the required ini file exists | ||
$inifile = PHP_CONFIG_FILE_SCAN_DIR."/99-overrides.ini"; | ||
if (!file_exists($inifile)) { | ||
die("required ini file not exists"); | ||
die("skip required ini file not exists"); | ||
} | ||
|
||
// if the file exists, is it writable? '@' sign is used to suppress warnings | ||
$file = @fopen($inifile, "w"); | ||
if (!$file) { | ||
die("required ini file not writable"); | ||
die("skip required ini file not writable"); | ||
} | ||
|
||
fclose($file); | ||
|
||
$loc = setlocale(LC_TIME, 'de_DE.UTF-8'); | ||
if (empty($loc)) { | ||
die("required locale not available"); | ||
die("skip required locale not available"); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
<?php | ||
|
||
if (! extension_loaded( 'pdo' ) || ! extension_loaded( 'pdo_sqlsrv' )) | ||
die( "PDO driver cannot be loaded; skipping test.\n" ); | ||
if (!extension_loaded("pdo_sqlsrv")) { | ||
die("skip Extension not loaded"); | ||
} | ||
|
||
require_once( "MsSetup.inc" ); | ||
require_once( "MsCommon.inc" ); | ||
require_once("MsSetup.inc"); | ||
require_once("MsCommon.inc"); | ||
|
||
$conn = ae_connect(); | ||
if( ! $conn ) | ||
{ | ||
echo( "Error: could not connect during SKIPIF!" ); | ||
} | ||
else if(! IsAEQualified($conn)) | ||
{ | ||
die( "skip - AE feature not supported in the current environment." ); | ||
if (! $conn) { | ||
die("skip could not connect during SKIPIF!"); | ||
} elseif (! IsAEQualified($conn)) { | ||
die("skip AE feature not supported in the current environment."); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<?php | ||
|
||
if (! extension_loaded("sqlsrv")) { | ||
die("skip extension not loaded"); | ||
} | ||
|
||
require_once("MsSetup.inc"); | ||
if ($keystore != 'akv') | ||
die ( 'skip - the test requires valid Azure Key Vault credentials.' ); | ||
|
||
if ($driver != "ODBC Driver 17 for SQL Server") { | ||
// the testing is not set to use ODBC 17 | ||
die("skip - AE feature not supported in the current environment."); | ||
} | ||
|
||
require_once('MsCommon.inc'); | ||
|
||
$conn = AE\connect(); | ||
if (! $conn) { | ||
echo("Error: could not connect during SKIPIF!"); | ||
} elseif (!AE\isQualified($conn)) { | ||
die("skip - AE feature not supported in the current environment."); | ||
} | ||
?> | ||
<?php | ||
|
||
if (! extension_loaded("sqlsrv")) { | ||
die("skip extension not loaded"); | ||
} | ||
|
||
require_once("MsSetup.inc"); | ||
if ($keystore != 'akv') { | ||
die('skip the test requires valid Azure Key Vault credentials.'); | ||
} | ||
|
||
if ($driver != "ODBC Driver 17 for SQL Server") { | ||
// the testing is not set to use ODBC 17 | ||
die("skip AE feature not supported in the current environment."); | ||
} | ||
|
||
require_once('MsCommon.inc'); | ||
|
||
$conn = AE\connect(); | ||
if (! $conn) { | ||
die("skip could not connect during SKIPIF!"); | ||
} elseif (!AE\isQualified($conn)) { | ||
die("skip AE feature not supported in the current environment."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?php | ||
|
||
if ( !( strtoupper( substr( php_uname( 's' ),0,3 ) ) === 'WIN' ) ) die( "Skip, test on windows only." ); | ||
if (!(strtoupper(substr(php_uname('s'), 0, 3)) === 'WIN')) { | ||
die("Skip Test on windows only."); | ||
} | ||
|
||
if (!extension_loaded("sqlsrv")) { | ||
die("skip extension not loaded"); | ||
} | ||
|
||
?> |
Oops, something went wrong.