Skip to content

Commit 653b435

Browse files
committed
CI: Added DB dump coverage
1 parent ad52196 commit 653b435

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,23 @@ jobs:
131131
printf 'create database berlintest;\nrestore database berlintest from berlintest;\nclose database;\nquit;\n' \
132132
| ./SecondoTTYBDB
133133
134+
# -----------------------------------------------------------------------
135+
# Closes the loop the restore above opens: write the database back out and
136+
# require it to come back byte for byte.
137+
# -----------------------------------------------------------------------
138+
- name: Save the berlintest database and compare it with the original
139+
working-directory: bin
140+
run: |
141+
saved="${RUNNER_TEMP}/berlintest.saved"
142+
cat > "${RUNNER_TEMP}/save.sec" <<EOF
143+
open database berlintest;
144+
save database to '${saved}';
145+
close database;
146+
quit;
147+
EOF
148+
./SecondoTTYBDB -i "${RUNNER_TEMP}/save.sec"
149+
cmp berlintest "$saved"
150+
134151
- name: Start the SECONDO monitor
135152
working-directory: bin
136153
run: |

0 commit comments

Comments
 (0)