Restore some things lost in the rebase

This commit is contained in:
John Ericson 2024-01-17 13:01:59 -05:00 committed by Théophane Hufschmitt
parent fb7251915b
commit 9e79d2d1b9
10 changed files with 19 additions and 31 deletions

View File

@ -42,6 +42,7 @@ endif
ifeq ($(ENABLE_FUNCTIONAL_TESTS), yes) ifeq ($(ENABLE_FUNCTIONAL_TESTS), yes)
makefiles += \ makefiles += \
tests/functional/local.mk \ tests/functional/local.mk \
tests/functional/gc-external-daemon/local.mk \
tests/functional/ca/local.mk \ tests/functional/ca/local.mk \
tests/functional/dyn-drv/local.mk \ tests/functional/dyn-drv/local.mk \
tests/functional/test-libstoreconsumer/local.mk \ tests/functional/test-libstoreconsumer/local.mk \

View File

@ -156,7 +156,13 @@
name = "nix-find-roots-${version}"; name = "nix-find-roots-${version}";
inherit version; inherit version;
src = "${self}/src/nix-find-roots"; src = fileset.toSource {
root = ./src/nix-find-roots;
fileset = /*fileset.intersect baseFiles (*/fileset.unions [
./src/nix-find-roots/main.cc
./src/nix-find-roots/lib
]/*)*/;
};
CXXFLAGS = prev.lib.optionalString prev.stdenv.hostPlatform.isStatic "-static"; CXXFLAGS = prev.lib.optionalString prev.stdenv.hostPlatform.isStatic "-static";
@ -384,7 +390,9 @@
default = nix; default = nix;
} // (lib.optionalAttrs (builtins.elem system linux64BitSystems) { } // (lib.optionalAttrs (builtins.elem system linux64BitSystems) {
nix-static = nixpkgsFor.${system}.static.nix; nix-static = nixpkgsFor.${system}.static.nix;
nix-find-roots = nixpkgsFor.${system}.static.nix-find-roots;
inherit (nixpkgsFor.${system}.static) nix-find-roots;
dockerImage = dockerImage =
let let
pkgs = nixpkgsFor.${system}.native; pkgs = nixpkgsFor.${system}.native;

View File

@ -2,6 +2,7 @@
#include "globals.hh" #include "globals.hh"
#include "local-store.hh" #include "local-store.hh"
#include "finally.hh" #include "finally.hh"
#include "find-roots.hh"
#include "unix-domain-socket.hh" #include "unix-domain-socket.hh"
#include "signals.hh" #include "signals.hh"
@ -9,7 +10,6 @@
// For shelling out to lsof // For shelling out to lsof
# include "processes.hh" # include "processes.hh"
#endif #endif
#include "find-roots.hh"
#include <functional> #include <functional>
#include <queue> #include <queue>

View File

@ -0,0 +1,7 @@
gc-external-daemon-tests := \
$(d)/gc-auto.sh \
$(d)/gc.sh \
$(d)/gc-concurrent.sh \
$(d)/gc-runtime.sh
install-tests-groups += gc-external-daemon

View File

@ -18,7 +18,6 @@ nix_tests = \
flakes/flake-in-submodule.sh \ flakes/flake-in-submodule.sh \
gc.sh \ gc.sh \
nix-collect-garbage-d.sh \ nix-collect-garbage-d.sh \
gc-external-daemon/gc.sh \
remote-store.sh \ remote-store.sh \
legacy-ssh-store.sh \ legacy-ssh-store.sh \
lang.sh \ lang.sh \
@ -26,21 +25,18 @@ nix_tests = \
experimental-features.sh \ experimental-features.sh \
fetchMercurial.sh \ fetchMercurial.sh \
gc-auto.sh \ gc-auto.sh \
gc-external-daemon/gc-auto.sh \
user-envs.sh \ user-envs.sh \
user-envs-migration.sh \ user-envs-migration.sh \
binary-cache.sh \ binary-cache.sh \
multiple-outputs.sh \ multiple-outputs.sh \
nix-build.sh \ nix-build.sh \
gc-concurrent.sh \ gc-concurrent.sh \
gc-external-daemon/gc-concurrent.sh \
repair.sh \ repair.sh \
fixed.sh \ fixed.sh \
export-graph.sh \ export-graph.sh \
timeout.sh \ timeout.sh \
fetchGitRefs.sh \ fetchGitRefs.sh \
gc-runtime.sh \ gc-runtime.sh \
gc-external-daemon/gc-runtime.sh \
tarball.sh \ tarball.sh \
fetchGit.sh \ fetchGit.sh \
fetchurl.sh \ fetchurl.sh \

View File

@ -1,6 +0,0 @@
source ../common.sh
enableFeatures "external-gc-daemon"
echo "gc-socket-path = $NIX_GC_SOCKET_PATH" >> "$NIX_CONF_DIR"/nix.conf
startGcDaemon

View File

@ -1,5 +0,0 @@
source common.sh
cd ..
source ./gc-auto.sh

View File

@ -1,4 +0,0 @@
source common.sh
cd ..
source ./gc-concurrent.sh

View File

@ -1,5 +0,0 @@
source common.sh
cd ..
source ./gc-runtime.sh

View File

@ -1,4 +0,0 @@
source common.sh
cd ..
source ./gc.sh