Skip to content
Snippets Groups Projects
Commit e8821d8e authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Do not switch to a subdirectory when running 'test_cdf_const'.

This makes the test more transparent.
parent b01f523e
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -2,16 +2,13 @@
test 'x@ENABLE_NETCDF@' = xyes || exit 77
exec >test_cdf_const.log 2>&1
mkdir -p test_cdf_const.d
cd test_cdf_const.d
\rm -f *
../../libtool --mode=execute ${tool_wrap} @abs_top_builddir@/examples/cdi_write_const || exit 1
../../libtool --mode=execute ${tool_wrap} @abs_top_builddir@/app/cdi -s example_const.nc >cdi.$$.stdout 2>cdi.$$.stderr || exit 1
../../libtool --mode=execute ${tool_wrap} @abs_top_builddir@/app/cdi example_const.nc >>cdi.$$.stdout 2>>cdi.$$.stderr || exit 1
../libtool --mode=execute ${tool_wrap} @abs_top_builddir@/examples/cdi_write_const || exit 1
../libtool --mode=execute ${tool_wrap} @abs_top_builddir@/app/cdi -s example_const.nc >cdi.$$.stdout 2>cdi.$$.stderr || exit 1
../libtool --mode=execute ${tool_wrap} @abs_top_builddir@/app/cdi example_const.nc >>cdi.$$.stdout 2>>cdi.$$.stderr || exit 1
echo "$0"
exec 6<cdi.$$.stdout 7<../"$0"
exec 6<cdi.$$.stdout 7<"$0"
while read pattern <&7 ; do
test "x$pattern" != 'x#PATTERNS' || break
......@@ -35,8 +32,6 @@ test "x$pattern" = 'x#END PATTERNS' || exit 1
exec 5<&- 6<&-
\rm cdi.$$.stdout cdi.$$.stderr example_const.nc
cd ..
rmdir test_cdf_const.d
\rm test_cdf_const.log
#PATTERNS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment