-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_Test8.bat
43 lines (39 loc) · 1.93 KB
/
_Test8.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
echo off
echo "Testing Large Files"
del \tmp\tmp.*
echo "Test: Binary, city-zip 25K records"
java epipog -itests\cityzip.csv -S "state:string32,city:string32,postal:integer,latitude:float,longitude:float,number of poi:short"
if %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else echo PASSED
java epipog -s "city,postal" >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else echo PASSED
fc stdout tests\8.cmp >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED fc ) else echo PASSED
java epipog -s "city,postal" -f "state=OR">stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED fc ) else echo PASSED
fc stdout tests\8a.cmp >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED fc ) else echo PASSED
echo "Test: CSV, city-zip 25K records"
del \tmp\tmp.*
java epipog -itests\cityzip.csv -S "state:string32,city:string32,postal:integer,latitude:float,longitude:float,number of poi:short" -d csv
if %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else echo PASSED
java epipog -s "city,postal" -d csv >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else echo PASSED
fc stdout tests\8.cmp >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED fc ) else echo PASSED
java epipog -s "city,postal,state" -f "state=OR" -d csv>stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED fc ) else echo PASSED
fc stdout tests\8b.cmp >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED fc ) else echo PASSED
echo "Test: JSON, city-zip 25K records"
del \tmp\tmp.*
java epipog -itests\cityzip.csv -S "state:string32,city:string32,postal:integer,latitude:float,longitude:float,number of poi:short" -d json
if %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else echo PASSED
java epipog -s "city,postal" -d json >stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED rc ) else echo PASSED
fc stdout tests\8.cmp >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED fc ) else echo PASSED
java epipog -s "city,postal,state" -f "state=OR" -d json>stdout
if %ERRORLEVEL% NEQ 0 ( echo FAILED fc ) else echo PASSED
fc stdout tests\8b.cmp >tmp
if %ERRORLEVEL% NEQ 0 ( echo FAILED fc ) else echo PASSED
del tmp stdout stderr