work outside of the srctree
authorMike Frysinger <vapier@gentoo.org>
Sat, 1 Apr 2006 20:38:22 +0000 (20:38 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 1 Apr 2006 20:38:22 +0000 (20:38 -0000)
testsuite/all_sourcecode.tests

index be1d7f395db74c729a58d97847d7bc47482ed8fe..ac10a89bc5bd1e06a4bea5a969107e27257bab6f 100755 (executable)
@@ -4,12 +4,13 @@
 # Copyright 2006 by Mike Frysinger <vapier@gentoo.org>
 # Licensed under GPL v2, see file LICENSE for details.
 
+[ -n "$srcdir" ] || srcdir=$(pwd)
 . testing.sh
 
 # verify the applet order is correct in applets.h, otherwise
 # applets won't be called properly.
 sed -n -e '/^USE_[A-Z]*(APPLET(/{s:.*(::;s:,.*::;s:"::g;p}' \
-       ../include/applets.h > applet.order.current
+       $srcdir/../include/applets.h > applet.order.current
 LC_ALL=C sort applet.order.current > applet.order.correct
 testing "Applet order" "diff -u applet.order.current applet.order.correct" "" "" ""
 rm -f applet.order.current applet.order.correct