test.sh 607 B

12345678910111213
  1. #!/bin/bash
  2. set -e
  3. # Runs the test suite inside an already-built tree. ninja's test target
  4. # exits 0 even when no tests are defined (verified empirically), so this
  5. # stays uniform across the family — this project defines no tests yet.
  6. # $1 is the build directory (set by usm).
  7. #
  8. # LD_LIBRARY_PATH is scrubbed: a system-wide path here (e.g. /opt/usm/lib)
  9. # takes precedence over the build tree's RUNPATH and silently links the
  10. # tests against a stale installed copy of the library instead of the one
  11. # just built — failures then reflect the old lib, not this source.
  12. LD_LIBRARY_PATH= ninja -C "$1" test