I have as tests both C and shell source files. Meson unit tests are expected to be run from build directory. Compiled binaries from my C sources I get copied into build directory automatically (specified as executable()), how to copy there shell scripts?
Or should I run / source them from source directory, e.g.
test = join_paths(meson.source_root(), 'tests/run.sh')
run_command(test, "--foo", "bar")
Or use find_program()?
test = find_program('run.sh')
run_command(test, "--foo", "bar")