diff options
author | Ingy döt Net <ingy@ingy.net> | 2016-12-14 20:56:57 +0100 |
---|---|---|
committer | Ingy döt Net <ingy@ingy.net> | 2016-12-17 14:50:24 -0800 |
commit | 26b098f267b94476fa5592e99464d71b64fc0211 (patch) | |
tree | e961309074b8902de45815e085aa24a80a6ce1a4 /Makefile.am | |
parent | d688ead5eb73d6f2dd4d3ccd4c988b3320322ee2 (diff) | |
download | libyaml-git-26b098f267b94476fa5592e99464d71b64fc0211.tar.gz |
Add Makefile support for yaml-test-suite
Add `test-suite` rule to Makefile. This test clones the libyaml-test
repo (which then clones the libyaml-parser and libyaml-emitter repos)
and calls `make test` in it. That in turn clone yaml/yaml-test suite.
Normally the subtests will clone the latest libyaml, but this test
passes the current libyaml via an environment variable.
Also add `test-all` to run this together with normal `make test` rule.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index e6dd92c..1b47f33 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,9 +12,20 @@ maintainer-clean-local: -rm -f aclocal.m4 config.h.in configure config/* -find ${builddir} -name Makefile.in -exec rm -f '{}' ';' +distclean-local: + -rm -fr libyaml-test + .PHONY: bootstrap bootstrap: maintainer-clean ./bootstrap test: all make -C tests check-TESTS + +test-suite: libyaml-test + (export LIBYAML_DIR=$$PWD; make -C $< test) + +libyaml-test: + git clone https://github.com/yaml/$@ + +test-all: test test-suite |