From 1ecdfe81783c3eb015eccde5363fa667c34b3654 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 10 Jul 2016 22:49:06 +0100 Subject: [PATCH] test --- tests/tests_jc2server.sh | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index d1406873c..ac499c9d2 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -14,6 +14,9 @@ githubuser="dgibbs64" githubrepo="linuxgsm" githubbranch="$TRAVIS_BRANCH" +# Steam +appid="261140" + ##### Script ##### # Directories @@ -308,4 +311,57 @@ requiredstatus="OFFLINE" fn_print_info_nl "changed buildid to 0." sed -i 's/[0-9]\+/0/' ${filesdir}/steamapps/appmanifest_${appid}.acf ./jc2server update +fn_test_result_pass + +echo "" +echo "4.3 - update - change buildid - online" +echo "=================================" +echo "Description:" +echo "change the buildid tricking SteamCMD to update server while already running." +echo "Command: ./jc2server update" +requiredstatus="ONLINE" +fn_print_info_nl "changed buildid to 0." +sed -i 's/[0-9]\+/0/' ${filesdir}/steamapps/appmanifest_${appid}.acf +./jc2server update +fn_test_result_pass + +echo "" +echo "4.4 - update - remove appmanifest file" +echo "=================================" +echo "Description:" +echo "removing appmanifest file will cause script to repair." +echo "Command: ./jc2server update" +requiredstatus="OFFLINE" +fn_print_info_nl "removed appmanifest_${appid}.acf." +rm --verbose "${filesdir}/steamapps/appmanifest_${appid}.acf" +./jc2server update +fn_test_result_pass + +echo "" +echo "4.5 - force-update" +echo "=================================" +echo "Description:" +echo "force-update bypassing update check." +echo "Command: ./jc2server force-update" +requiredstatus="OFFLINE" +./jc2server force-update +fn_test_result_pass + +echo "" +echo "4.7 - validate" +echo "=================================" +echo "Description:" +echo "validate server files." +echo "Command: ./jc2server validate" +requiredstatus="OFFLINE" +./jc2server validate +fn_test_result_pass + +echo "" +echo "4.8 - validate - online" +echo "=================================" +echo "Description:" +echo "validate server files while server while already running." +requiredstatus="ONLINE" +./jc2server validate fn_test_result_pass \ No newline at end of file