improve test scripts

* validated with shellcheck
* allow to evaluate just one for convenience
* reduce verbosity and improve debugging output
This commit is contained in:
zimbatm committed 2017-12-25 18:00:29 +00:00
1 parent 7dbceec472
commit 8229a43214
2 files changed
+41 -10

No files matched your search

+6 -10
View File
@@ -1,15 +1,11 @@
#!/bin/sh
set -efu
cd "$(dirname "$0")/.." || exit 1
set -e
cd "$(dirname "$0")/.."
echo "### Evaluating all profiles ###"
echo
# shellcheck disable=SC2044
for profile in $(find . -name default.nix); do
echo evaluating $profile >&2
nix-build '<nixpkgs/nixos>' \
-I nixos-config=tests/eval-test.nix \
-I nixos-hardware-profile=$profile \
-A system \
--dry-run
./tests/eval-one.sh "$profile"
done