Skip to content

Commit

Permalink
Test path variables set in init
Browse files Browse the repository at this point in the history
  • Loading branch information
angoca committed Oct 6, 2014
1 parent 3ac718f commit 9a376ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/scripts/init
Expand Up @@ -29,7 +29,9 @@ if [ -z ${DB2UNIT_PATH} ] ; then
fi

if [ -z ${DB2UNIT_SRC_MAIN_CODE_PATH} ] ; then
export DB2UNIT_SRC_MAIN_CODE_PATH=${DB2UNIT_PATH}/sql-pl
export DB2UNIT_SRC_MAIN_SCRIPT_PATH=${DB2UNIT_PATH}
DB2UNIT_SRC_MAIN_CODE_PATH=${DB2UNIT_PATH}/sql-pl
DB2UNIT_SRC_MAIN_SCRIPT_PATH=${DB2UNIT_PATH}
DB2UNIT_SRC_TEST_CODE_PATH=${DB2UNIT_PATH}/sql-pl
DB2UNIT_SRC_TEST_SCRIPT_PATH=${DB2UNIT_PATH}
fi

2 changes: 2 additions & 0 deletions src/main/scripts/init.bat
Expand Up @@ -32,5 +32,7 @@ if "%DB2UNIT_PATH%" EQU "" (
if "%DB2UNIT_SRC_MAIN_CODE_PATH%" EQU "" (
set DB2UNIT_SRC_MAIN_CODE_PATH=%DB2UNIT_PATH%sql-pl
set DB2UNIT_SRC_MAIN_SCRIPT_PATH=%DB2UNIT_PATH%
set DB2UNIT_SRC_TEST_CODE_PATH=%DB2UNIT_PATH%sql-pl
set DB2UNIT_SRC_TEST_SCRIPT_PATH=%DB2UNIT_PATH%
)

2 changes: 2 additions & 0 deletions src/main/scripts/init.ps1
Expand Up @@ -31,5 +31,7 @@ if ( ! ( Test-Path Variable:\DB2UNIT_PATH ) ) {
if ( ! ( Test-Path Variable:\DB2UNIT_SRC_MAIN_CODE_PATH ) ) {
${Global:DB2UNIT_SRC_MAIN_CODE_PATH}="${DB2UNIT_PATH}\sql-pl"
${Global:DB2UNIT_SRC_MAIN_SCRIPT_PATH}="${DB2UNIT_PATH}"
${Global:DB2UNIT_SRC_TEST_CODE_PATH}="${DB2UNIT_PATH}\sql-pl"
${Global:DB2UNIT_SRC_TEST_SCRIPT_PATH}="${DB2UNIT_PATH}"
}

0 comments on commit 9a376ef

Please sign in to comment.