Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions bin/test_mockseq
Original file line number Diff line number Diff line change
@@ -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
8 changes: 1 addition & 7 deletions bin/test_sites
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Loading