File tree 3 files changed +14
-9
lines changed
3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ jobs:
147
147
-
148
148
name : Test
149
149
run : |
150
- ./hack/ test
150
+ make test
151
151
env :
152
152
TEST_TYPES : test
153
153
-
@@ -221,9 +221,8 @@ jobs:
221
221
-
222
222
name : Benchmark
223
223
run : |
224
- ./hack/test
224
+ make bench
225
225
env :
226
- TEST_TYPES : benchmark
227
226
TEST_BENCH_REGEXP : ${{ matrix.test }}$
228
227
TEST_BENCH_RUN : ${{ matrix.count }}
229
228
TEST_BENCH_TIME : ${{ matrix.benchtime }}
Original file line number Diff line number Diff line change 5
5
test :
6
6
./hack/test
7
7
8
+ .PHONY : bench
9
+ bench :
10
+ TEST_TYPES=benchmark ./hack/test
11
+
8
12
.PHONY : gen
9
13
gen :
10
14
./hack/gen
Original file line number Diff line number Diff line change @@ -31,24 +31,26 @@ TEST_TYPES=test make test
31
31
32
32
# run only benchmarks
33
33
TEST_TYPES=benchmark make test
34
+ # or
35
+ make bench
34
36
35
37
# run a specific benchmark
36
- TEST_BENCH_REGEXP=/BenchmarkBuildLocal$ make test
38
+ TEST_BENCH_REGEXP=/BenchmarkBuildLocal$ make bench
37
39
38
40
# run all benchmarks 3 times (default 1)
39
- TEST_BENCH_RUN=3 make test
41
+ TEST_BENCH_RUN=3 make bench
40
42
41
43
# run 5 iterations of each benchmark (default 1x)
42
- TEST_BENCH_TIME=5x make test
44
+ TEST_BENCH_TIME=5x make bench
43
45
44
46
# run all with master, v0.9.3 and v0.16.0 git references
45
- BUILDKIT_REFS=master,v0.9.3,v0.16.0 make test
47
+ BUILDKIT_REFS=master,v0.9.3,v0.16.0 make bench
46
48
```
47
49
48
50
> [ !NOTE]
49
51
> Set ` TEST_KEEP_CACHE=1 ` for the test framework to keep external dependant
50
- > images in a docker volume if you are repeatedly calling ` ./hack/ test` script.
51
- > This helps to avoid rate limiting on the remote registry side.
52
+ > images in a docker volume if you are repeatedly calling ` make test` or
53
+ > ` make bench ` . This helps to avoid rate limiting on the remote registry side.
52
54
53
55
After running the tests, you can generate the HTML report and serve the
54
56
website with:
You can’t perform that action at this time.
0 commit comments