This repository was archived by the owner on Sep 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
131 lines (123 loc) · 5.45 KB
/
Makefile
File metadata and controls
131 lines (123 loc) · 5.45 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
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
#MAKEFLAGS += --silent
all: clean test build
test:
GOLANG_ENV=test go test -coverpkg=./... -coverprofile=coverage-integration.txt -covermode=atomic -cover github.com/18F/e-QIP-prototype/api/integration
GOLANG_ENV=test go test -coverprofile=coverage.txt -covermode=atomic -cover $(shell go list ./... | grep -v /vendor/ | grep -v integration)
reset-test-db:
go build -o bin/dbmigrate ./cmd/dbmigrate
go build -o bin/dbreset ./cmd/dbreset
./bin/dbreset -force eapp_test
./bin/dbmigrate -migrations_path ./migrations eapp_test
coverage:
# Use -c to remove processed reports so coverage-js won't find it
codecov -c -F backend -f coverage-integration.txt -X gcov
codecov -c -F backend -f coverage.txt -X gcov
build:
go build -o api ./cmd/server
chown -f 1000:1000 api
clean:
rm -f api \
bin/compare bin/flush bin/form bin/fuzzer bin/load bin/load-scenario \
bin/submit bin/transmit bin/unlock
.PHONY: cmd
cmd:
go build -o bin/compare ./cmd/compare
go build -o bin/dbmigrate ./cmd/dbmigrate
go build -o bin/dbreset ./cmd/dbreset
go build -o bin/flush ./cmd/flush
go build -o bin/form ./cmd/form
go build -o bin/fuzzer ./cmd/fuzzer
go build -o bin/load ./cmd/load
go build -o bin/load-scenario ./cmd/load-scenario
go build -o bin/sftype ./cmd/sftype
go build -o bin/submit ./cmd/submit
go build -o bin/transmit ./cmd/transmit
go build -o bin/unlock ./cmd/unlock
chown -f 1000:1000 \
bin/compare bin/dbmigrate bin/dbreset bin/flush \
bin/form bin/fuzzer bin/load bin/load-scenario \
bin/load-scenario bin/submit bin/transmit bin/unlock
specs: cmd
./bin/fuzzer testdata/identification-birthdate.json \
testdata/identification-birthplace.json \
testdata/identification-contacts.json \
testdata/identification-othernames.json \
testdata/identification-physical.json \
testdata/identification-ssn.json \
testdata/identification-name.json \
testdata/history-education.json \
testdata/history-employment.json \
testdata/history-federal.json \
testdata/history-residence.json \
testdata/relationships-people.json \
testdata/relationships-relatives.json \
testdata/relationships-status-cohabitant.json \
testdata/relationships-status-marital.json \
testdata/citizenship-multiple.json \
testdata/citizenship-passports.json \
testdata/citizenship-status.json \
testdata/military-disciplinary.json \
testdata/military-foreign.json \
testdata/military-history.json \
testdata/military-selective.json \
testdata/foreign-activities-benefits.json \
testdata/foreign-activities-direct.json \
testdata/foreign-activities-indirect.json \
testdata/foreign-activities-realestate.json \
testdata/foreign-activities-support.json \
testdata/foreign-business-advice.json \
testdata/foreign-business-conferences.json \
testdata/foreign-business-contact.json \
testdata/foreign-business-employment.json \
testdata/foreign-business-family.json \
testdata/foreign-business-political.json \
testdata/foreign-business-sponsorship.json \
testdata/foreign-business-ventures.json \
testdata/foreign-business-voting.json \
testdata/foreign-contacts.json \
testdata/foreign-passport.json \
testdata/foreign-travel.json \
testdata/financial-bankruptcy.json \
testdata/financial-card.json \
testdata/financial-credit.json \
testdata/financial-delinquent.json \
testdata/financial-gambling.json \
testdata/financial-nonpayment.json \
testdata/financial-taxes.json \
testdata/substance-alcohol-additional.json \
testdata/substance-alcohol-negative.json \
testdata/substance-alcohol-ordered.json \
testdata/substance-alcohol-voluntary.json \
testdata/substance-drug-clearance.json \
testdata/substance-drug-misuse.json \
testdata/substance-drug-ordered.json \
testdata/substance-drug-publicsafety.json \
testdata/substance-drug-purchase.json \
testdata/substance-drug-usage.json \
testdata/substance-drug-voluntary.json \
testdata/legal-associations-activities-to-overthrow.json \
testdata/legal-associations-advocating.json \
testdata/legal-associations-engaged-in-terrorism.json \
testdata/legal-associations-membership-overthrow.json \
testdata/legal-associations-membership-violence-or-force.json \
testdata/legal-associations-terrorism-association.json \
testdata/legal-associations-terrorist-organization.json \
testdata/legal-court.json \
testdata/legal-investigations-debarred.json \
testdata/legal-investigations-history.json \
testdata/legal-investigations-revoked.json \
testdata/legal-police-additionaloffenses.json \
testdata/legal-police-domesticviolence.json \
testdata/legal-police-offenses.json \
testdata/legal-technology-manipulating.json \
testdata/legal-technology-unauthorized.json \
testdata/legal-technology-unlawful.json \
testdata/psychological-competence.json \
testdata/psychological-conditions.json \
testdata/psychological-consultations.json \
testdata/psychological-diagnoses.json \
testdata/psychological-hospitalizations.json \
> fuzzed.json;
cat fuzzed.json | ./bin/load;
cat fuzzed.json | ./bin/compare;
rm -f ./fuzzed.json;