Ticket #455: test2.sh

File test2.sh, 1.1 KB (added by Ian Culverwell, 9 years ago)

test2.sh

Line 
1#/usr/bin/ksh
2#
3# Script to test the ROPP9.0 version of ropp_io_vlist_size.
4#
5
6TOOL=ropp_apps_tph_tool
7
8IFILE=data/WOP_Study_Cases_prof3_vlist_size.nc
9
10
11# Cntl: ROPP8.1
12
13OFILE=`echo $IFILE |sed -es/'.nc'/'_cntl.nc'/`
14TFILE=`echo $IFILE |sed -es/'.nc'/'_cntl.out'/`
15
16EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP81_prototype/ropp_apps/tools/$TOOL
17
18echo "$EXEC $IFILE -n -y -t -b -o $OFILE -d > $TFILE 2>&1 "
19 $EXEC $IFILE -n -y -t -b -o $OFILE -d > $TFILE 2>&1
20
21echo "ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/) "
22 ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/)
23
24
25# Test: ROPP9.0
26
27OFILE=`echo $IFILE |sed -es/'.nc'/'_test.nc'/`
28TFILE=`echo $IFILE |sed -es/'.nc'/'_test.out'/`
29
30EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP90_prototype/ropp_apps/tools/$TOOL
31
32echo "$EXEC $IFILE -n -y -t -b -o $OFILE -d > $TFILE 2>&1 "
33 $EXEC $IFILE -n -y -t -b -o $OFILE -d > $TFILE 2>&1
34
35echo "ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/) "
36 ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/)