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