From abe12a4bad8efd3b270b1026dbd581adf165dae3 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Wed, 27 Oct 2021 09:22:44 -0300 Subject: [PATCH] Makefile: add test-install target --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0fe294734..5172e8386 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -.PHONY: all all-tests test format +.PHONY: all all-tests test test-install format NIXPKGS_REV := nixpkgs-unstable NIX_PATH := nixpkgs=https://github.com/NixOS/nixpkgs/archive/${NIXPKGS_REV}.tar.gz -all: all-tests +all: all-tests test-install all-tests: $(MAKE) test TEST=all @@ -13,5 +13,8 @@ ifndef TEST endif nix-shell --pure tests -I ${NIX_PATH} -A run.${TEST} +test-install: + HOME=$(shell mktemp -d) NIX_PATH=${NIX_PATH} nix-shell . -A install + format: ./format