aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/dyn-drv/old-daemon-error-hack.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/dyn-drv/old-daemon-error-hack.sh')
-rw-r--r--tests/functional/dyn-drv/old-daemon-error-hack.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functional/dyn-drv/old-daemon-error-hack.sh b/tests/functional/dyn-drv/old-daemon-error-hack.sh
new file mode 100644
index 000000000..43b049973
--- /dev/null
+++ b/tests/functional/dyn-drv/old-daemon-error-hack.sh
@@ -0,0 +1,11 @@
+# Purposely bypassing our usual common for this subgroup
+source ../common.sh
+
+# Need backend to support text-hashing too
+isDaemonNewer "2.18.0pre20230906" && skipTest "Daemon is too new"
+
+enableFeatures "ca-derivations dynamic-derivations"
+
+restartDaemon
+
+expectStderr 1 nix-instantiate --read-write-mode ./old-daemon-error-hack.nix | grepQuiet "the daemon is too old to understand dependencies on dynamic derivations"