--- src/test/runTests.sh.orig	2010-12-27 12:14:27.000000000 +0100
+++ src/test/runTests.sh	2011-02-25 21:42:40.000000000 +0100
@@ -1,6 +1,8 @@
 #!/bin/bash
 echo "Kile System Check script..."
 
+export PATH=@TEXPREFIX@:$PATH:@APPLICATIONS_DIR@/KDE4/okular.app/Contents/MacOS/
+
 outfile=$1
 basedir=$2