mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-06 07:53:30 +01:00
improve test scripts
* validated with shellcheck * allow to evaluate just one for convenience * reduce verbosity and improve debugging output
This commit is contained in:
1 parent
7dbceec472
commit
8229a43214
2 files changed
+41
-10
No files matched your search
+6
-10
@@ -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
|
||||
Reference in new issue
Block a user