Browse Source

added support to run dtruss as TRACEME

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2122 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.19
Jan Kneschke 14 years ago
parent
commit
abe8e3613e
  1. 2
      tests/LightyTest.pm

2
tests/LightyTest.pm

@ -92,6 +92,8 @@ sub start_proc {
unlink($self->{LIGHTTPD_PIDFILE});
if (defined $ENV{"TRACEME"} && $ENV{"TRACEME"} eq 'strace') {
system("strace -tt -s 512 -o strace ".$self->{LIGHTTPD_PATH}." -D -f ".$self->{SRCDIR}."/".$self->{CONFIGFILE}." -m ".$self->{MODULES_PATH}." &");
} elsif (defined $ENV{"TRACEME"} && $ENV{"TRACEME"} eq 'truss') {
system("/usr/dtrctkit/bin/dtruss -d -e ".$self->{LIGHTTPD_PATH}." -D -f ".$self->{SRCDIR}."/".$self->{CONFIGFILE}." -m ".$self->{MODULES_PATH}." 2> strace &");
} elsif (defined $ENV{"TRACEME"} && $ENV{"TRACEME"} eq 'valgrind') {
system("valgrind --tool=memcheck --show-reachable=yes --leak-check=yes --log-file=valgrind ".$self->{LIGHTTPD_PATH}." -D -f ".$self->{SRCDIR}."/".$self->{CONFIGFILE}." -m ".$self->{MODULES_PATH}." &");
} else {

Loading…
Cancel
Save