#!/bin/sh if test "x$srcdir" = x ; then srcdir=`pwd`; fi . ../test_common.sh # This shell just tests the group renaming. set -e echo "" # Create the input cdl file rm -f tst_grp_rename.cdl cat >tst_grp_rename.cdl <ref_grp_rename.cdl < ./tst_grp_rename.dmp if ! diff -b ref_grp_rename.cdl tst_grp_rename.dmp ; then echo "***FAIL: output and reference output differ" FAIL=1 fi # Finally, try to rename root group; should fail if ${execdir}/renamegroup tst_grp_rename.nc "/" "rootgroup" ; then echo "***FAIL: attempt to rename root group should not have succeeded" FAIL=1 else echo "***XFAIL : attempt to rename root group failed as expected" fi rm -f tst_grp_rename.cdl tst_grp_rename.nc ref_grp_rename.nc exit $FAIL