about summary refs log tree commit diff
path: root/tests/logging.sh
blob: d38136531ba006ea6c472f8ed4bb72da8b20f79a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 --option compress-build-log true
[ "$(nix-store -l $path)" = FOO ]