Skip to content

Commit

Permalink
Run fuzz test on GitHub runner Ubuntu 22.04 container
Browse files Browse the repository at this point in the history
So that we maintain a minimum set that have to be run on the
self-hosted machine.
  • Loading branch information
sophimao committed Jun 19, 2024
1 parent 6f15b9a commit f510d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/fuzz-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,13 @@ on:

jobs:
build:
runs-on:
- self-hosted
- linux
- x64
- container
runs-on: ubuntu-22.04

container:
image: ghcr.io/intel/fpga-runtime-for-opencl/ubuntu-22.04-dev:main

name: Fuzz Testing
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Clone Radamsa
run: |
mkdir radamsa_repo
Expand Down
2 changes: 1 addition & 1 deletion fuzz_testing/script/fuzz_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def fuzz_test_main(test_file_name, group, test, var, original_value, all_outputs
# Mutate variable
fuzz_var_str = "Fuzzing variable: " + group + "--" + test + "--" + var
print(" " + fuzz_var_str)
mutation_command = ["python", "mutator.py", test_file_name, group, test, var]
mutation_command = ["python3", "mutator.py", test_file_name, group, test, var]
# mutated_value = subprocess.check_output(mutation_command)
original_value_message = "Original value: \n" + original_value
subprocess.check_output(mutation_command)
Expand Down

0 comments on commit f510d85

Please sign in to comment.