#!/bin/bash # USM test exec: run the meson-wired USM suite (.usmignore semantics, # dataPackage validation, usm.config parsing) inside an existing build # directory (passed as $1 by `usm manifest test`). # # The environment is scrubbed, not extended: # - LD_LIBRARY_PATH: a saddle-wide /opt/usm/lib value would silently # override the build-tree RUNPATH and run the suite against a stale # installed library. # - USM_VERBOSE: flips run_install into verbose mode, disabling the # progress parsing the suite asserts on. set -e build_dir=$1 if [ ! -f "${build_dir}/build.ninja" ]; then echo "test.sh: no meson build directory at ${build_dir} (run the build exec first)" >&2 exit 1 fi LD_LIBRARY_PATH= USM_VERBOSE= meson test -C "${build_dir}"