6 # nix-build -A nixosTests.activation-lib
8 cd "$(dirname "${BASH_SOURCE[0]}")"
14 # find failed statement
17 while t
="$(caller $i)"; do
20 echo " $file:$line" >&2
24 printf "\033[1;31mtest failed\033[0m\n" >&2
31 (warn hi
, this works
>/dev
/null
) 2>&1 |
grep -E $
'.*warning:.* hi, this works' >/dev
/null
34 printf "\033[1;32mok\033[0m\n"