Skip to content

Commit

Permalink
[skip travis] 20230628 Work on #216
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanGibbs3 committed Jun 28, 2023
1 parent 824fd52 commit 9bfe278
Show file tree
Hide file tree
Showing 16 changed files with 59 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/php/base_qry_commonspTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/iauthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public static function setUpBeforeClass(){
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/iauth_AuthorizedxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/idbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/idbspTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/ilog_timingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public static function setUpBeforeClass(){
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/ilog_timingspTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/inetspTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/ioutput_htmlspTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/istate_citemsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/istate_citemsspTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
2 changes: 2 additions & 0 deletions tests/php/istate_commonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public static function setUpBeforeClass() {
require('./tests/phpcommon/DB.mysql.RI.php');
}elseif( $DB == 'postgres' ){
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
20 changes: 20 additions & 0 deletions tests/phpcommon/DB.mssql.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
$alert_user='travis';
$alert_password='';
$alert_dbname='testpig';
$alert_port='1433';
$DBtype='mssql';
$archive_exists = 0;
$archive_dbname = '';
$archive_host = '';
$archive_port = '';
$archive_user = '';
$archive_password = '';
$TRAVIS = getenv('TRAVIS');
if( !$TRAVIS ){ // Running on Local Test System.
$alert_host='db';
require('../dbbasedev.php');
}else{
$alert_host='localhost';
}
?>
9 changes: 9 additions & 0 deletions tests/setupdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ elif [ "$DB" = "mysql" ]; then
echo "Creating $DB Database $DBNNRI using MyISAM SE."
mysql -h $DBS -u travis $OPT -e "CREATE DATABASE IF NOT EXISTS $DBNNRI;"
mysql -h $DBS -u travis $OPT -D $DBNNRI < tests/phpcommon/DB.mysql.MyISAM.sql
elif [ "$DB" = "mssql" ]; then
echo "Creating $DB Database $DBN."
echo "NOOp placeholder for MsSQL CLI."
echo "Creating SNORT Tables."
echo "NOOp placeholder for MsSQL CLI."
echo "Creating BASE Tables."
echo "NOOp placeholder for MsSQL CLI."
echo "Adding referential integrity to the database schema."
echo "NOOp placeholder for MsSQL CLI."
else
echo "Not Setting up Database."
fi
3 changes: 3 additions & 0 deletions tests/setuptestdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
}elseif( $DB == 'postgres' ){
$DBT = array('testpig');
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
$DBT = array('testpig');
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down
3 changes: 3 additions & 0 deletions tests/teardowntestdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
}elseif( $DB == 'postgres' ){
$DBT = array('testpig');
require('./tests/phpcommon/DB.pgsql.php');
}elseif( $DB == 'mssql' ){
$DBT = array('testpig');
require('./tests/phpcommon/DB.mssql.php');
}else{
self::markTestSkipped("CI Support unavialable for DB: $DB.");
}
Expand Down

0 comments on commit 9bfe278

Please sign in to comment.