tests: Basic tools tester

Requested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
Ben Widawsky
2013-07-11 09:59:46 -07:00
parent f801b92882
commit 89d96a12d6
3 changed files with 23 additions and 0 deletions
+4
View File
@@ -4,6 +4,10 @@ die() {
exit 1
}
do_or_die() {
$@ > /dev/null 2>&1 || (echo "FAIL: $@ ($?)" && exit -1)
}
if [ -d /debug/dri ] ; then
debugfs_path=/debug/dri
fi