Testing: use temp prefix for temporary output files

This commit is contained in:
Shahram Najm 2021-09-29 16:55:50 +01:00
parent 2b90bf09e1
commit 6b844c4623
8 changed files with 25 additions and 25 deletions

View File

@ -19,10 +19,10 @@ if [ $HAVE_MEMFS -eq 1 ]; then
fi
# Create log file
fLog=${label}".log"
fLog=temp.${label}".log"
rm -f $fLog
tempDir=${label}.dir
tempDir=temp.${label}.dir
rm -rf $tempDir
mkdir -p $tempDir
@ -55,8 +55,8 @@ fi
for file in ${bufr_files}
do
tempSrc=$label.$file.c
tempExe=$label.$file.exe
tempSrc=temp.$label.$file.c
tempExe=temp.$label.$file.exe
filePath=${data_dir}/bufr/$file
# Generate C code from BUFR file

View File

@ -17,12 +17,12 @@ cd ${data_dir}/bufr
label="bufr_dump_decode_filter_test"
# Create log file
fLog=${label}".log"
fLog=temp.${label}".log"
rm -f $fLog
touch $fLog
# Define filter rules file
fRules=${label}.filter
fRules=temp.${label}.filter
#-----------------------------------------------------------
# NOTE: not all of our BUFR files pass this test. bufr_filter is limited

View File

@ -14,11 +14,11 @@
label="bufr_dump_decode_fortran_test"
# Create log file
fLog=${label}".log"
fLog=temp.${label}".log"
rm -f $fLog
tempBufr=outfile.bufr
tempDir=${label}.dir
tempDir=temp.${label}.dir
rm -rf $tempDir
mkdir -p $tempDir
@ -51,8 +51,8 @@ fi
for file in ${bufr_files}
do
tempSrc=$label.$file.f90
tempExe=$label.$file.exe
tempSrc=temp.$label.$file.f90
tempExe=temp.$label.$file.exe
filePath=${data_dir}/bufr/$file
# Generate F90 code from BUFR file

View File

@ -14,10 +14,10 @@
label="bufr_dump_decode_python_test"
# Create log file
fLog=${label}".log"
fLog=temp.${label}".log"
rm -f $fLog
tempDir=${label}.dir
tempDir=temp.${label}.dir
mkdir -p $tempDir
cd $tempDir
@ -28,7 +28,7 @@ bufr_files=`cat ${data_dir}/bufr/bufr_data_files.txt`
for file in ${bufr_files}
do
inputBufr=${data_dir}/bufr/$file
tempSrc=$label.$file.py
tempSrc=temp.$label.$file.py
# Too large for this test
if [ "$file" = "ias1_240.bufr" ]; then

View File

@ -19,11 +19,11 @@ if [ $HAVE_MEMFS -eq 1 ]; then
fi
# Create log file
fLog=${label}".log"
fLog=temp.${label}".log"
rm -f $fLog
tempBufr=outfile.bufr
tempDir=${label}.dir
tempDir=temp.${label}.dir
rm -rf $tempDir
mkdir -p $tempDir
@ -64,7 +64,7 @@ fi
for file in ${bufr_files}
do
tempSrc=$label.$file.c
tempSrc=temp.$label.$file.c
tempExe=$label.$file.exe
# Generate C code from BUFR file

View File

@ -17,15 +17,15 @@ cd ${data_dir}/bufr
label="bufr_dump_encode_filter_test"
# Create log file
fLog=${label}".log"
fLog=temp.${label}".log"
rm -f $fLog
touch $fLog
# Define tmp bufr file
fBufrTmp=${label}".bufr.tmp"
fBufrTmp=temp.${label}".bufr"
# Define filter rules file
fRules=${label}.filter
fRules=temp.${label}.filter
#-----------------------------------------------------------
# NOTE: not all of our BUFR files pass this test. bufr_filter is limited

View File

@ -14,11 +14,11 @@
label="bufr_dump_encode_fortran_test"
# Create log file
fLog=${label}".log"
fLog=temp.${label}".log"
rm -f $fLog
tempBufr=outfile.bufr
tempDir=${label}.dir
tempDir=temp.${label}.dir
rm -rf $tempDir
mkdir -p $tempDir
@ -51,7 +51,7 @@ fi
for file in ${bufr_files}
do
tempSrc=$label.$file.f90
tempSrc=temp.$label.$file.f90
tempExe=$label.$file.exe
# Generate F90 code from BUFR file

View File

@ -14,11 +14,11 @@
label="bufr_dump_encode_python_test"
# Create log file
fLog=${label}".log"
fLog=temp.${label}".log"
rm -f $fLog
tempBufr=outfile.bufr
tempDir=${label}.dir
tempDir=temp.${label}.dir
mkdir -p $tempDir
cd $tempDir
@ -27,7 +27,7 @@ bufr_files=`cat ${data_dir}/bufr/bufr_data_files.txt`
for file in ${bufr_files}
do
inputBufr=${data_dir}/bufr/$file
tempSrc=$label.$file.py
tempSrc=temp.$label.$file.py
# Too large for this test
if [ "$file" = "ias1_240.bufr" ]; then