Skip to content

Commit

Permalink
CI, TST: Check that test plugins don't get installed with DESTDIR
Browse files Browse the repository at this point in the history
This caused problems for packagers (Unidata#2431)
  • Loading branch information
DWesl committed Oct 12, 2022
1 parent a69308e commit 086eed0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/run_tests_win_cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
defaults:
run:
shell: bash -eo pipefail -o igncr "{0}"
timeout-minutes: 30

name: Cygwin-based tests

Expand Down Expand Up @@ -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

0 comments on commit 086eed0

Please sign in to comment.