|
@@ -11,7 +11,7 @@ travistest="1"
|
|
|
|
|
|
|
|
# Debugging
|
|
# Debugging
|
|
|
if [ -f ".dev-debug" ]; then
|
|
if [ -f ".dev-debug" ]; then
|
|
|
- exec 5>dev-debug.log
|
|
|
|
|
|
|
+ exec 5>"tests/dev-debug.log"
|
|
|
BASH_XTRACEFD="5"
|
|
BASH_XTRACEFD="5"
|
|
|
set -x
|
|
set -x
|
|
|
fi
|
|
fi
|
|
@@ -484,9 +484,11 @@ echo "Enable dev-debug"
|
|
|
echo ""
|
|
echo ""
|
|
|
(command_dev_debug.sh)
|
|
(command_dev_debug.sh)
|
|
|
fn_test_result_pass
|
|
fn_test_result_pass
|
|
|
-grep "functionfile=" dev-debug.log
|
|
|
|
|
|
|
+grep "functionfile=" "tests/dev-debug.log"
|
|
|
echo "################## LS -AL"
|
|
echo "################## LS -AL"
|
|
|
ls -al
|
|
ls -al
|
|
|
|
|
+echo "################## pwd"
|
|
|
|
|
+pwd
|
|
|
echo "1.0 - start - no files"
|
|
echo "1.0 - start - no files"
|
|
|
echo "================================="
|
|
echo "================================="
|
|
|
echo "Description:"
|
|
echo "Description:"
|
|
@@ -495,7 +497,7 @@ echo "Command: ./jc2server start"
|
|
|
echo ""
|
|
echo ""
|
|
|
(command_start.sh)
|
|
(command_start.sh)
|
|
|
fn_test_result_fail
|
|
fn_test_result_fail
|
|
|
-grep "functionfile=" dev-debug.log
|
|
|
|
|
|
|
+grep "functionfile=" "tests/dev-debug.log"
|
|
|
|
|
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "1.1 - getopt"
|
|
echo "1.1 - getopt"
|
|
@@ -506,7 +508,7 @@ echo "Command: ./jc2server"
|
|
|
echo ""
|
|
echo ""
|
|
|
(core_getopt.sh)
|
|
(core_getopt.sh)
|
|
|
fn_test_result_pass
|
|
fn_test_result_pass
|
|
|
-grep "functionfile=" dev-debug.log
|
|
|
|
|
|
|
+grep "functionfile=" "tests/dev-debug.log"
|
|
|
|
|
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "1.2 - getopt with incorrect args"
|
|
echo "1.2 - getopt with incorrect args"
|
|
@@ -518,7 +520,7 @@ echo ""
|
|
|
getopt="abc123"
|
|
getopt="abc123"
|
|
|
(core_getopt.sh)
|
|
(core_getopt.sh)
|
|
|
fn_test_result_fail
|
|
fn_test_result_fail
|
|
|
-grep "functionfile=" dev-debug.log
|
|
|
|
|
|
|
+grep "functionfile=" "tests/dev-debug.log"
|
|
|
|
|
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "2.0 - install"
|
|
echo "2.0 - install"
|
|
@@ -528,7 +530,7 @@ echo "install ${gamename} server."
|
|
|
echo "Command: ./jc2server auto-install"
|
|
echo "Command: ./jc2server auto-install"
|
|
|
(fn_autoinstall)
|
|
(fn_autoinstall)
|
|
|
fn_test_result_pass
|
|
fn_test_result_pass
|
|
|
-grep "functionfile=" dev-debug.log
|
|
|
|
|
|
|
+grep "functionfile=" "tests/dev-debug.log"
|
|
|
|
|
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "3.1 - start"
|
|
echo "3.1 - start"
|
|
@@ -540,7 +542,7 @@ requiredstatus="OFFLINE"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(command_start.sh)
|
|
(command_start.sh)
|
|
|
fn_test_result_pass
|
|
fn_test_result_pass
|
|
|
-grep "functionfile=" dev-debug.log
|
|
|
|
|
|
|
+grep "functionfile=" "tests/dev-debug.log"
|
|
|
|
|
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "3.2 - start - online"
|
|
echo "3.2 - start - online"
|