test: add test nixosSearch

This checks that creating module docs for search.nixos.org succceeds.
Errors can happen when complex `default` values can't be evaluated
or on malformed Docbook XML in descriptions.
This commit is contained in:
Erik Arvstedt 2021-12-08 04:07:32 +01:00
parent 77d8c00c53
commit eaf98f92db
No known key found for this signature in database
GPG key ID: 33312B944DD97846
4 changed files with 71 additions and 0 deletions

View file

@ -26,11 +26,16 @@ if [[ ${1:-} != -f ]] && ! git diff --quiet ../flake.{nix,lock}; then
exit 1
fi
echo "Updating flake 'nixos-search'"
nix flake update ../test/nixos-search
echo
versions=$(nix eval --json -f update-flake.nix versions)
## Uncomment the following to generate a version change message for testing
# versions=$(echo "$versions" | sed 's|1|0|g')
echo "Updating main flake"
nix flake update ..
echo