blob: effe1662ac9d40b3a981dec6741a8f3f30cd0ed4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
@REM Copyright by The HDF Group.
@REM Copyright by the Board of Trustees of the University of Illinois.
@REM All rights reserved.
@REM
@REM This file is part of HDF5. The full HDF5 copyright notice, including
@REM terms governing use, modification, and redistribution, is contained in
@REM the files COPYING and Copyright.html. COPYING can be found at the root
@REM of the source code distribution tree; Copyright.html can be found at the
@REM root level of an installed copy of the electronic HDF5 document set and
@REM is linked from the top-level documents page. It can also be found at
@REM http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
@REM access to either file, you may request a copy from help@hdfgroup.org.
@REM Should copy all testing files to this directory
@REM This batch file only tests the validation of h5jam and h5unjam tools on windows,
@REM It will not check the correctedness of jammed/unjammed user-block.
@echo off
cd h5jam%2\%1
copy /Y ..\..\testfiles\tall.h5 tall.h5 >temp.txt
copy /Y ..\..\testfiles\twithub.h5 twithub.h5 >temp.txt
copy /Y ..\..\testfiles\twithub513.h5 twithub513.h5 >temp.txt
copy /Y ..\..\testfiles\u10.txt u10.txt >temp.txt
copy /Y ..\..\testfiles\u511.txt u511.txt >temp.txt
copy /Y ..\..\testfiles\u512.txt u512.txt >temp.txt
copy /Y ..\..\testfiles\u513.txt u513.txt >temp.txt
@REM the reason to set environment variables is to make sure it is consistent with other batch files.
set p1=%1
set p2=%2
echo.
echo.****************************************************
echo. H5jam%2 %1 T E S T S
echo.****************************************************
echo.
set tempResult=jamtest%p2%_%p1%.txt
h5jam -u u10.txt -i tall.h5 -o ta2.h5
echo h5jam -u u10.txt -i tall.h5 -o ta2.h5 PASSED
echo h5jam -u u10.txt -i tall.h5 -o ta2.h5 PASSED >> ..\..\%tempResult%
h5jam -u u511.txt -i tall.h5 -o ta3.h5
echo h5jam -u u511.txt -i tall.h5 -o ta3.h5 PASSED
echo h5jam -u u511.txt -i tall.h5 -o ta3.h5 PASSED >> ..\..\%tempResult%
h5jam -u u512.txt -i tall.h5 -o ta4.h5
echo h5jam -u u512.txt -i tall.h5 -o ta4.h5 PASSED
echo h5jam -u u512.txt -i tall.h5 -o ta4.h5 PASSED >> ..\..\%tempResult%
h5jam -u u513.txt -i tall.h5 -o ta5.h5
echo h5jam -u u513.txt -i tall.h5 -o ta5.h5 PASSED
echo h5jam -u u513.txt -i tall.h5 -o ta5.h5 PASSED >> ..\..\%tempResult%
copy /Y tall.h5 ta.h5 >temp.txt
h5jam -u u10.txt -i ta.h5
echo h5jam -u u10.txt -i ta.h5 PASSED
echo h5jam -u u10.txt -i ta.h5 PASSED >> ..\..\%tempResult%
copy /Y tall.h5 ta.h5 >temp.txt
h5jam -u u511.txt -i ta.h5
echo h5jam -u u511.txt -i ta.h5 PASSED
echo h5jam -u u511.txt -i ta.h5 PASSED >> ..\..\%tempResult%
copy /Y tall.h5 ta.h5 >temp.txt
h5jam -u u512.txt -i ta.h5
echo h5jam -u u512.txt -i ta.h5 PASSED
echo h5jam -u u512.txt -i ta.h5 PASSED >> ..\..\%tempResult%
copy /Y tall.h5 ta.h5 >temp.txt
h5jam -u u513.txt -i ta.h5
echo h5jam -u u513.txt -i ta.h5 PASSED
echo h5jam -u u513.txt -i ta.h5 PASSED >> ..\..\%tempResult%
h5jam -u u10.txt -i twithub.h5 -o tax2.h5
echo h5jam -u u10.txt -i twithub.h5 -o tax2.h5 PASSED
echo h5jam -u u10.txt -i twithub.h5 -o tax2.h5 PASSED >> ..\..\%tempResult%
h5jam -u u511.txt -i twithub.h5 -o tax3.h5
echo h5jam -u u511.txt -i twithub.h5 -o tax3.h5 PASSED
echo h5jam -u u511.txt -i twithub.h5 -o tax3.h5 PASSED >> ..\..\%tempResult%
h5jam -u u512.txt -i twithub.h5 -o tax4.h5
echo h5jam -u u512.txt -i twithub.h5 -o tax4.h5 PASSED
echo h5jam -u u512.txt -i twithub.h5 -o tax4.h5 PASSED >> ..\..\%tempResult%
h5jam -u u513.txt -i twithub.h5 -o tax5.h5
echo h5jam -u u513.txt -i twithub.h5 -o tax5.h5 PASSED
echo h5jam -u u513.txt -i twithub.h5 -o tax5.h5 PASSED >> ..\..\%tempResult%
h5jam -u u10.txt -i twithub513.h5 -o tax6.h5
echo h5jam -u u10.txt -i twithub513.h5 -o tax6.h5 PASSED
echo h5jam -u u10.txt -i twithub513.h5 -o tax6.h5 PASSED >> ..\..\%tempResult%
h5jam -u u511.txt -i twithub513.h5 -o tax7.h5
echo h5jam -u u511.txt -i twithub513.h5 -o tax7.h5 PASSED
echo h5jam -u u511.txt -i twithub513.h5 -o tax7.h5 PASSED >> ..\..\%tempResult%
h5jam -u u512.txt -i twithub513.h5 -o tax8.h5
echo h5jam -u u512.txt -i twithub513.h5 -o tax8.h5 PASSED
echo h5jam -u u512.txt -i twithub513.h5 -o tax8.h5 PASSED >> ..\..\%tempResult%
h5jam -u u513.txt -i twithub513.h5 -o tax9.h5
echo h5jam -u u513.txt -i twithub513.h5 -o tax9.h5 PASSED
echo h5jam -u u513.txt -i twithub513.h5 -o tax9.h5 PASSED >> ..\..\%tempResult%
h5jam -u u10.txt -i twithub.h5 -o taz2.h5 --clobber
echo h5jam -u u10.txt -i twithub.h5 -o taz2.h5 --clobber PASSED
echo h5jam -u u10.txt -i twithub.h5 -o taz2.h5 --clobber PASSED >> ..\..\%tempResult%
h5jam -u u511.txt -i twithub.h5 -o taz3.h5 --clobber
echo h5jam -u u511.txt -i twithub.h5 -o taz3.h5 --clobber PASSED
echo h5jam -u u511.txt -i twithub.h5 -o taz3.h5 --clobber PASSED >> ..\..\%tempResult%
h5jam -u u512.txt -i twithub.h5 -o taz4.h5 --clobber
echo h5jam -u u512.txt -i twithub.h5 -o taz4.h5 --clobber PASSED
echo h5jam -u u512.txt -i twithub.h5 -o taz4.h5 --clobber PASSED >> ..\..\%tempResult%
h5jam -u u513.txt -i twithub.h5 -o taz5.h5 --clobber
echo h5jam -u u513.txt -i twithub.h5 -o taz5.h5 --clobber PASSED
echo h5jam -u u513.txt -i twithub.h5 -o taz5.h5 --clobber PASSED >> ..\..\%tempResult%
h5jam -u u10.txt -i twithub513.h5 -o taz6.h5 --clobber
echo h5jam -u u10.txt -i twithub513.h5 -o taz6.h5 --clobber PASSED
echo h5jam -u u10.txt -i twithub513.h5 -o taz6.h5 --clobber PASSED >> ..\..\%tempResult%
h5jam -u u511.txt -i twithub513.h5 -o taz7.h5 --clobber
echo h5jam -u u511.txt -i twithub513.h5 -o taz7.h5 --clobber PASSED
echo h5jam -u u511.txt -i twithub513.h5 -o taz7.h5 --clobber PASSED >> ..\..\%tempResult%
h5jam -u u512.txt -i twithub513.h5 -o taz8.h5 --clobber
echo h5jam -u u512.txt -i twithub513.h5 -o taz8.h5 --clobber PASSED
echo h5jam -u u512.txt -i twithub513.h5 -o taz8.h5 --clobber PASSED >> ..\..\%tempResult%
h5jam -u u513.txt -i twithub513.h5 -o taz9.h5 --clobber
echo h5jam -u u513.txt -i twithub513.h5 -o taz9.h5 --clobber PASSED
echo h5jam -u u513.txt -i twithub513.h5 -o taz9.h5 --clobber PASSED >> ..\..\%tempResult%
copy /Y twithub.h5 tay2.h5 >temp.txt
h5jam -u u10.txt -i tay2.h5 --clobber
echo h5jam -u u10.txt -i tay2.h5 --clobber PASSED
echo h5jam -u u10.txt -i tay2.h5 --clobber PASSED >> ..\..\%tempResult%
copy /Y twithub.h5 tay3.h5 >temp.txt
h5jam -u u511.txt -i tay3.h5 --clobber
echo h5jam -u u511.txt -i tay3.h5 --clobber PASSED
echo h5jam -u u511.txt -i tay3.h5 --clobber PASSED >> ..\..\%tempResult%
copy /Y twithub.h5 tay4.h5 >temp.txt
h5jam -u u512.txt -i tay4.h5 --clobber
echo h5jam -u u512.txt -i tay4.h5 --clobber PASSED
echo h5jam -u u512.txt -i tay4.h5 --clobber PASSED >> ..\..\%tempResult%
copy /Y twithub.h5 tay5.h5 >temp.txt
h5jam -u u513.txt -i tay5.h5 --clobber
echo h5jam -u u513.txt -i tay5.h5 --clobber PASSED
echo h5jam -u u513.txt -i tay5.h5 --clobber PASSED >> ..\..\%tempResult%
copy /Y twithub513.h5 tay6.h5 >temp.txt
h5jam -u u10.txt -i tay6.h5 --clobber
echo h5jam -u u10.txt -i tay6.h5 --clobber PASSED
echo h5jam -u u10.txt -i tay6.h5 --clobber PASSED >> ..\..\%tempResult%
copy /Y twithub513.h5 tay7.h5 >temp.txt
h5jam -u u511.txt -i tay7.h5 --clobber
echo h5jam -u u511.txt -i tay7.h5 --clobber PASSED
echo h5jam -u u511.txt -i tay7.h5 --clobber PASSED >> ..\..\%tempResult%
copy /Y twithub513.h5 tay8.h5 >temp.txt
h5jam -u u512.txt -i tay8.h5 --clobber
echo h5jam -u u512.txt -i tay8.h5 --clobber PASSED
echo h5jam -u u512.txt -i tay8.h5 --clobber PASSED >> ..\..\%tempResult%
copy /Y twithub513.h5 tay9.h5 >temp.txt
h5jam -u u513.txt -i tay9.h5 --clobber
echo h5jam -u u513.txt -i tay9.h5 --clobber PASSED
echo h5jam -u u513.txt -i tay9.h5 --clobber PASSED >> ..\..\%tempResult%
del temp.txt
del *.h5
set tempResult=
set p1=
set p2=
cd ../..
|