Skip to content

Commit

Permalink
chore(tooling): Exclude disabled tests from previews (and hence cover…
Browse files Browse the repository at this point in the history
…age)
  • Loading branch information
alerque committed Jan 26, 2023
1 parent b2970ee commit 4ab99e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -31,6 +31,7 @@ _DISABLEDSRCS += tests/variations-%
endif
export DISABLEDSRCS ?= $(filter $(_DISABLEDSRCS),$(_TESTSRCS))
TESTSRCS ?= $(filter-out $(DISABLEDSRCS),$(_TESTSRCS))
TESTPREVIEWS ?= $(addsuffix .pdf,$(basename $(filter-out $(_DISABLEDSRCS),$(_TESTPREVIEWS))))

# Since we can't use $(wildcard ...) in automake file lists, we generate a file
# with a script that builds our dynamic file lists instead. This is tricky,
Expand Down
3 changes: 1 addition & 2 deletions build-aux/list-dist-files.sh.in
Expand Up @@ -22,15 +22,14 @@ finder tests -maxdepth 1 -name '*.xml'
finder tests -maxdepth 1 -name '*.lua'
finder tests -maxdepth 1 -name '*.nil'

printf '\n%s' "TESTPREVIEWS ?="
printf '\n%s' "_TESTPREVIEWS ?="
{
finder tests -maxdepth 1 -name '*.sil'
finder tests -maxdepth 1 -name '*.xml'
finder tests -maxdepth 1 -name '*.lua'
finder tests -maxdepth 1 -name '*.nil'
} |
xargs @GREP@ -L KNOWNBAD |
@SED@ 's/\....$/.pdf/' |
xargs printf ' %s'

printf '\n%s' "BUSTEDSPECS ?="
Expand Down

0 comments on commit 4ab99e5

Please sign in to comment.