From eed82eb335afc010cafa14aca3b049ab0e98311c Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Tue, 9 May 2023 23:17:54 -0400 Subject: [tests] tests/prepare.sh comment w/ alt build root tests will fail to run from an alternate build root on platforms on which cp -n is not supported, such as NetBSD and OpenBSD --- tests/prepare.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/prepare.sh') diff --git a/tests/prepare.sh b/tests/prepare.sh index c8e70da7..873fd801 100755 --- a/tests/prepare.sh +++ b/tests/prepare.sh @@ -34,11 +34,14 @@ cp "${srcdir}/docroot/"*.html \ "${srcdir}/docroot/"*.txt \ "${tmpdir}/servers/www.example.org/pages/" +# copy configs to alternate build root, if alternate build root is used +# (tests will fail to run from an alternate build root on platforms +# on which cp -n is not supported, such as NetBSD and OpenBSD) cp -n "${srcdir}/"*.conf \ "${srcdir}/lighttpd.user" \ "${srcdir}/lighttpd.htpasswd" \ "${srcdir}/var-include-sub.conf" \ - "${top_builddir}/tests/" || true + "${top_builddir}/tests/" 2>/dev/null || true # create some content touch "${tmpdir}/servers/www.example.org/pages/image.jpg" \ -- cgit v1.2.1