diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-10-31 13:54:41 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-10-31 13:58:38 -0400 |
commit | 2c279bc4231e44dba80e5fdb10aa1626e412eab3 (patch) | |
tree | c931b7a898830dea6684b091e9f2c2c9585d241c /testsuite/systemtap.apps/stap-tcl.sh | |
parent | 5b8642a208b614769f934c6a4ce2991658025a57 (diff) | |
download | systemtap-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/systemtap.apps/stap-tcl.sh')
-rw-r--r-- | testsuite/systemtap.apps/stap-tcl.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/systemtap.apps/stap-tcl.sh b/testsuite/systemtap.apps/stap-tcl.sh new file mode 100644 index 00000000..919f632d --- /dev/null +++ b/testsuite/systemtap.apps/stap-tcl.sh @@ -0,0 +1,25 @@ +#! /bin/sh + +set -e + +tclreleasemajor="8.6" +tclrelease="8.6b1" +tcldir=`pwd`/tcl/install/ + +mkdir -p tcl + +if [ ! -r tcl$tclrelease-src.tar.gz ] ; then + wget http://sourceforge.net/projects/tcl/files/Tcl/$tclrelease/tcl$tclrelease-src.tar.gz/download +fi + +if [ ! -d tcl/src ] ; then + tar -x -z -f tcl$tclrelease-src.tar.gz + mv tcl$tclrelease tcl/src +fi + +cd tcl/src/unix +env CPPFLAGS="-I$SYSTEMTAP_INCLUDES" CFLAGS="-g -O2" ./configure --prefix=$tcldir --enable-dtrace +make -j2 +make install + +exit 0 |