]> andersk Git - libyaml.git/blob - tests/run-test-suite/Makefile
bdf89f68103b1322558672e356f2f9502ee66e68
[libyaml.git] / tests / run-test-suite / Makefile
1 .PHONY: test
2 GITHUB_ORG_URI := https://github.com/yaml
3 TEST_SUITE_URL := $(GITHUB_ORG_URI)/yaml-test-suite
4 LIBYAML_DIR ?= $(PWD)/libyaml-parser-emitter/libyaml
5
6 default: help
7
8 help:
9         @echo 'test  - Run the tests'
10         @echo 'clean - Remove generated files'
11         @echo 'help  - Show help'
12
13 # Depends on parser and emitter but, building parser will also build emitter.
14 # Building twice makes things fail. Note: Some environments like on OS X, the
15 # shell resets the {DY,}LD_LIBRARY_PATH vars, so we work around it like so:
16 test: data src/libyaml-parser
17         (export MY_LD_LIBRARY_PATH=$(LIBYAML_DIR)/src/.libs; prove -lv test)
18
19 clean:
20         rm -fr data
21
22 data:
23         git clone $(TEST_SUITE_URL) $@ --branch=$@
24
25 %/libyaml-parser %/libyaml-emitter: %
26         (cd $<; make build)
27
28 libyaml-parser-emitter:
29         git clone $(GITHUB_ORG_URI)/$@ $@
This page took 0.022716 seconds and 3 git commands to generate.