-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
27 lines (20 loc) · 881 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: test unit-test integration-test submodules
MINIMAL_INIT = tests/unit/minimal_init.lua
PLENARY_OPTS = {minimal_init='${MINIMAL_INIT}', sequential=true, timeout=5000}
GTEST_TAG ?= main
export GTEST_TAG
export GTEST_PATH
test: unit-test integration-test ;
unit-test:
nvim --headless -c "PlenaryBustedDirectory tests/unit ${PLENARY_OPTS}"
integration-test-all:
@for gtest_tag in release-1.10.0 release-1.11.0 release-1.12.1 v1.13.0 v1.14.0 main; do \
echo "Running integration tests with gtest tag $$gtest_tag"; \
($(MAKE) clean-tests && $(MAKE) integration-test GTEST_TAG=$$gtest_tag) || exit 1; \
done
integration-test: build-tests
nvim --headless -c "PlenaryBustedDirectory tests/integration ${PLENARY_OPTS}"
build-tests: tests/integration/cpp
$(MAKE) -C tests/integration/cpp build
clean-tests: tests/integration/cpp
$(MAKE) -C tests/integration/cpp clean