diff --git a/installer-tests/run_tests.sh b/installer-tests/run_tests.sh index 859854c..1216b3b 100755 --- a/installer-tests/run_tests.sh +++ b/installer-tests/run_tests.sh @@ -1,5 +1,30 @@ #!/usr/bin/env bash +#/ Usage: ./run_tests.sh [-h | --help] [ds | docker-starter ] [it | installation-test] [at | autoupdate-test] +#/ +#/ Standalone commands: +#/ -h, --help show help text +#/ ds | docker-starter +#/ to run tests script inside of Docker container. +#/ It will run './run_tests.sh ', where expected to be +#/ "installation-test" or "autoupdate-test". +#/ it | installation-test to run installation tests in current environment +#/ at | autoupdate-test to run autoupdate tests in current environment +#/ +#/ Arguments for running tests: +#/ -q, --quiet +#/ to show only information about passed and failed tests. +#/ -t , --test-id +#/ to run only test with specified . +#/ This parameter can't be used with '-tp | --test-id-prefix'. +#/ This parameter can't be used with '-ft | --from-test-id'. +#/ -ft , --from-test-id +#/ to run tests listed after test with specified (including). +#/ This parameter can't be used with '-t | --test-id'. +#/ -tp , --test-id-prefix +#/ to run only tests with specified prefixes. +#/ This parameter can't be used with '-t | --test-id'. +#/ #/ This is script for testing vuh installation and auto updates mechanisms. APP_NAME='run_tests.sh' @@ -173,16 +198,15 @@ function autoupdate_test() { vuh -v || exit 1 [ "$(vuh -v)" != '1.0.0' ] || exit 1 -# TODO uncomment in next release -# _show_updated_message "Trying to update vuh manually (when update not required) ..." -# expecting_already_updated='you already have the latest vuh version' -# vuh_update_output="$(vuh --update)" || exit 1 -# echo "vuh_update_output: $vuh_update_output" -# if ! [[ $vuh_update_output =~ $expecting_already_updated ]]; then -# _show_error_message "Update command failed!" -# _show_error_message "$vuh_update_output" -# exit 1 -# fi + _show_updated_message "Trying to update vuh manually (when update not required) ..." + expecting_already_updated='you already have the latest vuh version' + vuh_update_output="$(vuh --update)" || exit 1 + echo "vuh_update_output: $vuh_update_output" + if ! [[ $vuh_update_output =~ $expecting_already_updated ]]; then + _show_error_message "Update command failed!" + _show_error_message "$vuh_update_output" + exit 1 + fi _show_success_message "Autoupdate tests successfully finished." } diff --git a/vuh.sh b/vuh.sh index fcc720f..1a4e55a 100755 --- a/vuh.sh +++ b/vuh.sh @@ -207,7 +207,7 @@ # Written by Shishkin Sergey # Current vuh version -VUH_VERSION='2.11.1' +VUH_VERSION='2.11.2' # Installation variables (Please don't modify!) DATA_DIR=''