Break up "Run all tests" in bazel_test.yml (#51)
Break up "Run all tests" in bazel_test.yml
The original tests are divided into 3 parts:
1. Build fuzzing exmample targets under examplers/
2. Build and run all tests, i.e., targets with "test" tag
3. Run dedicated tests, for now, only _run targtet
modified: .github/workflows/bazel_test.yml
diff --git a/.github/workflows/bazel_test.yml b/.github/workflows/bazel_test.yml
index 8c716ef..2a33127 100644
--- a/.github/workflows/bazel_test.yml
+++ b/.github/workflows/bazel_test.yml
@@ -27,13 +27,15 @@
run: |
sudo apt-get install python3-setuptools
pip3 install wheel absl-py
- - name: Run all tests
- working-directory: ./
- # Build //examples/...
- # Add "bazel test --config=clang //... --test_tag_filters=test"in the future if any test rules are added
+ alias python='python3'
+ - name: Build fuzz test examples
# The -FDP is for filtering out the files which contains "#include <fuzzer/FuzzedDataProvider.h>",
# The "<fuzzer/FDP...>" is only supported since clang-10 while the clang version in github runner is 9
run: |
- alias python='python3'
bazel build --verbose_failures --build_tag_filters=fuzz_test,-FDP --config=asan-libfuzzer //examples/...
+ - name: Run common tests
+ run: |
+ bazel test --config=clang //... --test_tag_filters=-fuzz_test --build_tests_only
+ - name: Run dedicated tests
+ run: |
bazel run //examples:empty_fuzz_test_run --config=asan-libfuzzer -- --timeout_secs=5