Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jun 16, 2020
1 parent 4e633a6 commit 1d89602
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- run: |
git clean -d -x -f
rm -fr tests/run-test-suite
rm -fr libyaml-test
git worktree prune
- name: Compiler version
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ config.h*
stamp-h1
!config/config.h.in
/packaging/
/test-suite/
/libyaml-test/
/tests/run-dumper
/tests/run-emitter
/tests/run-emitter-test-suite
Expand Down
5 changes: 2 additions & 3 deletions .makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ MAKE_TARGETS := \
test-all \
test-suite \

# SOURCE_FILES := $(shell find . | grep '\.c$$')
SOURCE_FILES := $(shell find test-suite | grep '\.c$$')
SOURCE_FILES := $(shell find . | grep '\.c$$')
ifneq ($(shell which gindent),)
INDENT := gindent
else
Expand Down Expand Up @@ -59,4 +58,4 @@ indent:

distclean purge:
git clean -dxf -e GNUmakefile
rm -fr test-suite
rm -fr libyaml-test
24 changes: 13 additions & 11 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ EXTRA_DIST = Changes ReadMe.md License CMakeLists.txt doc/doxygen.cfg

export LIBYAML_ROOT := $(PWD)

LIBYAML_TEST_SUITE_REPO ?= https://github.com/yaml/libyaml-test-suite
# LIBYAML_TEST_SUITE_COMMIT ?= 1f1b00ab6763647d05e44200b63fa62f1d2269a3
LIBYAML_TEST_REPO ?= https://github.com/yaml/libyaml-test
# LIBYAML_TEST_COMMIT ?= 1f1b00ab6763647d05e44200b63fa62f1d2269a3

# NOTE: Uncomment to use a local copy of libyaml-test-suite
# LIBYAML_TEST_SUITE_REPO := ../libyaml-test-suite/.git
LIBYAML_TEST_SUITE_COMMIT := devel
# NOTE: Uncomment to use a local copy of libyaml-test
# LIBYAML_TEST_REPO := ../libyaml-test/.git
LIBYAML_TEST_COMMIT := origin/devel

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = yaml-0.1.pc
Expand All @@ -22,10 +22,10 @@ maintainer-clean-local:
-find ${builddir} -name Makefile.in -exec rm -f '{}' ';'

distclean-local:
rm -fr test-suite packaging
rm -fr libyaml-test packaging
-git worktree prune

.PHONY: bootstrap test-suite
.PHONY: bootstrap libyaml-test
bootstrap: maintainer-clean
./bootstrap
./configure
Expand All @@ -36,10 +36,12 @@ test-all: test test-suite
test: all
make -C tests check-TESTS

test-suite: all
-git clone $(LIBYAML_TEST_SUITE_REPO) $@
( cd $@ && git reset --hard $(LIBYAML_TEST_SUITE_COMMIT) )
make -C $@ test
test-suite: libyaml-test all
make -C $< $@

libyaml-test:
-git clone $(LIBYAML_TEST_REPO) $@
( cd $@ && git reset --hard $(LIBYAML_TEST_COMMIT) )

docker-dist: packaging
make -C $</docker libyaml-dist
Expand Down
2 changes: 1 addition & 1 deletion tests/run-all-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ main() {

clean() {
git clean -d -x -f
rm -fr test-suite
rm -fr libyaml-test
}

main "$@"

0 comments on commit 1d89602

Please sign in to comment.