Make static analysis tests optional

They take too long otherwise
This commit is contained in:
Bob Mottram 2018-03-03 19:34:15 +00:00
parent baee769f08
commit 31da9595e7
1 changed files with 8 additions and 2 deletions

View File

@ -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