5 , writeShellApplication
10 testScript = writeShellApplication {
11 name = "tvbrowser-test-script";
12 runtimeInputs = [ xorg.xwininfo tvbrowser ];
14 function find_tvbrowser_windows {
15 for window_name in java tvbrowser-TVBrowser 'Setup assistant' ; do
16 grep -q "$window_name" "$1" || return 1
20 for _ in {0..900} ; do
21 xwininfo -root -tree \
22 | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d' \
25 if find_tvbrowser_windows window-names ; then
30 find_tvbrowser_windows window-names
36 { buildInputs = [ xvfb-run ]; }
38 HOME=$PWD xvfb-run ${lib.getExe testScript}
39 touch ${placeholder "out"}