Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: exclude desktop fuzz tests #242

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions build-scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def run_clippy(
args.extend(["--target", target])

if Variant.FULL not in variants:
args.extend(["--exclude", DESKTOP_PACKAGE_NAME])
args.extend(["--exclude", DESKTOP_PACKAGE_NAME, "--exclude", DESKTOP_FUZZ_PACKAGE_NAME])

if features:
args.extend(
Expand Down Expand Up @@ -47,13 +47,13 @@ def run_cargo_tests(
):
args = [cargo_cmd_name()]

args.extend(["build", "--tests", "--locked", "--workspace"])
args.extend(["build", "--tests", "--locked", "--workspace", "--exclude", DESKTOP_FUZZ_PACKAGE_NAME])

if target:
args.extend(["--target", target])

if Variant.FULL not in variants:
args.extend(["--exclude", DESKTOP_PACKAGE_NAME, "--exclude", DESKTOP_FUZZ_PACKAGE_NAME])
args.extend(["--exclude", DESKTOP_PACKAGE_NAME])

if features:
args.extend(
Expand All @@ -74,14 +74,16 @@ def run_cargo_tests(
args = [cargo_cmd_name()]

# Run all lib, bin, and integration tests. Required to exclude running doc tests.
args.extend(["test", "--locked", "--workspace", "--lib", "--bins", "--test", "*"])
args.extend(
["test", "--locked", "--workspace", "--lib", "--bins", "--test", "*", "--exclude", DESKTOP_FUZZ_PACKAGE_NAME]
)

if target:
args.extend(["--target", target])

# disable desktop tests for now
if isLinux():
args.extend(["--exclude", DESKTOP_PACKAGE_NAME, "--exclude", DESKTOP_FUZZ_PACKAGE_NAME])
args.extend(["--exclude", DESKTOP_PACKAGE_NAME])

if features:
args.extend(
Expand Down
Loading