From fbfa4bbe7d30aa4b1d224ea47657b4772a95aafd Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 20:50:30 +0100 Subject: [PATCH 01/17] added extra requirements --- .travis.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d385c27fa..d38ffd2a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,12 +13,14 @@ addons: packages: - tmux - mailutils - - postfix - - lib32gcc1 - - libstdc++6 - - libstdc++6:i386 - - telnet + - postfix + - lib32gcc1 + - libstdc++6 + - libstdc++6:i386 + - telnet - expect + - bc + - binutils script: From 38a48582a3d8be31fd27be76a8c11b50830aa518 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 20:53:22 +0100 Subject: [PATCH 02/17] added new tests --- tests/tests_jc2server.sh | 63 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 4 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index ee067c6f5..4b9f30348 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -423,7 +423,7 @@ fn_setstatus(){ # End of every test will expect the result to either pass or fail # If the script does not do as intended the whole test will fail -# if excpecting a pass +# if expecting a pass fn_test_result_pass(){ if [ $? != 0 ]; then echo "=================================" @@ -441,7 +441,7 @@ fn_test_result_pass(){ fi } -# if excpecting a fail +# if expecting a fail fn_test_result_fail(){ if [ $? == 0 ]; then echo "=================================" @@ -706,10 +706,10 @@ echo "=================================" echo "Description:" echo "runs update-functions." echo "" -echo "Command: ./jc2server update-functions" +echo "Command: ./jc2server update-lgsm" requiredstatus="OFFLINE" fn_setstatus -(command_update_functions.sh) +(command_update_linuxgsm.sh) fn_test_result_pass echo "" @@ -777,6 +777,61 @@ fn_setstatus (command_details.sh) fn_test_result_pass +echo "" +echo "6.1 - post details" +echo "=================================" +echo "Description:" +echo "display details." +echo "Command: ./jc2server postdetails" +requiredstatus="ONLINE" +fn_setstatus +(command_postdetails.sh) +fn_test_result_pass + +echo "" +echo "7.0 - backup" +echo "=================================" +echo "Description:" +echo "display details." +echo "Command: ./jc2server backup" +requiredstatus="ONLINE" +fn_setstatus +(command_backup.sh) +fn_test_result_pass + +echo "" +echo "8.0 - dev - detect glibc" +echo "=================================" +echo "Description:" +echo "display details." +echo "Command: ./jc2server detect-glibc" +requiredstatus="ONLINE" +fn_setstatus +(command_dev_detect_glibc.sh) +fn_test_result_pass + +echo "" +echo "8.1 - dev - detect ldd" +echo "=================================" +echo "Description:" +echo "display details." +echo "Command: ./jc2server detect-ldd" +requiredstatus="ONLINE" +fn_setstatus +(command_dev_detect_ldd.sh) +fn_test_result_pass + +echo "" +echo "8.2 - dev - detect deps" +echo "=================================" +echo "Description:" +echo "display details." +echo "Command: ./jc2server detect-deps" +requiredstatus="ONLINE" +fn_setstatus +(command_dev_detect_deps.sh) +fn_test_result_pass + echo "" echo "=================================" echo "Server Tests - Complete!" From 4a025973e330992b4466c716426d2d600cd251b3 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 21:02:13 +0100 Subject: [PATCH 03/17] removed test 4.9 update functions as forces the test to exit --- tests/tests_jc2server.sh | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 4b9f30348..6e70f0ef4 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -700,18 +700,6 @@ fn_setstatus (command_validate.sh) fn_test_result_pass -echo "" -echo "4.9 - update-functions" -echo "=================================" -echo "Description:" -echo "runs update-functions." -echo "" -echo "Command: ./jc2server update-lgsm" -requiredstatus="OFFLINE" -fn_setstatus -(command_update_linuxgsm.sh) -fn_test_result_pass - echo "" echo "5.1 - monitor - online" echo "=================================" @@ -723,7 +711,6 @@ fn_setstatus (command_monitor.sh) fn_test_result_pass - echo "" echo "5.2 - monitor - offline - with lockfile" echo "=================================" @@ -737,7 +724,6 @@ date > "${rootdir}/${lockselfname}" (command_monitor.sh) fn_test_result_pass - echo "" echo "5.3 - monitor - offline - no lockfile" echo "=================================" @@ -781,7 +767,7 @@ echo "" echo "6.1 - post details" echo "=================================" echo "Description:" -echo "display details." +echo "post details." echo "Command: ./jc2server postdetails" requiredstatus="ONLINE" fn_setstatus @@ -792,7 +778,7 @@ echo "" echo "7.0 - backup" echo "=================================" echo "Description:" -echo "display details." +echo "run a backup." echo "Command: ./jc2server backup" requiredstatus="ONLINE" fn_setstatus @@ -803,7 +789,7 @@ echo "" echo "8.0 - dev - detect glibc" echo "=================================" echo "Description:" -echo "display details." +echo "detect glibc." echo "Command: ./jc2server detect-glibc" requiredstatus="ONLINE" fn_setstatus @@ -814,7 +800,7 @@ echo "" echo "8.1 - dev - detect ldd" echo "=================================" echo "Description:" -echo "display details." +echo "detect ldd." echo "Command: ./jc2server detect-ldd" requiredstatus="ONLINE" fn_setstatus @@ -825,7 +811,7 @@ echo "" echo "8.2 - dev - detect deps" echo "=================================" echo "Description:" -echo "display details." +echo "detect dependencies." echo "Command: ./jc2server detect-deps" requiredstatus="ONLINE" fn_setstatus From 6847c9136e88bbf83ea920bd4e9bbdd2ff6fa61a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 21:21:47 +0100 Subject: [PATCH 04/17] updated requirements --- .travis.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d38ffd2a2..1bba50377 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,16 +11,24 @@ addons: sources: - ubuntu-toolchain-r-test packages: - - tmux - mailutils - postfix + - curl + - wget + - file + - bzip2 + - gzip + - unzip + - bsdmainutils + - python + - util-linux + - ca-certificates + - binutils + - bc + - tmux - lib32gcc1 - libstdc++6 - libstdc++6:i386 - - telnet - - expect - - bc - - binutils script: From 5fa808deccb387c8c7538a112783f7d8c8dd37b4 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 21:55:14 +0100 Subject: [PATCH 05/17] testing IP insert feature --- tests/tests_jc2server.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 6e70f0ef4..0f89cc22e 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -528,6 +528,14 @@ echo "Command: ./jc2server auto-install" (fn_autoinstall) fn_test_result_pass +echo "" +echo "Inserting IP address" +echo "=================================" +echo "Description:" +echo "Inserting Travis IP in to config." +echo "Allows monitor to work" +travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) +awk '/BindIP/ { print; print "BindIP = \"${travisip}\","; next }1' "${serverfiles}/serverfiles/config.lua" > "${serverfiles}/serverfiles/config.lua" echo "" echo "3.1 - start" From 112ff841d9cc468f236b1b8528121e870dc7c21f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 22:04:34 +0100 Subject: [PATCH 06/17] correcting directory --- tests/tests_jc2server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 0f89cc22e..55896ed93 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -535,7 +535,7 @@ echo "Description:" echo "Inserting Travis IP in to config." echo "Allows monitor to work" travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) -awk '/BindIP/ { print; print "BindIP = \"${travisip}\","; next }1' "${serverfiles}/serverfiles/config.lua" > "${serverfiles}/serverfiles/config.lua" +awk '/BindIP/ { print; print "BindIP = \"${travisip}\","; next }1' "${serverfiles}/config.lua" > "${serverfiles}/config.lua" echo "" echo "3.1 - start" From 3328c0a9801901431cd15de5e95e7c2217e3e729 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 22:12:59 +0100 Subject: [PATCH 07/17] moved ip insert next to monitor --- tests/tests_jc2server.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 55896ed93..9274a1f97 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -528,15 +528,6 @@ echo "Command: ./jc2server auto-install" (fn_autoinstall) fn_test_result_pass -echo "" -echo "Inserting IP address" -echo "=================================" -echo "Description:" -echo "Inserting Travis IP in to config." -echo "Allows monitor to work" -travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) -awk '/BindIP/ { print; print "BindIP = \"${travisip}\","; next }1' "${serverfiles}/config.lua" > "${serverfiles}/config.lua" - echo "" echo "3.1 - start" echo "=================================" @@ -708,6 +699,15 @@ fn_setstatus (command_validate.sh) fn_test_result_pass +echo "" +echo "Inserting IP address" +echo "=================================" +echo "Description:" +echo "Inserting Travis IP in to config." +echo "Allows monitor to work" +travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) +awk '/BindIP/ { print; print "BindIP = \"${travisip}\","; next }1' "${serverfiles}/config.lua" > "${serverfiles}/config.lua" + echo "" echo "5.1 - monitor - online" echo "=================================" From 8ac209fd635ffa36e749d4a82cf69b359177faff Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 22:24:57 +0100 Subject: [PATCH 08/17] testing another method of IP insert --- tests/tests_jc2server.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 9274a1f97..5d33d043c 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -706,8 +706,7 @@ echo "Description:" echo "Inserting Travis IP in to config." echo "Allows monitor to work" travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) -awk '/BindIP/ { print; print "BindIP = \"${travisip}\","; next }1' "${serverfiles}/config.lua" > "${serverfiles}/config.lua" - +sed -i '/BindIP/c\BindIP = \"${travisip}\",' "${serverfiles}/config.lua" echo "" echo "5.1 - monitor - online" echo "=================================" From 712d9185b875b337df1dbce8828ec043d17fa546 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 22:31:01 +0100 Subject: [PATCH 09/17] added ip address tools --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1bba50377..eb258edce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,8 @@ addons: - lib32gcc1 - libstdc++6 - libstdc++6:i386 + - net-tools + - iproute2 script: From 0f1a70e0b20afa61062dce7d0b3c56af05b10572 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 22:38:45 +0100 Subject: [PATCH 10/17] testing if ip insert id required not added ip tools --- tests/tests_jc2server.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 5d33d043c..b57516347 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -705,8 +705,9 @@ echo "=================================" echo "Description:" echo "Inserting Travis IP in to config." echo "Allows monitor to work" -travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) -sed -i '/BindIP/c\BindIP = \"${travisip}\",' "${serverfiles}/config.lua" +#travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) +#sed -i '/BindIP/c\BindIP = \"${travisip}\",' "${serverfiles}/config.lua" + echo "" echo "5.1 - monitor - online" echo "=================================" From 1918b45e080ee529418531e4924886712f8e5c1f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 23:14:20 +0100 Subject: [PATCH 11/17] ipconfig --- tests/tests_jc2server.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index b57516347..16360a254 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -707,7 +707,8 @@ echo "Inserting Travis IP in to config." echo "Allows monitor to work" #travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) #sed -i '/BindIP/c\BindIP = \"${travisip}\",' "${serverfiles}/config.lua" - +echo "IP: ${ip}" +ipconfig echo "" echo "5.1 - monitor - online" echo "=================================" From 67844f3525467ddeaacb72cf80875aa6533fa01c Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 23:14:49 +0100 Subject: [PATCH 12/17] ifconfig --- tests/tests_jc2server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 16360a254..47c042123 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -708,7 +708,7 @@ echo "Allows monitor to work" #travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) #sed -i '/BindIP/c\BindIP = \"${travisip}\",' "${serverfiles}/config.lua" echo "IP: ${ip}" -ipconfig +ifconfig echo "" echo "5.1 - monitor - online" echo "=================================" From aa4a325204804000dd3de3767f584c3e2c01584a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 23:25:03 +0100 Subject: [PATCH 13/17] eth0 --- tests/tests_jc2server.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 47c042123..7c4a39c2e 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -705,8 +705,8 @@ echo "=================================" echo "Description:" echo "Inserting Travis IP in to config." echo "Allows monitor to work" -#travisip=$(ip -o -4 addr|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) -#sed -i '/BindIP/c\BindIP = \"${travisip}\",' "${serverfiles}/config.lua" +travisip=$(ip -o -4 addr|grep eth0|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) +sed -i '/BindIP/c\BindIP = \"${travisip}\",' "${serverfiles}/config.lua" echo "IP: ${ip}" ifconfig echo "" From 70d4cd72273c0b72b2a38acbe36e993acc9a4de8 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 23:33:25 +0100 Subject: [PATCH 14/17] more ip tests --- tests/tests_jc2server.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 7c4a39c2e..e50597721 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -706,9 +706,9 @@ echo "Description:" echo "Inserting Travis IP in to config." echo "Allows monitor to work" travisip=$(ip -o -4 addr|grep eth0|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) -sed -i '/BindIP/c\BindIP = \"${travisip}\",' "${serverfiles}/config.lua" -echo "IP: ${ip}" -ifconfig +sed -i "/BindIP/c\BindIP = \"${travisip}\"," "${serverfiles}/config.lua" +echo "IP: ${travisip}" + echo "" echo "5.1 - monitor - online" echo "=================================" From 660a772dad55e793e22ec92072494a3d42f51bca Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 9 Oct 2017 23:41:22 +0100 Subject: [PATCH 15/17] added ip insert in second location --- tests/tests_jc2server.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index e50597721..e1ee6511b 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -744,6 +744,16 @@ fn_setstatus (command_monitor.sh) fn_test_result_fail +echo "" +echo "Inserting IP address" +echo "=================================" +echo "Description:" +echo "Inserting Travis IP in to config." +echo "Allows monitor to work" +travisip=$(ip -o -4 addr|grep eth0|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) +sed -i "/BindIP/c\BindIP = \"${travisip}\"," "${serverfiles}/config.lua" +echo "IP: ${travisip}" + echo "" echo "5.4 - monitor - gsquery.py failure" echo "=================================" From 0c84efad11702fb2867cbf3435a7d2580206a72a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 10 Oct 2017 20:00:32 +0100 Subject: [PATCH 16/17] insert ip not required here --- tests/tests_jc2server.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index e1ee6511b..36d366069 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -744,16 +744,6 @@ fn_setstatus (command_monitor.sh) fn_test_result_fail -echo "" -echo "Inserting IP address" -echo "=================================" -echo "Description:" -echo "Inserting Travis IP in to config." -echo "Allows monitor to work" -travisip=$(ip -o -4 addr|grep eth0|awk '{print $4}'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|grep -v 127.0.0) -sed -i "/BindIP/c\BindIP = \"${travisip}\"," "${serverfiles}/config.lua" -echo "IP: ${travisip}" - echo "" echo "5.4 - monitor - gsquery.py failure" echo "=================================" @@ -844,8 +834,6 @@ echo "Using: ${gamename}" echo "=================================" requiredstatus="OFFLINE" fn_setstatus -sleep 1 fn_print_info "Tidying up directories." -sleep 1 rm -rfv "${serverfiles}" core_exit.sh \ No newline at end of file From 7615374b26d3a75b4d9cfaaadf6df56dcfc2a858 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 10 Oct 2017 20:08:11 +0100 Subject: [PATCH 17/17] Updated test --- tests/tests_ts3server.sh | 79 +++++++++++++++++++++++++++++----------- 1 file changed, 58 insertions(+), 21 deletions(-) diff --git a/tests/tests_ts3server.sh b/tests/tests_ts3server.sh index 22403dd43..dd5b8351b 100644 --- a/tests/tests_ts3server.sh +++ b/tests/tests_ts3server.sh @@ -423,7 +423,7 @@ fn_setstatus(){ # End of every test will expect the result to either pass or fail # If the script does not do as intended the whole test will fail -# if excpecting a pass +# if expecting a pass fn_test_result_pass(){ if [ $? != 0 ]; then echo "=================================" @@ -441,7 +441,7 @@ fn_test_result_pass(){ fi } -# if excpecting a fail +# if expecting a fail fn_test_result_fail(){ if [ $? == 0 ]; then echo "=================================" @@ -528,7 +528,6 @@ echo "Command: ./ts3server auto-install" (fn_autoinstall) fn_test_result_pass - echo "" echo "3.1 - start" echo "=================================" @@ -606,29 +605,16 @@ fn_setstatus (command_restart.sh) fn_test_result_pass -echo "" echo "4.1 - update" echo "=================================" echo "Description:" echo "check for updates." -echo "Command: ./jc2server update" +echo "Command: ./ts3server update" requiredstatus="OFFLINE" fn_setstatus (command_update.sh) fn_test_result_pass -echo "" -echo "4.2 - update-functions" -echo "=================================" -echo "Description:" -echo "runs update-functions." -echo "" -echo "Command: ./jc2server update-functions" -requiredstatus="OFFLINE" -fn_setstatus -(command_update_functions.sh) -fn_test_result_pass - echo "" echo "5.1 - monitor - online" echo "=================================" @@ -640,7 +626,6 @@ fn_setstatus (command_monitor.sh) fn_test_result_pass - echo "" echo "5.2 - monitor - offline - with lockfile" echo "=================================" @@ -654,7 +639,6 @@ date > "${rootdir}/${lockselfname}" (command_monitor.sh) fn_test_result_pass - echo "" echo "5.3 - monitor - offline - no lockfile" echo "=================================" @@ -677,6 +661,61 @@ fn_setstatus (command_details.sh) fn_test_result_pass +echo "" +echo "6.1 - post details" +echo "=================================" +echo "Description:" +echo "post details." +echo "Command: ./jc2server postdetails" +requiredstatus="ONLINE" +fn_setstatus +(command_postdetails.sh) +fn_test_result_pass + +echo "" +echo "7.0 - backup" +echo "=================================" +echo "Description:" +echo "run a backup." +echo "Command: ./jc2server backup" +requiredstatus="ONLINE" +fn_setstatus +(command_backup.sh) +fn_test_result_pass + +echo "" +echo "8.0 - dev - detect glibc" +echo "=================================" +echo "Description:" +echo "detect glibc." +echo "Command: ./jc2server detect-glibc" +requiredstatus="ONLINE" +fn_setstatus +(command_dev_detect_glibc.sh) +fn_test_result_pass + +echo "" +echo "8.1 - dev - detect ldd" +echo "=================================" +echo "Description:" +echo "detect ldd." +echo "Command: ./jc2server detect-ldd" +requiredstatus="ONLINE" +fn_setstatus +(command_dev_detect_ldd.sh) +fn_test_result_pass + +echo "" +echo "8.2 - dev - detect deps" +echo "=================================" +echo "Description:" +echo "detect dependencies." +echo "Command: ./jc2server detect-deps" +requiredstatus="ONLINE" +fn_setstatus +(command_dev_detect_deps.sh) +fn_test_result_pass + echo "" echo "=================================" echo "Server Tests - Complete!" @@ -684,8 +723,6 @@ echo "Using: ${gamename}" echo "=================================" requiredstatus="OFFLINE" fn_setstatus -sleep 1 fn_print_info "Tidying up directories." -sleep 1 rm -rfv "${serverfiles}" core_exit.sh \ No newline at end of file