summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIngy döt Net <ingy@ingy.net>2020-06-01 10:31:58 -0700
committerIngy döt Net <ingy@ingy.net>2020-06-01 11:19:43 -0700
commit551356de1bc8ef431fcd1b32624bec0fa1612b09 (patch)
tree491938f5a1d6c95e94afdd677716d15c257d2db5 /Makefile
parentabba6f784ef213769be4d4acedb7197a924c5c26 (diff)
downloadlibyaml-git-551356de1bc8ef431fcd1b32624bec0fa1612b09.tar.gz
Support a default environmentrun-test-suite-2
The env files were renamed to be more obvious. Now pin-* files are symlinks to env-* files. If a pinning can't be found using the current mainline commit, we use env/default default which is a symlink to the most recent. This will probably work most of the time. A big warning box will be printed showing what happened and where to get more info. To try this out: git checkout ingy.test-suite-support export LIBYAML_TEST_SUITE_RUN_BRANCH=run-test-suite-2 ln -fs .makefile GNUmakefile make distclean make test-suite
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d338e8c..d6b01a2 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,11 @@ test: data
[[ "$(debug)" ]] && export LIBYAML_TEST_SUITE_DEBUG=1
export LIBYAML_TEST_SUITE_ENV=$$(./lookup env)
[[ $$LIBYAML_TEST_SUITE_ENV ]] || exit 1
- prove -v test/
+ set +ex
+ (set -x; prove -v test/)
+ if [[ $$LIBYAML_TEST_SUITE_ENV == env/default ]]; then
+ ./lookup default-warning
+ fi
test-all:
prove -v test/test-all.sh