Add integration testing of rst_deck

This commit is contained in:
Joakim Hove
2021-09-22 18:45:24 +02:00
parent 24f31e6358
commit cc0b9add62
9 changed files with 483 additions and 0 deletions

22
tests/rst_test_driver.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -e
rst_deck=$1
opmhash=$2
deck=$3
pushd $(mktemp -d)
${rst_deck} ${deck} HISTORY:0 output/CASE_COPY.DATA -m copy -s
${opmhash} ${deck} output/CASE_COPY.DATA -S
${rst_deck} ${deck} HISTORY:0 -m share -s > CASE_STDOUT.DATA
${opmhash} ${deck} CASE_STDOUT.DATA -S
pushd output
chmod -R a-w *
popd
${rst_deck} output/CASE_COPY.DATA HISTORY:0 output/CASE_SHARE.DATA -m copy -s
${opmhash} ${deck} output/CASE_SHARE.DATA -S
popd