diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index cfac9977..5379acd3 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -191,6 +191,23 @@ jobs: --build build \ --target test + - name: Run ubpf_test over each file in fuzz corpus + run: | + wget https://github.com/iovisor/ubpf/archive/refs/heads/fuzz/corpus.zip + unzip corpus.zip + for file in ubpf-fuzz-corpus/fuzz/corpus/*; do + path=$(dirname $file) + name=$(basename $file) + libfuzzer/split.sh $file + interpret_result=$(build/bin/ubpf_test --mem $path/memory-$name $path/program-$name) || true + jit_result=$(build/bin/ubpf_test --mem $path/memory-$name $path/program-$name --jit) || true + if [[ $interpret_result != $jit_result ]]; then + echo "Interpret result: $interpret_result" + echo "JIT result: $jit_result" + echo "Test failed for $name" + fi + done + - name: Generate code coverage report if: inputs.enable_coverage == true && inputs.platform == 'macos-latest' run: |