Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Merge 2934438 into c04cb30
Browse files Browse the repository at this point in the history
  • Loading branch information
g-k committed Sep 14, 2018
2 parents c04cb30 + 2934438 commit 7430c36
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
PARSE_FILE := cmd/margo_verify_firefox/parse.go

all: lint vet test getsamplemar testparser testsigner

lint:
Expand All @@ -21,11 +23,11 @@ getsamplemar:
fi

testparser:
go run -ldflags "-X go.mozilla.org/mar.debug=true" examples/parse.go firefox-60.0esr-60.0.1esr.partial.mar 2>&1 | grep 'signature: OK, valid signature from release1_sha384'
go run -ldflags "-X go.mozilla.org/mar.debug=true" ${PARSE_FILE} firefox-60.0esr-60.0.1esr.partial.mar 2>&1 | grep 'signature: OK, valid signature from release1_sha384'

testsigner:
go run -ldflags "-X go.mozilla.org/mar.debug=true" examples/sign.go firefox-60.0esr-60.0.1esr.partial.mar /tmp/resigned.mar
go run examples/parse.go /tmp/resigned.mar
go run ${PARSE_FILE} /tmp/resigned.mar

getmarcorpus:
@if [ ! -e /tmp/marworkdir ]; then mkdir /tmp/marworkdir; fi
Expand All @@ -47,4 +49,3 @@ fuzz: getmarcorpus
go-fuzz -bin=mar-fuzz.zip -workdir=/tmp/marworkdir

.PHONY: all lint vet test getkeys getsamplemar testparser

0 comments on commit 7430c36

Please sign in to comment.