1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 10:19:48 +01:00

Makefile: init (#2351)

The idea of this file is to make it easier to run tests. It will ensure
that the tests are running with the correct NIX_PATH (pointing it to
e.g.: unstable), and also allowing it to run either one or all tests.
This commit is contained in:
Thiago Kenji Okada 2021-10-01 00:49:45 -03:00 committed by GitHub
parent 52e84a040e
commit 66d9dbfa36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

2
.github/CODEOWNERS vendored
View file

@ -361,3 +361,5 @@
/modules/xsession.nix @rycee
/modules/services/volnoti.nix @IvanMalison
Makefile @thiagokokada

13
Makefile Normal file
View file

@ -0,0 +1,13 @@
.PHONY: all all-tests test
NIX_PATH := nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz
all: all-tests
all-tests:
$(MAKE) test TEST=all
test:
ifndef TEST
$(error Use 'make test TEST=<test_name>' to run desired test)
endif
nix-shell --pure tests -I ${NIX_PATH} -A run.${TEST}