Skip to content
Snippets Groups Projects
Commit 0e47f669 authored by Bob Mottram's avatar Bob Mottram
Browse files

Test STIG separately and with no output if all tests pass

parent 42d5bc93
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,9 @@ function test_app_function_type {
}
function test_app_functions {
if [ $RUN_STIG ]; then
return
fi
FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
# check that these functions exist
......@@ -78,6 +81,10 @@ function test_app_functions {
}
function test_unique_onion_ports {
if [ $RUN_STIG ]; then
return
fi
# test that some services are not assigned the same onion port
FILES=src/${PROJECT_NAME}-app-*
ports=$(grep -r "_ONION_PORT=" $FILES | awk -F ':' '{print $2}' | uniq | awk -F '=' '{print $2}')
......@@ -1093,11 +1100,13 @@ function test_stig {
output "V-58901" $? ${SETLANG}
################
echo ''
echo "Passes: $PASSES"
echo "Fails: $FAILS"
if [ $FAILS -gt 0 ]; then
exit 792353
echo ''
echo "Passes: $PASSES"
echo "Fails: $FAILS"
if [ $FAILS -gt 0 ]; then
exit 792353
fi
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment