-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathparse_integration.sh
More file actions
executable file
·38 lines (29 loc) · 1.4 KB
/
parse_integration.sh
File metadata and controls
executable file
·38 lines (29 loc) · 1.4 KB
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
#!/bin/bash
# First crack at building integration test framework for
# ensuring the preprocessing works correctly as we move
# forward fixing bugs, etc.
make spotless > /dev/null
mkdir -p /tmp/integration/ipg120327.one
./parse.py -d test/fixtures/xml/ -p. -x ipg120327.one.xml
for table in assignee citation class inventor lawyer patdesc patent sciref usreldoc
do
sqlite3 -csv ${table}.sqlite3 "select * from ${table}" > /tmp/integration/ipg120327.one/${table}.csv
diff test/integration/parse/ipg120327.one/${table}.csv /tmp/integration/ipg120327.one/${table}.csv
done
# TODO: Refactor
make spotless > /dev/null
mkdir -p /tmp/integration/ipg120327.two
./parse.py -d test/fixtures/xml/ -p. -x ipg120327.two.xml
for table in assignee citation class inventor lawyer patdesc patent sciref usreldoc
do
sqlite3 -csv ${table}.sqlite3 "select * from ${table}" > /tmp/integration/ipg120327.two/${table}.csv
diff test/integration/parse/ipg120327.two/${table}.csv /tmp/integration/ipg120327.two/${table}.csv
done
make spotless > /dev/null
mkdir -p /tmp/integration/ipg120327.18
./parse.py -d test/fixtures/xml/ -p. -x ipg120327.18.xml
for table in assignee citation class inventor lawyer patdesc patent sciref usreldoc
do
sqlite3 -csv ${table}.sqlite3 "select * from ${table}" > /tmp/integration/ipg120327.18/${table}.csv
diff test/integration/parse/ipg120327.18/${table}.csv /tmp/integration/ipg120327.18/${table}.csv
done