@@ -107,62 +107,3 @@ nix build --impure -f multiple-outputs.nix --json e --no-link | jq --exit-status
107107 (.drvPath | match(".*multiple-outputs-e.drv")) and
108108 (.outputs | keys == ["a_a", "b"]))
109109'
110-
111- testNormalization () {
112- clearStore
113- outPath=$( nix-build ./simple.nix --no-out-link)
114- test " $( stat -c %Y $outPath ) " -eq 1
115- }
116-
117- testNormalization
118-
119- # https://github.com/NixOS/nix/issues/6572
120- issue_6572_independent_outputs () {
121- nix build -f multiple-outputs.nix --json independent --no-link > $TEST_ROOT /independent.json
122-
123- # Make sure that 'nix build' can build a derivation that depends on both outputs of another derivation.
124- p=$( nix build -f multiple-outputs.nix use-independent --no-link --print-out-paths)
125- nix-store --delete " $p " # Clean up for next test
126-
127- # Make sure that 'nix build' tracks input-outputs correctly when a single output is already present.
128- nix-store --delete " $( jq -r < $TEST_ROOT /independent.json .[0].outputs.first) "
129- p=$( nix build -f multiple-outputs.nix use-independent --no-link --print-out-paths)
130- cmp $p << EOF
131- first
132- second
133- EOF
134- nix-store --delete " $p " # Clean up for next test
135-
136- # Make sure that 'nix build' tracks input-outputs correctly when a single output is already present.
137- nix-store --delete " $( jq -r < $TEST_ROOT /independent.json .[0].outputs.second) "
138- p=$( nix build -f multiple-outputs.nix use-independent --no-link --print-out-paths)
139- cmp $p << EOF
140- first
141- second
142- EOF
143- nix-store --delete " $p " # Clean up for next test
144- }
145- issue_6572_independent_outputs
146-
147-
148- # https://github.com/NixOS/nix/issues/6572
149- issue_6572_dependent_outputs () {
150-
151- nix build -f multiple-outputs.nix --json a --no-link > $TEST_ROOT /a.json
152-
153- # # Make sure that 'nix build' can build a derivation that depends on both outputs of another derivation.
154- p=$( nix build -f multiple-outputs.nix use-a --no-link --print-out-paths)
155- nix-store --delete " $p " # Clean up for next test
156-
157- # Make sure that 'nix build' tracks input-outputs correctly when a single output is already present.
158- nix-store --delete " $( jq -r < $TEST_ROOT /a.json .[0].outputs.second) "
159- p=$( nix build -f multiple-outputs.nix use-a --no-link --print-out-paths)
160- cmp $p << EOF
161- first
162- second
163- EOF
164- nix-store --delete " $p " # Clean up for next test
165- }
166- if isDaemonNewer " 2.12pre0" ; then
167- issue_6572_dependent_outputs
168- fi
0 commit comments