11
22.PHONY : test examples clean test_full pebble pebble_setup pebble_start pebble_wait pebble_stop boulder boulder_setup boulder_start boulder_stop
33
4-
4+ # some variables for path injection, if already set will not override
55GOPATH ?= $(HOME ) /go
66BOULDER_PATH ?= $(GOPATH ) /src/github.com/letsencrypt/boulder
77PEBBLE_PATH ?= $(GOPATH ) /src/github.com/letsencrypt/pebble
88TEST_PATH ?= github.com/eggsampler/acme/v3
99
1010
11- # tests the code against a running ca instance
11+ # tests the code against an already running ca instance
12+ # to actually do a test against pebble or boulder, including , see the 'pebble' or 'boulder' targets
1213test :
1314 -go clean -testcache
1415 go test -v -race -coverprofile=coverage.out -covermode=atomic $(TEST_PATH )
2425test_full : clean examples pebble pebble_stop boulder boulder_stop
2526
2627
28+ # sets up & runs pebble (in docker), tests, then stops pebble
2729pebble : pebble_setup pebble_start pebble_wait test pebble_stop
2830
2931pebble_setup :
@@ -45,6 +47,7 @@ pebble_stop:
4547 docker-compose -f $(PEBBLE_PATH ) /docker-compose.yml down
4648
4749
50+ # sets up & runs boulder (in docker), tests, then stops boulder
4851boulder : boulder_setup boulder_start boulder_wait test boulder_stop
4952
5053# NB: this edits docker-compose.yml
@@ -53,7 +56,6 @@ boulder_setup:
5356 -git clone --depth 1 https://github.com/letsencrypt/boulder.git $(BOULDER_PATH )
5457 (cd $( BOULDER_PATH) ; git checkout -f main && git reset --hard HEAD && git pull -q)
5558 make boulder_stop
56- rm -rf $(BOULDER_PATH ) /temp
5759
5860# runs an instance of boulder
5961boulder_start :
0 commit comments