File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [ -z " $UCVM_INSTALL_PATH " ]; then
4+ echo " Need to set UCVM_INSTALL_PATH to run >" ${0##*/ }
5+ exit
6+ fi
7+ source $UCVM_INSTALL_PATH /conf/ucvm_env.sh
8+
9+ BIN_DIR=${UCVM_INSTALL_PATH} /bin
10+ CONF_DIR=${UCVM_INSTALL_PATH} /conf
11+ TEST_DIR=${UCVM_INSTALL_PATH} /tests/inputs
12+ MODEL=mscal
13+
14+ expect=$( mktemp) || exit 1
15+ result=$( mktemp) || (trap ' rm -f "$expect"' ; exit 1)
16+
17+ ${BIN_DIR} /ucvm_query -m ${MODEL} -f ${CONF_DIR} /ucvm.conf < ${TEST_DIR} /test_latlons_mscal_gd.txt > $result 2>&1
18+
19+ cat > $expect << EOF_EXPECTED_RESULT
20+ Using Geo Depth coordinates as default mode.
21+ -116.9050 36.7250 0.000 1185.364 710.100 mscal 5254.287 3112.362 2574.641 none 0.000 0.000 0.000 crust 5254.287 3112.362 2574.641
22+ -116.9050 36.7250 500.000 1185.364 710.100 mscal 5264.078 3119.203 2576.494 none 0.000 0.000 0.000 crust 5264.078 3119.203 2576.494
23+ -116.9050 36.7250 1000.000 1185.364 710.100 mscal 5312.495 3150.845 2586.053 none 0.000 0.000 0.000 crust 5312.495 3150.845 2586.053
24+ -116.9050 36.7250 2000.000 1185.364 710.100 mscal 5460.318 3219.169 2607.883 none 0.000 0.000 0.000 crust 5460.318 3219.169 2607.883
25+ -116.9050 36.7250 3000.000 1185.364 710.100 mscal 5556.603 3235.426 2612.789 none 0.000 0.000 0.000 crust 5556.603 3235.426 2612.789
26+ -116.9050 36.7250 5000.000 1185.364 710.100 mscal 5704.692 3237.023 2611.861 none 0.000 0.000 0.000 crust 5704.692 3237.023 2611.861
27+ EOF_EXPECTED_RESULT
28+
29+ echo " Running examples_programs_ucvm ucvm_query_mscal"
30+ if diff $result $expect > /dev/null 2>&1
31+ then
32+ echo [SUCCESS]
33+ else
34+ echo [FAILURE]
35+ fi
36+
37+ trap ' rm -f "$expect" "$result"' exit
38+
Original file line number Diff line number Diff line change 1+ -116.905 36.725 0
2+ -116.905 36.725 500
3+ -116.905 36.725 1000
4+ -116.905 36.725 2000
5+ -116.905 36.725 3000
6+ -116.905 36.725 5000
You can’t perform that action at this time.
0 commit comments