mirror of
https://github.com/gmodena/nix-flatpak.git
synced 2024-11-28 08:36:27 +03:00
1cba177bb0
* 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.
16 lines
395 B
Bash
Executable File
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."
|