diff options
author | sanine <sanine.not@pm.me> | 2022-10-12 12:03:23 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-10-12 12:03:23 -0500 |
commit | 530ffd0b7d3c39757b20f00716e486b5caf89aff (patch) | |
tree | 76b35fdf57317038acf6b828871f6ae25fce2ebe /libs/cairo-1.16.0/test/run-cairo-test-suite.sh | |
parent | 3dbe9332e47c143a237db12440f134caebd1cfbe (diff) |
add cairo
Diffstat (limited to 'libs/cairo-1.16.0/test/run-cairo-test-suite.sh')
-rwxr-xr-x | libs/cairo-1.16.0/test/run-cairo-test-suite.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/cairo-1.16.0/test/run-cairo-test-suite.sh b/libs/cairo-1.16.0/test/run-cairo-test-suite.sh new file mode 100755 index 0000000..567d2b1 --- /dev/null +++ b/libs/cairo-1.16.0/test/run-cairo-test-suite.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -m + +if `which gnome-screensaver-command`; then + gnome-screensaver-command -i -n "cairo-test-suite" -r "Cairo needs to read back from the screen in order to test rendering to xlib" & + pid=$! + + restore_screensaver() { kill $pid; } +else + restore_screensaver() { :; } +fi + +trap cleanup SIGINT SIGTERM + +./cairo-test-suite "$*" + +restore_screensaver |