summaryrefslogtreecommitdiffstats
path: root/testsuite/configure
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-31 13:54:41 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-31 13:58:38 -0400
commit2c279bc4231e44dba80e5fdb10aa1626e412eab3 (patch)
treec931b7a898830dea6684b091e9f2c2c9585d241c /testsuite/configure
parent5b8642a208b614769f934c6a4ce2991658025a57 (diff)
downloadsystemtap-steved-2c279bc4231e44dba80e5fdb10aa1626e412eab3.tar.gz
systemtap-steved-2c279bc4231e44dba80e5fdb10aa1626e412eab3.tar.xz
systemtap-steved-2c279bc4231e44dba80e5fdb10aa1626e412eab3.zip
reorganize app tests; rewrite tcl as sample of improvements
* testsuite/configure.ac (--enable-testapps): New option. * testsuite/Makefile.am (TESTAPPS): Pass to dejagnu. * testsuite/systemtap.base/{xulrunner,tcl,mysql,postgres}: Moved under new systemtap.apps/ subdirectory. * testsuite/systemtap.apps/stap-tcl.sh: New file to build tcl. * testsuite/systemtap.apps/stap-tcl.stp: New file to test tcl. * testsuite/systemtap.apps/tcl.exp: New simplified test driver. * dtrace.in: Disable STAP_HAS_SEMAPHORES as they don't work on shlibs yet. * includes/sys/sdt.h (STAP_SEMAPHORE): Include __builtin_expect for unlikely.
Diffstat (limited to 'testsuite/configure')
-rwxr-xr-xtestsuite/configure20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/configure b/testsuite/configure
index 5e75929c..d64ca089 100755
--- a/testsuite/configure
+++ b/testsuite/configure
@@ -602,6 +602,7 @@ PACKAGE_BUGREPORT='systemtap@sources.redhat.com'
ac_subst_vars='LTLIBOBJS
LIBOBJS
+enable_testapps
dejazilla
MAINT
MAINTAINER_MODE_FALSE
@@ -671,6 +672,7 @@ ac_user_opts='
enable_option_checking
enable_maintainer_mode
enable_dejazilla
+enable_testapps
'
ac_precious_vars='build_alias
host_alias
@@ -1308,6 +1310,9 @@ Optional Features:
results to a central public collection point
(default is disabled). Optional EMAIL overrides the
default email address.
+ --enable-testapps=foo,bar or all
+ enable rebuilding of large external apps for testing
+ <sdt.h> markers
Report bugs to <systemtap@sources.redhat.com>.
_ACEOF
@@ -2317,6 +2322,21 @@ $as_echo "$as_me: A \"make *check\" will email results to $dejazilla" >&6;}
fi
+apps=
+for exp in $srcdir/systemtap.apps/*.exp
+do
+ app=`basename $exp .exp`
+ apps="$app $apps"
+done
+# Check whether --enable-testapps was given.
+if test "${enable_testapps+set}" = set; then
+ enableval=$enable_testapps;
+fi
+
+{ $as_echo "$as_me:$LINENO: Will test ${enable_testapps-none} from: $apps" >&5
+$as_echo "$as_me: Will test ${enable_testapps-none} from: $apps" >&6;}
+
+
ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF