summaryrefslogtreecommitdiffstats
path: root/testsuite/configure.ac
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.ac
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.ac')
-rw-r--r--testsuite/configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/configure.ac b/testsuite/configure.ac
index 5166d226..bc5aed17 100644
--- a/testsuite/configure.ac
+++ b/testsuite/configure.ac
@@ -23,5 +23,17 @@ if test -n "$dejazilla"; then
fi
AC_SUBST(dejazilla)
+apps=
+for exp in $srcdir/systemtap.apps/*.exp
+do
+ app=`basename $exp .exp`
+ apps="$app $apps"
+done
+AC_ARG_ENABLE([testapps],
+ AC_HELP_STRING([--enable-testapps=foo,bar or all],
+ [enable rebuilding of large external apps for testing <sdt.h> markers]))
+AC_MSG_NOTICE([Will test ${enable_testapps-no} apps from: $apps])
+AC_SUBST(enable_testapps)
+
AC_CONFIG_FILES(Makefile)
AC_OUTPUT