test.sh 544 B

123456789101112
  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, so this stays uniform across
  5. # the family. $1 is the build directory (set by usm).
  6. #
  7. # LD_LIBRARY_PATH is scrubbed: a system-wide path here (e.g. /opt/usm/lib)
  8. # takes precedence over the build tree's RUNPATH and silently links the
  9. # tests against a stale installed copy of the library instead of the one
  10. # just built — failures then reflect the old lib, not this source.
  11. LD_LIBRARY_PATH= ninja -C "$1" test