From 086eed0e396f2b3dab0439fa70d38143c888551d Mon Sep 17 00:00:00 2001 From: DWesl <22566757+DWesl@users.noreply.github.com> Date: Thu, 30 Jun 2022 08:18:55 -0400 Subject: [PATCH] CI, TST: Check that test plugins don't get installed with DESTDIR This caused problems for packagers (unidata/netcdf-c#2431) --- .github/workflows/run_tests_win_cygwin.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests_win_cygwin.yml b/.github/workflows/run_tests_win_cygwin.yml index 55b7be993..23430b8ae 100644 --- a/.github/workflows/run_tests_win_cygwin.yml +++ b/.github/workflows/run_tests_win_cygwin.yml @@ -13,7 +13,6 @@ jobs: defaults: run: shell: bash -eo pipefail -o igncr "{0}" - timeout-minutes: 30 name: Cygwin-based tests @@ -56,5 +55,15 @@ jobs: - name: (Autotools) Build library and utilities run: make -j8 SHELL=/bin/dash + - name: (Autotools) Test DESTDIR install + run: | + make install DESTDIR=/tmp/pretend-root SHELL=/bin/dash + if [ -d "/tmp/pretend-root/$(pwd)" ]; + then + find /tmp/pretend-root/$(pwd) + if [ $(find /tmp/pretend-root/$(pwd) -type f | wc -l) -gt 0 ]; then exit 1; fi + fi + - name: (Autotools) Build and run tests + timeout-minutes: 30 run: make check -j8 SHELL=/bin/dash