3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-19 03:12:18 +00:00
sby/tests/statusdb/reset.sh
Krystine Sherwin b1d9bcbb42
tests: Add statusdb test
Ensures that `--statusreset` doesn't break the schema.
2025-07-08 15:44:02 +12:00

11 lines
333 B
Bash

#!/bin/bash
set -e
# run task
python3 $SBY_MAIN -f $SBY_FILE $TASK
# task has 3 properties
python3 $SBY_MAIN -f $SBY_FILE --status | wc -l | grep -q '3'
# resetting task should work
python3 $SBY_MAIN -f $SBY_FILE --statusreset
# clean database should have no properties
python3 $SBY_MAIN -f $SBY_FILE --status | wc -l | grep -q '0'