urbdyn / rules_fish

Bazel toolchain rules for Fish shell.
Apache License 2.0
2 stars 0 forks source link

Run fish cmake tests #29

Closed Matthew-Benson closed 1 month ago

Matthew-Benson commented 1 month ago

Add test wrapper for fish cmake tests that depends on a rule that produces the outputs of fish's cmake --build . --target test and checks that the cmake build log and test log files exist. If the cmake build/test fails, this test will also fail, though outputs may not be well captured. These tests can be ran with:

bazel test --noincompatible_sandbox_hermetic_tmp '@fish_toolchains//fish:test'
Matthew-Benson commented 1 month ago

Went down the road of trying to completely replace their test harness and use our own, but it's complicated in a few edge cases. Will instead set up a temp directory with the structure. their wrapper expects.