Skip to content

Commit

Permalink
deploy: Fix jazzer_standalone.jar not being executable
Browse files Browse the repository at this point in the history
This was missed in #838.
  • Loading branch information
fmeum committed Sep 20, 2023
1 parent ad52635 commit 9b58301
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions deploy/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,21 @@ sh_test(
deps = ["@bazel_tools//tools/bash/runfiles"],
)

sh_test(
name = "jazzer_standalone_version_test",
srcs = ["jazzer_version_test.sh"],
data = [
"//src/main/java/com/code_intelligence/jazzer:jazzer_standalone_deploy.jar",
"@bazel_tools//tools/jdk:current_java_runtime",
],
env = {
"JAVA_EXECPATH": "$(JAVA)",
"JAZZER_RLOCATIONPATH": "$(rlocationpath //src/main/java/com/code_intelligence/jazzer:jazzer_standalone_deploy.jar)",
},
toolchains = ["@bazel_tools//tools/jdk:current_java_runtime"],
deps = ["@bazel_tools//tools/bash/runfiles"],
)

[
sh_test(
name = artifact + "_artifact_test",
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/code_intelligence/jazzer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ load("//sanitizers:sanitizers.bzl", "SANITIZER_CLASSES")
java_binary(
name = "jazzer_standalone",
create_executable = False,
main_class = "com.code_intelligence.jazzer.Jazzer",
deploy_manifest_lines = [
"Main-Class: com.code_intelligence.jazzer.Jazzer",
],
visibility = [
"//:__pkg__",
"//deploy:__pkg__",
"//launcher:__pkg__",
],
runtime_deps = [
Expand Down

0 comments on commit 9b58301

Please sign in to comment.