mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Add a test for 'nix store copy-log' and 'nix log'
This commit is contained in:
parent
3876238546
commit
5fe1ec8a05
1 changed files with 11 additions and 0 deletions
|
@ -14,6 +14,17 @@ outPath=$(nix-build dependencies.nix --no-out-link)
|
||||||
|
|
||||||
nix copy --to file://$cacheDir $outPath
|
nix copy --to file://$cacheDir $outPath
|
||||||
|
|
||||||
|
# Test copying build logs to the binary cache.
|
||||||
|
nix log --store file://$cacheDir $outPath 2>&1 | grep 'is not available'
|
||||||
|
nix store copy-log --to file://$cacheDir $outPath
|
||||||
|
nix log --store file://$cacheDir $outPath | grep FOO
|
||||||
|
rm -rf $TEST_ROOT/var/log/nix
|
||||||
|
nix log $outPath 2>&1 | grep 'is not available'
|
||||||
|
nix log --substituters file://$cacheDir $outPath | grep FOO
|
||||||
|
|
||||||
|
# Test copying build logs from the binary cache.
|
||||||
|
nix store copy-log --from file://$cacheDir $(nix-store -qd $outPath)
|
||||||
|
nix log $outPath | grep FOO
|
||||||
|
|
||||||
basicDownloadTests() {
|
basicDownloadTests() {
|
||||||
# No uploading tests bcause upload with force HTTP doesn't work.
|
# No uploading tests bcause upload with force HTTP doesn't work.
|
||||||
|
|
Loading…
Reference in a new issue