2004-05-04 15:15:30 +03:00
|
|
|
TEST_ROOT = $(shell pwd)/test-tmp
|
|
|
|
|
2004-05-04 20:04:17 +03:00
|
|
|
extra1 = $(TEST_ROOT)/shared
|
|
|
|
|
2004-05-04 15:15:30 +03:00
|
|
|
TESTS_ENVIRONMENT = TEST_ROOT=$(TEST_ROOT) \
|
|
|
|
NIX_STORE_DIR=$(TEST_ROOT)/store \
|
|
|
|
NIX_DATA_DIR=$(TEST_ROOT)/data \
|
2005-02-01 19:50:48 +02:00
|
|
|
NIX_LOCALSTATE_DIR=$(TEST_ROOT)/var \
|
|
|
|
NIX_LOG_DIR=$(TEST_ROOT)/var/log/nix \
|
|
|
|
NIX_STATE_DIR=$(TEST_ROOT)/var/nix \
|
2004-05-04 15:15:30 +03:00
|
|
|
NIX_DB_DIR=$(TEST_ROOT)/db \
|
2005-02-15 11:39:12 +02:00
|
|
|
NIX_CONF_DIR=$(TEST_ROOT)/etc \
|
2005-01-25 19:08:52 +02:00
|
|
|
NIX_BIN_DIR=$(TEST_ROOT)/bin \
|
|
|
|
NIX_LIBEXEC_DIR=$(TEST_ROOT)/bin \
|
|
|
|
REAL_BIN_DIR=$(bindir) \
|
|
|
|
REAL_LIBEXEC_DIR=$(libexecdir) \
|
|
|
|
REAL_LOCALSTATE_DIR=$(localstatedir) \
|
|
|
|
REAL_DATA_DIR=$(datadir) \
|
|
|
|
REAL_STORE_DIR=$(storedir) \
|
2004-08-19 12:09:09 +03:00
|
|
|
NIX_BUILD_HOOK= \
|
2005-01-25 19:08:52 +02:00
|
|
|
PERL=$(perl) \
|
2004-05-04 15:15:30 +03:00
|
|
|
TOP=$(shell pwd)/.. \
|
2004-05-04 20:04:17 +03:00
|
|
|
SHARED=$(extra1) \
|
2004-10-27 16:12:58 +03:00
|
|
|
aterm_bin=$(aterm_bin) \
|
2004-10-27 15:41:53 +03:00
|
|
|
$(SHELL) -e
|
2004-05-04 15:15:30 +03:00
|
|
|
|
|
|
|
simple.sh: simple.nix
|
2004-05-04 16:22:33 +03:00
|
|
|
dependencies.sh: dependencies.nix
|
2004-05-04 16:56:30 +03:00
|
|
|
locking.sh: locking.nix
|
2004-05-04 20:04:17 +03:00
|
|
|
parallel.sh: parallel.nix
|
2004-05-12 12:35:51 +03:00
|
|
|
build-hook.sh: build-hook.nix
|
2005-01-25 15:00:12 +02:00
|
|
|
substitutes.sh: substitutes.nix
|
|
|
|
substitutes2.sh: substitutes2.nix
|
2004-06-28 13:42:57 +03:00
|
|
|
fallback.sh: fallback.nix
|
2005-01-25 19:08:52 +02:00
|
|
|
nix-push.sh: dependencies.nix
|
|
|
|
nix-pull.sh: dependencies.nix
|
2005-01-27 19:48:50 +02:00
|
|
|
gc.sh: dependencies.nix
|
2005-02-01 00:01:55 +02:00
|
|
|
gc-concurrent.sh: gc-concurrent.nix gc-concurrent2.nix
|
2006-02-08 16:32:06 +02:00
|
|
|
user-envs.sh: user-envs.nix
|
2004-05-04 15:15:30 +03:00
|
|
|
|
2005-02-01 00:23:49 +02:00
|
|
|
TESTS = init.sh hash.sh lang.sh simple.sh dependencies.sh locking.sh parallel.sh \
|
|
|
|
build-hook.sh substitutes.sh substitutes2.sh fallback.sh nix-push.sh gc.sh \
|
2006-02-08 16:32:06 +02:00
|
|
|
gc-concurrent.sh verify.sh nix-pull.sh referrers.sh user-envs.sh
|
2004-05-04 16:56:30 +03:00
|
|
|
|
2004-05-11 21:05:44 +03:00
|
|
|
XFAIL_TESTS =
|
2004-05-04 15:15:30 +03:00
|
|
|
|
2004-10-27 16:00:31 +03:00
|
|
|
langtests:
|
2004-10-27 15:41:53 +03:00
|
|
|
$(TESTS_ENVIRONMENT) ./lang.sh
|
|
|
|
|
2004-05-04 15:15:30 +03:00
|
|
|
include ../substitute.mk
|
|
|
|
|
2004-05-04 15:45:04 +03:00
|
|
|
EXTRA_DIST = $(TESTS) \
|
2004-05-04 16:22:33 +03:00
|
|
|
simple.nix.in simple.builder.sh \
|
2004-05-04 16:56:30 +03:00
|
|
|
dependencies.nix.in dependencies.builder*.sh \
|
2004-05-04 20:04:17 +03:00
|
|
|
locking.nix.in locking.builder.sh \
|
2004-05-12 12:35:51 +03:00
|
|
|
parallel.nix.in parallel.builder.sh \
|
2004-06-21 15:20:47 +03:00
|
|
|
build-hook.nix.in build-hook.hook.sh \
|
2005-01-27 19:48:50 +02:00
|
|
|
substitutes.nix.in substituter.sh \
|
|
|
|
substitutes2.nix.in substituter2.sh \
|
2005-01-28 22:36:46 +02:00
|
|
|
gc-concurrent.nix.in gc-concurrent.builder.sh \
|
2005-02-01 11:23:38 +02:00
|
|
|
gc-concurrent2.nix.in gc-concurrent2.builder.sh \
|
2005-01-27 19:48:50 +02:00
|
|
|
fallback.nix.in \
|
2006-02-12 23:00:36 +02:00
|
|
|
user-envs.nix.in user-envs.builder.sh \
|
2004-10-27 15:41:53 +03:00
|
|
|
$(wildcard lang/*.nix) $(wildcard lang/*.exp)
|