diff options
author | Ingy döt Net <ingy@ingy.net> | 2020-06-01 12:33:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 21:33:39 +0200 |
commit | 00780e83d2a1fe5f8eb9adc1119f285c98ee7226 (patch) | |
tree | 59c22f6c118753946b0838dcbd18e9a52310775c | |
parent | 1008696708b56c27709e6948b419d44e0f1bfb0d (diff) | |
download | libyaml-git-00780e83d2a1fe5f8eb9adc1119f285c98ee7226.tar.gz |
A couple patches to improve test suite support (#191)
* Need newer bash and make for Macos testing
* Allow override of the run-test-suite branch
-rw-r--r-- | .github/workflows/main.yml | 4 | ||||
-rw-r--r-- | Makefile.am | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0bc3941..c2bdef4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,9 @@ jobs: - name: Install software run: | if [[ '${{ matrix.os }}' == macOS-latest ]]; then - brew install automake coreutils + brew install automake bash coreutils make + echo ::add-path::/usr/local/opt/coreutils/libexec/gnubin + echo ::add-path::/usr/local/opt/make/libexec/gnubin fi - name: Fetch branches run: | diff --git a/Makefile.am b/Makefile.am index 95f2faa..45fc485 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,6 +5,8 @@ SUBDIRS = include src . tests EXTRA_DIST = Changes ReadMe.md License CMakeLists.txt doc/doxygen.cfg +LIBYAML_TEST_SUITE_RUN_BRANCH ?= run-test-suite + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = yaml-0.1.pc @@ -31,9 +33,9 @@ test-suite: tests/run-test-suite all test-all: test test-suite tests/run-test-suite: - -git branch --track run-test-suite origin/run-test-suite + -git branch --track $(LIBYAML_TEST_SUITE_RUN_BRANCH) origin/$(LIBYAML_TEST_SUITE_RUN_BRANCH) -git worktree prune - git worktree add $@ run-test-suite + git worktree add $@ $(LIBYAML_TEST_SUITE_RUN_BRANCH) packaging: -git branch --track $@ origin/$@ |