summaryrefslogtreecommitdiffstats
path: root/vms/tools/h5jam/check_h5jam.com
diff options
context:
space:
mode:
Diffstat (limited to 'vms/tools/h5jam/check_h5jam.com')
-rw-r--r--vms/tools/h5jam/check_h5jam.com178
1 files changed, 0 insertions, 178 deletions
diff --git a/vms/tools/h5jam/check_h5jam.com b/vms/tools/h5jam/check_h5jam.com
deleted file mode 100644
index 5243ba8..0000000
--- a/vms/tools/h5jam/check_h5jam.com
+++ /dev/null
@@ -1,178 +0,0 @@
-$!#
-$!# Copyright by The HDF Group.
-$!# Copyright by the Board of Trustees of the University of Illinois.
-$!# All rights reserved.
-$!#
-$!# This file is part of HDF5. The full HDF5 copyright notice, including
-$!# terms governing use, modification, and redistribution, is contained in
-$!# the files COPYING and Copyright.html. COPYING can be found at the root
-$!# of the source code distribution tree; Copyright.html can be found at the
-$!# root level of an installed copy of the electronic HDF5 document set and
-$!# is linked from the top-level documents page. It can also be found at
-$!# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
-$!# access to either file, you may request a copy from help@hdfgroup.org.
-$!#
-$ !
-$ ! This command file tests h5jam and h5unjam utilities. The command file has to
-$ ! run in the [hdf5-top.tools.testfiles] directory.
-$ !
-$ type sys$input
-
-===================================
- Testing h5jam utiltity
-===================================
-
-$ !
-$ ! Define h5jam, h5unjam and h5dump symbols
-$ !
-$! set message/notext/nofacility/noidentification/noseverity
-$ current_dir = F$DIRECTRY()
-$ len = F$LENGTH(current_dir)
-$ temp = F$EXTRACT(0, len-16, current_dir)
-$ h5dump_dir = temp + "H5DUMP]"
-$ h5dump :== $sys$disk:'h5dump_dir'h5dump.exe
-$ temp2 = F$EXTRACT(0, len-11, current_dir)
-$ h5jam_dir = temp2 + "]"
-$ h5jam :== $sys$disk:'h5jam_dir'h5jam.exe
-$ !
-$ ! Define output for diff command that compares expected and actual
-$ ! outputs of h5dump
-$ !
-$ create h5dump.log
-$ !
-$ ! h5jam and h5unjam tests
-$ !
-$
-$ CALL H5JAMTEST "-u u10.txt -i" tall.h5 ta2.h5
-$ CALL H5JAMTEST "-u u511.txt -i" tall.h5 ta3.h5
-$ CALL H5JAMTEST "-u u512.txt -i" tall.h5 ta4.h5
-$ CALL H5JAMTEST "-u u513.txt -i" tall.h5 ta5.h5
-$
-$ CALL H5JAMTEST "-u u10.txt -i" twithub.h5 tax2.h5
-$ CALL H5JAMTEST "-u u511.txt -i" twithub.h5 tax3.h5
-$ CALL H5JAMTEST "-u u512.txt -i" twithub.h5 tax4.h5
-$ CALL H5JAMTEST "-u u513.txt -i" twithub.h5 tax5.h5
-$
-$ CALL H5JAMTEST "-u u10.txt -i" twithub513.h5 tax6.h5
-$ CALL H5JAMTEST "-u u511.txt -i" twithub513.h5 tax7.h5
-$ CALL H5JAMTEST "-u u512.txt -i" twithub513.h5 tax8.h5
-$ CALL H5JAMTEST "-u u513.txt -i" twithub513.h5 tax9.h5
-$
-$ CALL H5JAMTEST "-u u10.txt -i --clobber" twithub.h5 taz2.h5
-$ CALL H5JAMTEST "-u u511.txt -i --clobber" twithub.h5 taz3.h5
-$ CALL H5JAMTEST "-u u512.txt -i --clobber" twithub.h5 taz4.h5
-$ CALL H5JAMTEST "-u u513.txt -i --clobber" twithub.h5 taz5.h5
-$
-$ CALL H5JAMTEST "-u u10.txt -i --clobber" twithub513.h5 taz6.h5
-$ CALL H5JAMTEST "-u u511.txt -i --clobber" twithub513.h5 taz7.h5
-$ CALL H5JAMTEST "-u u512.txt -i --clobber" twithub513.h5 taz8.h5
-$ CALL H5JAMTEST "-u u513.txt -i --clobber" twithub513.h5 taz9.h5
-$
-$H5JAMTEST: SUBROUTINE
-$
-$ len_org = F$LENGTH(P2)
-$ base_org = F$EXTRACT(0,len_org-2,P2)
-$ len = F$LENGTH(P3)
-$ base = F$EXTRACT(0,len-2,P3)
-$ actual = base + "out"
-$ actual_org = base_org + "org"
-$ actual_err = base + "err"
-$ actual_err_org = base_org + "err"
-$
-$ ON ERROR THEN CONTINUE
-$ begin = "Testing h5jam"
-$ !
-$ ! Run the test
-$ !
-$ h5jam 'P1 'P2 -o 'P3
-$ !
-$ ! Dump the original and result file
-$ !
-$ define/nolog sys$output 'actual'
-$ define/nolog sys$error 'actual_err'
-$ h5dump 'P3
-$ deassign sys$output
-$ deassign sys$error
-$ if F$SEARCH(actual_err) .NES. ""
-$ then
-$ set message/notext/nofacility/noidentification/noseverity
-$ append 'actual_err' 'actual'
-$ set message/ntext/facility/identification/severity
-$ endif
-$ define/nolog sys$output 'actual_org'
-$ define/nolog sys$error 'actual_err_org'
-$ h5dump 'P2
-$ deassign sys$output
-$ deassign sys$error
-$ if F$SEARCH(actual_err_org) .NES. ""
-$ then
-$ set message/notext/nofacility/noidentification/noseverity
-$ append 'actual_err_org' 'actual_org'
-$ set message/ntext/facility/identification/severity
-$ endif
-$ !
-$ ! Compare the results
-$ !
-$ diff/output=h5dump_temp/ignore=(spacing,trailing_spaces,blank_lines) 'actual_org' -
- 'actual'
-$ !
-$ ! Delete output file 'P3
-$ !
-$ del 'P3;*
-$ open/read temp_out h5dump_temp.dif
-$READ_DATA:
-$ read/end_of_file=end_read temp_out record1
-$ !
-$ ! Skip blank lines
-$ !
-$ if record1 .EQS. "" then goto READ_DATA
-$ !
-$ ! Find record with "Number" and exit the loop
-$ !
-$ len = F$LENGTH(record1)
-$ pos = F$LOCATE("Number", record1)
-$ !
-$ if pos .EQ. 0
-$ then
-$ err_code = F$EXTRACT(len-1,1,record1)
-$ goto END_READ
-$ endif
-$ !
-$ goto READ_DATA
-$
-$ !
-$END_READ:
-$ close temp_out
-$
-$ !
-$ ! Extract error code and format output line
-$ !
-$ len = F$LENGTH(record1)
-$ err_code = F$EXTRACT(len-1,1,record1)
-$ if err_code .eqs. "1"
-$ then
-$ result = "PASSED"
-$ line = F$FAO("!14AS !14AS !7AS !2AS !25AS !100AS", begin, P1, P2, -
- "-o", P3, result)
-$ else
-$ result = "*FAILED*"
-$ line = F$FAO("!14AS !14AS !7AS !2AS !25AS !99AS", begin, P1, P2, -
- "-o", P3, result)
-$ endif
-$ !
-$ ! Print test result
-$ !
-$ write sys$output line
-$ !
-$ ! Append the result to the log file
-$ !
-$ append h5dump_temp.dif h5dump.log
-$ !
-$ ! Delete temporary files
-$ !
-$! del *.out;*
-$! del *.org;*
-$! del *.dif;*
-$ !
-$ENDSUBROUTINE
-