fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Thiago Kenji OkadaMakefile: add test-install targetabe12a4b

master
471 B20 linesraw
1.PHONY: all all-tests test test-install format
2NIXPKGS_REV := nixpkgs-unstable
3NIX_PATH := nixpkgs=https://github.com/NixOS/nixpkgs/archive/${NIXPKGS_REV}.tar.gz
4
5all: all-tests test-install
6
7all-tests:
8	$(MAKE) test TEST=all
9
10test:
11ifndef TEST
12	$(error Use 'make test TEST=<test_name>' to run desired test)
13endif
14	nix-shell --pure tests -I ${NIX_PATH} -A run.${TEST}
15
16test-install:
17	HOME=$(shell mktemp -d) NIX_PATH=${NIX_PATH} nix-shell . -A install
18
19format:
20	./format