diff --git a/bin/run_tests b/bin/run_tests index 2a96b05737..c19c62cf95 100755 --- a/bin/run_tests +++ b/bin/run_tests @@ -70,6 +70,7 @@ case "$1" in registrar_tests) test_wrap bin/test_registrar test_wrap bin/test_sites + test_wrap bin/test_mockseq ;; all_tests) run_wrap install_dependencies diff --git a/bin/test_mockseq b/bin/test_mockseq new file mode 100755 index 0000000000..e818087d82 --- /dev/null +++ b/bin/test_mockseq @@ -0,0 +1,14 @@ +#!/bin/bash -e + +ROOT=$(dirname $0)/.. +cd $ROOT + +echo '#########################################' Testing simple mock sequencer... +bin/sequencer tests/sites/downgrade/ -- DWN-2 system_mode_restart || true + +RESULTLOG=tests/sites/downgrade/out/devices/DWN-2/RESULT.log +fgrep "RESULT fail system.mode system_mode_restart PREVIEW " $RESULTLOG || + bin/fail missing output from $RESULTLOG + +echo +echo '#########################################' Done with mock sequencer tests diff --git a/bin/test_sites b/bin/test_sites index 7a946301b5..b7030b076b 100755 --- a/bin/test_sites +++ b/bin/test_sites @@ -35,6 +35,7 @@ function redact_files { sed -E -i \ -e 's-oading .*udmi/tests/-REDACTED/-' \ -e 's-^ .*udmi/tests/- REDACTED/-' \ + -e 's-.*tests/sites/configs/- REDACTED/sites/configs/-' \ -e 's-^ File not found: /app/tests/sites/- REDACTED/sites/-' \ -e 's-^ File not found: .*udmi/tests/- REDACTED/-' \ $file @@ -104,12 +105,5 @@ if [[ -s $FAILURES ]]; then false fi -echo '#########################################' Testing simple mock sequencer... -bin/sequencer tests/sites/downgrade/ -- DWN-2 system_mode_restart || true - -RESULTLOG=tests/sites/downgrade/out/devices/DWN-2/RESULT.log -fgrep "RESULT fail system.mode system_mode_restart PREVIEW " $RESULTLOG || - bin/fail missing output from $RESULTLOG - echo echo '#########################################' Done with site tests