-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_Test4.bat
214 lines (186 loc) · 9.84 KB
/
_Test4.bat
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
echo off
echo "Testing Data Types"
del \tmp\tmp.*
del \tmp\csv.*
del \tmp\psv.*
del \tmp\bin.*
echo "Test: binary store, integer,float,date,time"
java epipog -i tests\4.txt -Smoney:integer,temp:float,date:date,time:time -d binary -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp >stdout
find "20,12:03,2016-10-02,6.2" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: csv store, integer,float,date,time"
del \tmp\tmp.*
java epipog -i tests\4.txt -Smoney:integer,temp:float,date:date,time:time -d csv -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d csv >stdout
find "20,12:03,2016-10-02,6.2" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: psv store, integer,float,date,time"
del \tmp\tmp.*
java epipog -i tests\4.txt -Smoney:integer,temp:float,date:date,time:time -d psv -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d psv >stdout
find "20,12:03,2016-10-02,6.2" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: json store, integer,float,date,time"
del \tmp\tmp.*
java epipog -i tests\4.txt -Smoney:integer,temp:float,date:date,time:time -d json -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d json >stdout
find "20,12:03,2016-10-02,6.2" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: binary store, hex numbers and leading zeros"
del \tmp\tmp.*
java epipog -i tests\4a.txt -Smoney:integer,temp:float,date:date,time:time -d binary -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d binary >stdout
find "66,11:00,2016-10-01,7.6" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: csv store, hex numbers and leading zeros"
del \tmp\tmp.*
java epipog -i tests\4a.txt -Smoney:integer,temp:float,date:date,time:time -d csv -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d csv >stdout
find "66,11:00,2016-10-01,7.6" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: psv store, hex numbers and leading zeros"
del \tmp\tmp.*
java epipog -i tests\4a.txt -Smoney:integer,temp:float,date:date,time:time -d psv -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d psv >stdout
find "66,11:00,2016-10-01,7.6" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: json store, hex numbers and leading zeros"
del \tmp\tmp.*
java epipog -i tests\4a.txt -Smoney:integer,temp:float,date:date,time:time -d json -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d json >stdout
find "66,11:00,2016-10-01,7.6" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: binary store, hex numbers and leading zeros, case insensitive"
del \tmp\tmp.*
java epipog -i tests\4b.txt -Smoney:integer,temp:float,date:date,time:time -d binary -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d binary >stdout
find "66,11:00,2016-10-01,7.6" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: csv store, hex numbers and leading zeros, case insensitive"
del \tmp\tmp.*
java epipog -i tests\4b.txt -Smoney:integer,temp:float,date:date,time:time -d csv -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d csv >stdout
find "66,11:00,2016-10-01,7.6" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: psv store, hex numbers and leading zeros, case insensitive"
del \tmp\tmp.*
java epipog -i tests\4b.txt -Smoney:integer,temp:float,date:date,time:time -d psv -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d psv >stdout
find "66,11:00,2016-10-01,7.6" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: json store, hex numbers and leading zeros, case insensitive"
del \tmp\tmp.*
java epipog -i tests\4b.txt -Smoney:integer,temp:float,date:date,time:time -d json -F psv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s money,time,date,temp -d json >stdout
find "66,11:00,2016-10-01,7.6" stdout >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: PSV, incorrect data type for integer"
del \tmp\tmp.*
java epipog -i tests\4c.txt -Smoney:integer,temp:float,date:date,time:time -d binary -F psv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Incorrect value for data type: ab" stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: PSV, incorrect data type for short"
del \tmp\tmp.*
java epipog -i tests\4c.txt -Smoney:short,temp:float,date:date,time:time -d binary -F psv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Incorrect value for data type: ab" stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: PSV, incorrect data type for long"
del \tmp\tmp.*
java epipog -i tests\4c.txt -Smoney:long,temp:float,date:date,time:time -d binary -F psv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Incorrect value for data type: ab" stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: PSV, incorrect data type for float"
del \tmp\tmp.*
java epipog -i tests\4d.txt -Smoney:long,temp:float,date:date,time:time -d binary -F psv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Incorrect value for data type: 6.x" stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: PSV, incorrect data type for double"
del \tmp\tmp.*
java epipog -i tests\4d.txt -Smoney:long,temp:double,date:date,time:time -d binary -F psv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Incorrect value for data type: 6.x" stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: PSV, incorrect data type for time"
del \tmp\tmp.*
java epipog -i tests\4e.txt -Smoney:long,temp:double,date:date,time:time -d binary -F psv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Incorrect value for time data type: 12.03" stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: PSV, incorrect data type for date"
del \tmp\tmp.*
java epipog -i tests\4f.txt -Smoney:long,temp:double,date:date,time:time -d binary -F psv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Incorrect value for date data type: 2016-20-02" stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: CSV, incorrect data type for string16"
del \tmp\tmp.*
java epipog -i tests\4g.txt -Scountry:string16,state:string16 -F csv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Value too long for string16 data type: United States of America" stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: CSV, incorrect data type for string32"
del \tmp\tmp.*
java epipog -i tests\4g.txt -Scountry:string32,state:string16 -F csv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Value too long for string32 data type: United Kingdom of Great Britain and Northern Ireland" stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: CSV, incorrect data type for string64"
del \tmp\tmp.*
java epipog -i tests\4h.txt -Scountry:string64,state:string16 -F csv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Value too long for string64 data type: " stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: CSV, incorrect data type for string128"
del \tmp\tmp.*
java epipog -i tests\4i.txt -Scountry:string128,state:string16 -F csv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Value too long for string128 data type: " stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: CSV, incorrect data type for char"
del \tmp\tmp.*
java epipog -i tests\4j.txt -Sname:string16,status:char -F csv 2>stderr
IF %ERRORLEVEL% NEQ 1 ( echo FAILED rc ) else ( echo PASSED )
find "Value too long for char data type: " stderr >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED stderr ) else ( echo PASSED )
echo "Test: CSV, char data type"
del \tmp\tmp.*
java epipog -i tests\4k.txt -Sfield1:char,field2:integer -F csv -d csv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s "*" -d csv >stdout
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
find "c,12" stdout >stderr
IF %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: JSON, char data type"
del \tmp\tmp.*
java epipog -i tests\4k.txt -Sfield1:char,field2:integer -F csv -d json
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s "*" -d json >stdout
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
find "c,12" stdout >stderr
IF %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
echo "Test: binary, char data type"
del \tmp\tmp.*
java epipog -i tests\4k.txt -Sfield1:char,field2:integer -F csv
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
java epipog -s "*" >stdout
IF %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else ( echo PASSED )
find "c,12" stdout >stderr
IF %ERRORLEVEL% NEQ 0 ( echo FAILED stdout ) else ( echo PASSED )
del tmp stdout stderr