ports/math/netcdf/patches/patch-dap4_test_test_data_sh

28 lines
993 B
Text

Index: dap4_test/test_data.sh
--- dap4_test/test_data.sh.orig
+++ dap4_test/test_data.sh
@@ -23,7 +23,7 @@ for f in $F ; do
fi
${NCDUMP} ./results_test_data/${f}.nc > ./results_test_data/${f}.d4d
if test "x${TEST}" = x1 ; then
- diff -wBb ${BASELINE}/${f}.d4d ./results_test_data/${f}.d4d
+ gdiff -wBb ${BASELINE}/${f}.d4d ./results_test_data/${f}.d4d
elif test "x${RESET}" = x1 ; then
echo "${f}:"
cp ./results_test_data/${f}.d4d ${BASELINE}/${f}.d4d
@@ -77,13 +77,13 @@ if test "x${CDLDIFF}" = x1 ; then
echo "Not found: ${CDLTESTFILES}/${STEM}.cdl"
continue
fi
- echo "diff -wBb ${CDLTESTFILES}/${STEM}.cdl ./results_test_data/${f}.d4d"
+ echo "gdiff -wBb ${CDLTESTFILES}/${STEM}.cdl ./results_test_data/${f}.d4d"
rm -f ./b1 ./b2 ./r1 ./r2
trim ${CDLTESTFILES}/${STEM}.cdl ./b1
trim ./results_test_data/${f}.d4d ./r1
baseclean b1 b2
resultclean r1 r2
- diff -wBb ./b2 ./r2
+ gdiff -wBb ./b2 ./r2
done
fi