mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #359 from andlaus/custom_parameter_file_parser
Use a custom parameter file parser
This commit is contained in:
commit
938af70bb5
@ -196,8 +196,12 @@ case "$TEST_TYPE" in
|
|||||||
|
|
||||||
cat > "paramfile-$RND.ini" <<EOF
|
cat > "paramfile-$RND.ini" <<EOF
|
||||||
EndTime=100
|
EndTime=100
|
||||||
InitialTimeStepSize=100
|
|
||||||
UndefinedParam="blubb"
|
InitialTimeStepSize=100 # first in-line comment
|
||||||
|
|
||||||
|
UndefinedParam = "blubb"; second in-line comment
|
||||||
|
# full line comment
|
||||||
|
; also a full line comment
|
||||||
EOF
|
EOF
|
||||||
if ! $TEST_BINARY --parameter-file="paramfile-$RND.ini" 2>&1 > /dev/null; then
|
if ! $TEST_BINARY --parameter-file="paramfile-$RND.ini" 2>&1 > /dev/null; then
|
||||||
echo "$TEST_BINARY does not correctly read a parameter file"
|
echo "$TEST_BINARY does not correctly read a parameter file"
|
||||||
@ -205,8 +209,8 @@ EOF
|
|||||||
elif $TEST_BINARY --parameter-file="foobar.ini" 2>&1 > /dev/null; then
|
elif $TEST_BINARY --parameter-file="foobar.ini" 2>&1 > /dev/null; then
|
||||||
echo "$TEST_BINARY does not abort even though the specified parameter file does not exist"
|
echo "$TEST_BINARY does not abort even though the specified parameter file does not exist"
|
||||||
exit 1
|
exit 1
|
||||||
elif ! $TEST_BINARY --foo --end-time=1 2>&1 > /dev/null; then
|
elif $TEST_BINARY --foo 2>&1 > /dev/null; then
|
||||||
echo "$TEST_BINARY does not accept a flag parameters"
|
echo "$TEST_BINARY accepts flag parameters besides --help"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user