test.sh 678 B

123456789101112131415
  1. #!/bin/bash
  2. # USM test exec: run the meson test suite for Spry.
  3. # $1 is the build directory created by usm. Spry has no test cases
  4. # registered today, so this runs (and passes) with "No tests defined" —
  5. # verified empirically: `ninja -C build test` exits 0. When tests are
  6. # added and registered with meson's test() they run here automatically.
  7. #
  8. # LD_LIBRARY_PATH is scrubbed, not set: on these saddles a saddle-wide
  9. # /opt/usm/lib entry silently overrides the build-tree RUNPATH of test
  10. # binaries, making suites run against stale installed libraries instead
  11. # of the freshly built ones (fleet discovery #1).
  12. set -e
  13. build_dir=$1
  14. LD_LIBRARY_PATH= ninja -C "$build_dir" test