Przeglądaj źródła

Make static analysis tests optional

They take too long otherwise
Bob Mottram 7 lat temu
rodzic
commit
31da9595e7
1 zmienionych plików z 8 dodań i 2 usunięć
  1. 8
    2
      src/freedombone-tests

+ 8
- 2
src/freedombone-tests Wyświetl plik

46
     echo ''
46
     echo ''
47
     echo $'Runs tests on the system'
47
     echo $'Runs tests on the system'
48
     echo ''
48
     echo ''
49
-    echo $'     --stig [yes|no|fix]  Run STIG tests'
49
+    echo $'  -s --stig [yes|no|fix]  Run STIG tests'
50
+    echo $'  -a --static             Run static analysis on scripts'
50
     echo $'     --help               Show help'
51
     echo $'     --help               Show help'
51
     echo ''
52
     echo ''
52
     exit 0
53
     exit 0
1284
         -h|--help)
1285
         -h|--help)
1285
             show_help
1286
             show_help
1286
             ;;
1287
             ;;
1288
+        -a|--static)
1289
+            echo $'Running static analysis tests'
1290
+            test_static_analysis
1291
+            echo $'All tests passed'
1292
+            exit 0
1293
+            ;;
1287
         -s|--stig)
1294
         -s|--stig)
1288
             shift
1295
             shift
1289
             if [[ "$1" == 'showall' ]]; then
1296
             if [[ "$1" == 'showall' ]]; then
1303
 fi
1310
 fi
1304
 
1311
 
1305
 test_app_functions
1312
 test_app_functions
1306
-test_static_analysis
1307
 test_unique_onion_ports
1313
 test_unique_onion_ports
1308
 remove_management_engine_interface
1314
 remove_management_engine_interface
1309
 freedombone-pass --test yes
1315
 freedombone-pass --test yes