Python test environment doesn't include bin/ directory for own package
The (Python) test environment set up by the lalsuite_test.am
configuration doesn't modify PATH
to include the $(abs_top_builddir)/bin
(or equivalent) directory, meaning if test scripts reference those scripts, you end up with a situation like this:
========== ../../../../../lalinspiral/gnuscripts/lalsuite_run_uninstalled environment ==========
environment: LAL_TEST_SRCDIR=/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalinspiral/../../../lalinspiral/test/python
environment: OCTAVE_PATH=/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalinspiral/octave:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalinspiral/../../../lalinspiral/octave:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalburst/octave:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalframe/octave:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalsimulation/octave:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalmetaio/octave:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lal/octave
environment: PATH=/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/envs/lalsuite-platform-tests/bin:/opt/conda/condabin:/opt/git-lfs/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin
environment: LAL_DEBUG_LEVEL=msglvl1,memdbg,
environment: CI_PROJECT_PATH=kipp.cannon/lalsuite
environment: LALSUITE_PYTHON_VERSION=3.8
environment: CONDA_ENVS_PATH=/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/envs
environment: CI_CONFIG_PATH=.gitlab-ci.yml
environment: PYTHONPATH=/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalinspiral/python:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalinspiral/../../../lalinspiral/python:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalburst/python:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalframe/python:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalsimulation/python:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalmetaio/python:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lal/python
environment: LAL_TEST_BUILDDIR=/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalinspiral/test/python
environment: LAL_TEST_PKGDATADIR=/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalinspiral/../../../lalinspiral/lib
environment: CMAKE_PREFIX_PATH=:/Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/envs/lalsuite-platform-tests
---------- ../../../../../lalinspiral/gnuscripts/lalsuite_run_uninstalled environment ----------
========== ../../../../../lalinspiral/gnuscripts/lalsuite_run_uninstalled command ==========
/bin/zsh /Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalinspiral/libtool --mode=execute -dlopen /Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalinspiral/lib/liblalinspiral.la -dlopen /Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalburst/lib/liblalburst.la -dlopen /Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalframe/lib/liblalframe.la -dlopen /Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalsimulation/lib/liblalsimulation.la -dlopen /Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lalmetaio/lib/liblalmetaio.la -dlopen /Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lal/lib/support/liblalsupport.la -dlopen /Users/gitlab/builds/mBDmh7i9/0/kipp.cannon/lalsuite/lalsuite-7.5.1/_build/sub/lal/lib/liblal.la /bin/sh '../../../../../lalinspiral/test/python/test_thinca.sh'
---------- ../../../../../lalinspiral/gnuscripts/lalsuite_run_uninstalled command ----------
====== Testing --min-instruments=1 ======
reset thinca_min1.xml.gz
reset brute_min1.xml.gz
../../../../../lalinspiral/test/python/test_thinca.sh: line 15: lalinspiral_thinca: command not found
@karl-wette, @adam-mercer, can you suggest the appropriate modifications to set PATH
in lalsuite_test.am
(or other)?