diff --git a/src/freedombone-tests b/src/freedombone-tests index be10b287..cf201b60 100755 --- a/src/freedombone-tests +++ b/src/freedombone-tests @@ -46,7 +46,8 @@ function show_help { echo '' echo $'Runs tests on the system' echo '' - echo $' --stig [yes|no|fix] Run STIG tests' + echo $' -s --stig [yes|no|fix] Run STIG tests' + echo $' -a --static Run static analysis on scripts' echo $' --help Show help' echo '' exit 0 @@ -1284,6 +1285,12 @@ do -h|--help) show_help ;; + -a|--static) + echo $'Running static analysis tests' + test_static_analysis + echo $'All tests passed' + exit 0 + ;; -s|--stig) shift if [[ "$1" == 'showall' ]]; then @@ -1303,7 +1310,6 @@ if [ ! "$RUN_STIG" ]; then fi test_app_functions -test_static_analysis test_unique_onion_ports remove_management_engine_interface freedombone-pass --test yes