nix-flatpak/test.sh
Gabriele Modena 1cba177bb0
remotes: add gpg-import option. (#91)
* remotes: add gpg-import option.

Adds an option to declare imports of a GPG key from file.
Refactor remotes helper functions in modules/remotes.nix.
2024-10-28 10:45:12 +01:00

16 lines
395 B
Bash
Executable File

cd tests/
test_count=0
for test_file in *-test.nix; do
echo "Collecting results for... ${test_file}"
result=$(nix eval --show-trace --impure --expr "import ./${test_file} {}")
if [ "$result" != "[ ]" ]; then
echo "Test failed: Expected [], but got $result in $test_file"
exit 1
fi
((test_count++))
done
echo "All tests in ${test_count} suites passed."