From 2e52a562ff8799da5a281f062306b32a77de5e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 11 Sep 2024 13:41:54 +0200 Subject: [PATCH] Install plugin during testing --- .gitignore | 1 + Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 37ba3c1..b9641dc 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ docs-partials/ docs.zip vendor/ version.go +.install/ diff --git a/Makefile b/Makefile index ebb3b85..faf134d 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,8 @@ check: plugin-check acceptance-test acceptance-test: export PKR_VAR_appledb_test_path = $(PROJECT_DIR)/datasource/test-fixtures/ acceptance-test: export PACKER_ACC = 1 -acceptance-test: export PACKER_PLUGIN_PATH = $(PROJECT_DIR) -acceptance-test: build +acceptance-test: export PACKER_PLUGIN_PATH = $(PROJECT_DIR)/.install +acceptance-test: install @go test -count 1 -v $(shell find . | grep _test.go) -timeout=120m plugin-check: build