1#!/bin/sh 2 3test=test_exO 4prg=../test_heat_sub.sh 5test_log="test.log" 6 7run_2d () { 8 ${prg} ${test_log} O231 O200 9 ${prg} ${test_log} O232 O200 10 ${prg} ${test_log} O241 O200 11 ${prg} ${test_log} O242 O200 12} 13 14 15run_3d () { 16 ${prg} ${test_log} O341 O300 17 ${prg} ${test_log} O342 O300 18 ${prg} ${test_log} O351 O300 19 ${prg} ${test_log} O352 O300 20 ${prg} ${test_log} O361 O300 21 ${prg} ${test_log} O362 O300 22} 23 24run_shell() { 25 ${prg} ${test_log} O731 O700 26 ${prg} ${test_log} O741 O700 27} 28 29 30help () { 31 echo "FrontSTR executing test" 32 echo "[usage] ${test} (options)" 33 echo " -h : help (this message)" 34 echo " 2d : 2 dimentional model" 35 echo " 3d : 3 dimentional model" 36 echo " shell : shell model" 37 echo " all or no options : all model" 38} 39 40 41############################# MAIN ################################ 42 43echo "Max/Min Temperature" > ${test_log} 44 45if [ $# -lt 1 -o "${1}" = "all" ]; then 46 run_2d 47 run_3d 48 run_shell 49 exit 50fi 51 52for i in $* 53do 54 if [ "${i}" = "-h" ]; then 55 help 56 exit 57 elif [ "${i}" = "-l" ]; then 58 list_up 59 exit 60 elif [ "${i}" = "2d" ]; then run_2d 61 elif [ "${i}" = "3d" ]; then run_3d 62 elif [ "${i}" = "shell" ]; then run_shell 63 else 64 echo "## Error in ${0}: unknown parameter ${i}" 65 echo " show help with -h" 66 exit 67 fi 68done 69