Răsfoiți Sursa

Updated test

Daniel Gibbs 8 ani în urmă
părinte
comite
7615374b26
1 a modificat fișierele cu 58 adăugiri și 21 ștergeri
  1. 58 21
      tests/tests_ts3server.sh

+ 58 - 21
tests/tests_ts3server.sh

@@ -423,7 +423,7 @@ fn_setstatus(){
 
 
 # End of every test will expect the result to either pass or fail
 # 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 the script does not do as intended the whole test will fail
-# if excpecting a pass
+# if expecting a pass
 fn_test_result_pass(){
 fn_test_result_pass(){
 	if [ $? != 0 ]; then
 	if [ $? != 0 ]; then
 		echo "================================="
 		echo "================================="
@@ -441,7 +441,7 @@ fn_test_result_pass(){
 	fi
 	fi
 }
 }
 
 
-# if excpecting a fail
+# if expecting a fail
 fn_test_result_fail(){
 fn_test_result_fail(){
 	if [ $? == 0 ]; then
 	if [ $? == 0 ]; then
 		echo "================================="
 		echo "================================="
@@ -528,7 +528,6 @@ echo "Command: ./ts3server auto-install"
 (fn_autoinstall)
 (fn_autoinstall)
 fn_test_result_pass
 fn_test_result_pass
 
 
-
 echo ""
 echo ""
 echo "3.1 - start"
 echo "3.1 - start"
 echo "================================="
 echo "================================="
@@ -606,29 +605,16 @@ fn_setstatus
 (command_restart.sh)
 (command_restart.sh)
 fn_test_result_pass
 fn_test_result_pass
 
 
-echo ""
 echo "4.1 - update"
 echo "4.1 - update"
 echo "================================="
 echo "================================="
 echo "Description:"
 echo "Description:"
 echo "check for updates."
 echo "check for updates."
-echo "Command: ./jc2server update"
+echo "Command: ./ts3server update"
 requiredstatus="OFFLINE"
 requiredstatus="OFFLINE"
 fn_setstatus
 fn_setstatus
 (command_update.sh)
 (command_update.sh)
 fn_test_result_pass
 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 ""
 echo "5.1 - monitor - online"
 echo "5.1 - monitor - online"
 echo "================================="
 echo "================================="
@@ -640,7 +626,6 @@ fn_setstatus
 (command_monitor.sh)
 (command_monitor.sh)
 fn_test_result_pass
 fn_test_result_pass
 
 
-
 echo ""
 echo ""
 echo "5.2 - monitor - offline - with lockfile"
 echo "5.2 - monitor - offline - with lockfile"
 echo "================================="
 echo "================================="
@@ -654,7 +639,6 @@ date > "${rootdir}/${lockselfname}"
 (command_monitor.sh)
 (command_monitor.sh)
 fn_test_result_pass
 fn_test_result_pass
 
 
-
 echo ""
 echo ""
 echo "5.3 - monitor - offline - no lockfile"
 echo "5.3 - monitor - offline - no lockfile"
 echo "================================="
 echo "================================="
@@ -677,6 +661,61 @@ fn_setstatus
 (command_details.sh)
 (command_details.sh)
 fn_test_result_pass
 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 "================================="
 echo "================================="
 echo "Server Tests - Complete!"
 echo "Server Tests - Complete!"
@@ -684,8 +723,6 @@ echo "Using: ${gamename}"
 echo "================================="
 echo "================================="
 requiredstatus="OFFLINE"
 requiredstatus="OFFLINE"
 fn_setstatus
 fn_setstatus
-sleep 1
 fn_print_info "Tidying up directories."
 fn_print_info "Tidying up directories."
-sleep 1
 rm -rfv "${serverfiles}"
 rm -rfv "${serverfiles}"
 core_exit.sh
 core_exit.sh