mirror of
https://github.com/gmodena/nix-flatpak.git
synced 2024-11-30 23:13:09 +03:00
16 lines
395 B
Bash
16 lines
395 B
Bash
|
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."
|