]> andersk Git - libyaml.git/commitdiff
Add Makefile support for yaml-test-suite
authorIngy döt Net <ingy@ingy.net>
Wed, 14 Dec 2016 19:56:57 +0000 (20:56 +0100)
committerIngy döt Net <ingy@ingy.net>
Sat, 17 Dec 2016 22:50:24 +0000 (14:50 -0800)
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.

Makefile.am

index e6dd92ca404311f269515dd4c9adbbac568dc91b..1b47f331f344eb5cde88d2ee9c884eea218c24da 100644 (file)
@@ -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
This page took 0.428243 seconds and 5 git commands to generate.