From 73d4f3102aea375b3a91e9c33eca657ac8a6a93e Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sat, 17 Sep 2022 05:21:53 +0300 Subject: [PATCH] Allow to test python-build separately --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a1e2625e..d7a85a15 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,15 @@ -.PHONY: test test-build +.PHONY: test test-build test-unit test-plugin # Do not pass in user flags to build tests. unexport PYTHON_CFLAGS unexport PYTHON_CONFIGURE_OPTS -test: bats +test: test-unit test-plugin + +test-unit: bats PATH="./bats/bin:$$PATH" test/run + +test-plugin: bats cd plugins/python-build && $(PWD)/bats/bin/bats $${CI:+--tap} test PYTHON_BUILD_ROOT := $(CURDIR)/plugins/python-build