aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-04-01 20:38:22 +0000
committerMike Frysinger <vapier@gentoo.org>2006-04-01 20:38:22 +0000
commit819b56b64a5ac838512825a04d708acd948dfc0e (patch)
tree462aad79f79ddb2bebabb946728f1bd3b7006b0a /testsuite
parent03e78e75f326c409e5972e8ebb6c376e407cefc4 (diff)
downloadbusybox-819b56b64a5ac838512825a04d708acd948dfc0e.tar.gz
work outside of the srctree
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/all_sourcecode.tests3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/all_sourcecode.tests b/testsuite/all_sourcecode.tests
index be1d7f395..ac10a89bc 100755
--- a/testsuite/all_sourcecode.tests
+++ b/testsuite/all_sourcecode.tests
@@ -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