Skip to content

Commit c0788fa

Browse files
committed
review: don't build fuzzers on Windows.
Signed-off-by: Piotr Sikora <[email protected]>
1 parent dc90a09 commit c0788fa

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ jobs:
125125
os: windows-2019
126126
arch: x86_64
127127
action: test
128+
targets: -//test/fuzz/...
128129
- name: 'V8 on Linux/x86_64'
129130
engine: 'v8'
130131
repo: 'v8'
@@ -228,6 +229,7 @@ jobs:
228229
os: windows-2019
229230
arch: x86_64
230231
action: test
232+
targets: -//test/fuzz/...
231233
- name: 'WAVM on Linux/x86_64'
232234
engine: 'wavm'
233235
repo: 'com_github_wavm_wavm'
@@ -287,7 +289,7 @@ jobs:
287289
--test_output=errors
288290
--define engine=${{ matrix.engine }}
289291
${{ matrix.flags }}
290-
//test/...
292+
//test/... ${{ matrix.targets }}
291293
292294
- name: Bazel build/test (signed Wasm module)
293295
if: ${{ matrix.engine != 'null' && !startsWith(matrix.os, 'windows') }}

test/BUILD

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
load("@proxy_wasm_cpp_host//bazel:select.bzl", "proxy_wasm_select_engine_null")
22
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
3-
load("@rules_fuzzing//fuzzing:cc_defs.bzl", "cc_fuzz_test")
43

54
licenses(["notice"]) # Apache 2
65

@@ -32,20 +31,6 @@ cc_test(
3231
],
3332
)
3433

35-
filegroup(
36-
name = "corpus_pairs",
37-
srcs = glob(["corpus_pairs/**"]),
38-
)
39-
40-
cc_fuzz_test(
41-
name = "pairs_util_fuzzer",
42-
srcs = ["pairs_util_fuzzer.cc"],
43-
corpus = [":corpus_pairs"],
44-
deps = [
45-
"//:lib",
46-
],
47-
)
48-
4934
cc_test(
5035
name = "signature_util_test",
5136
srcs = ["signature_util_test.cc"],

test/fuzz/BUILD

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
load("@rules_fuzzing//fuzzing:cc_defs.bzl", "cc_fuzz_test")
2+
3+
licenses(["notice"]) # Apache 2
4+
5+
package(default_visibility = ["//visibility:public"])
6+
7+
filegroup(
8+
name = "corpus_pairs",
9+
srcs = glob(["corpus_pairs/**"]),
10+
)
11+
12+
cc_fuzz_test(
13+
name = "pairs_util_fuzzer",
14+
srcs = ["pairs_util_fuzzer.cc"],
15+
corpus = [":corpus_pairs"],
16+
deps = [
17+
"//:lib",
18+
],
19+
)
File renamed without changes.

0 commit comments

Comments
 (0)