about summary refs log tree commit diff
path: root/third_party/nix/tests/logging.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/tests/logging.sh')
-rw-r--r--third_party/nix/tests/logging.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/nix/tests/logging.sh b/third_party/nix/tests/logging.sh
new file mode 100644
index 000000000000..c894ad3ff079
--- /dev/null
+++ b/third_party/nix/tests/logging.sh
@@ -0,0 +1,15 @@
+source common.sh
+
+clearStore
+
+path=$(nix-build dependencies.nix --no-out-link)
+
+# Test nix-store -l.
+[ "$(nix-store -l $path)" = FOO ]
+
+# Test compressed logs.
+clearStore
+rm -rf $NIX_LOG_DIR
+(! nix-store -l $path)
+nix-build dependencies.nix --no-out-link --compress-build-log
+[ "$(nix-store -l $path)" = FOO ]