Skip to content

Commit 9b58301

Browse files
committed
deploy: Fix jazzer_standalone.jar not being executable
This was missed in #838.
1 parent ad52635 commit 9b58301

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

deploy/BUILD.bazel

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,21 @@ sh_test(
9191
deps = ["@bazel_tools//tools/bash/runfiles"],
9292
)
9393

94+
sh_test(
95+
name = "jazzer_standalone_version_test",
96+
srcs = ["jazzer_version_test.sh"],
97+
data = [
98+
"//src/main/java/com/code_intelligence/jazzer:jazzer_standalone_deploy.jar",
99+
"@bazel_tools//tools/jdk:current_java_runtime",
100+
],
101+
env = {
102+
"JAVA_EXECPATH": "$(JAVA)",
103+
"JAZZER_RLOCATIONPATH": "$(rlocationpath //src/main/java/com/code_intelligence/jazzer:jazzer_standalone_deploy.jar)",
104+
},
105+
toolchains = ["@bazel_tools//tools/jdk:current_java_runtime"],
106+
deps = ["@bazel_tools//tools/bash/runfiles"],
107+
)
108+
94109
[
95110
sh_test(
96111
name = artifact + "_artifact_test",

src/main/java/com/code_intelligence/jazzer/BUILD.bazel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ load("//sanitizers:sanitizers.bzl", "SANITIZER_CLASSES")
88
java_binary(
99
name = "jazzer_standalone",
1010
create_executable = False,
11-
main_class = "com.code_intelligence.jazzer.Jazzer",
11+
deploy_manifest_lines = [
12+
"Main-Class: com.code_intelligence.jazzer.Jazzer",
13+
],
1214
visibility = [
1315
"//:__pkg__",
16+
"//deploy:__pkg__",
1417
"//launcher:__pkg__",
1518
],
1619
runtime_deps = [

0 commit comments

Comments
 (0)