summaryrefslogtreecommitdiffstats
path: root/testsuite/lib
Commit message (Collapse)AuthorAgeFilesLines
* Added atomic_read() embedded-C function and tests.David Smith2010-04-061-1/+4
| | | | | | | | * tapset/atomic.stp: Added atomic_read(). * testsuite/buildok/atomic.stp: Added atomic_read() compile test. * testsuite/systemtap.base/atomic.exp: Added atomic_read() tests. * testsuite/lib/stap_run_error.exp (stap_run_error): Logs stap command and tries to ensure inferior process is killed.
* Make sure that the testsuite can find its serverJosh Stone2010-03-311-0/+7
| | | | | * testsuite/lib/systemtap.exp (setup_server): Use stap-find-servers to check that the firewall is letting us through to the server.
* Improved atomic.exp testcase by removing the need for an external module.David Smith2010-03-241-0/+5
| | | | | | | | * testsuite/systemtap.base/atomic.exp: Removed the need for the external module by putting the atomic_long_t inside the stap module. * testsuite/systemtap.base/atomic_module.c: Removed. * testsuite/systemtap.base/atomic_module.makefile: Ditto. * testsuite/lib/stap_run_error.exp (stap_run_error): Better error handling.
* Fixed regexp typo in stap_run_error.exp.David Smith2010-03-161-1/+1
| | | | * testsuite/lib/stap_run_error.exp: Fixed regexp typo.
* Move common code from {maxmemory.exp,overload.exp} into stap_run_error.exp.David Smith2010-03-161-0/+62
| | | | | | | | * testsuite/lib/stap_run_error.exp: New file. * testsuite/config/unix.exp: Loads stap_run_error.exp. * testsuite/systemtap.base/maxmemory.exp: Uses stap_run_error function instead of local code. * testsuite/systemtap.base/overload.exp: Ditto.
* Fix procfs_write.exp so that it will pass under RHELl5.David Smith2010-02-021-0/+4
| | | | | | | * testsuite/systemtap.base/procfs_write.exp: Small changes for RHEL5 support. * testsuite/lib/stap_run.exp (stap_run): Increase maximum number of characters to match against.
* PR11197: prevent startup of stap-server as rootFrank Ch. Eigler2010-01-271-1/+1
| | | | | | | * stap-serverd: Block startup if whoami=root, unless magic environment variable is set. * testsuite/lib/systemtap.exp: Set magic environment variable to override protection.
* Make sure we log server activity when testing using a server.Dave Brolley2009-12-211-1/+10
|
* Get PATH correct for fidning libexec tools for installcheck.Dave Brolley2009-12-211-4/+4
|
* PR 10247, 10276, 10905: Move remaining client/server tools to libexec.Dave Brolley2009-12-211-1/+4
|
* PR 10247 10276 10905: Infrastructure for moving underlying client/server ↵Dave Brolley2009-12-181-1/+0
| | | | tools to libexec.
* Small compile server shutdown fix.David Smith2009-12-071-1/+3
| | | | | * testsuite/lib/systemtap.exp (shutdown_server): Only remove the temporary stap script if it exists.
* - Allow root, the owner of the uprobes build directory and the members of theDave Brolley2009-11-251-10/+7
| | | | | | | | | | group owner of the uprobes buld directory to build uprobes.ko. - When building uprobes.ko, make all generated files writable by the group owner of the uprobes build directory. - Don't change the group owner of the uprobes build directory during 'make install'
* Tweak cu-decl testWenji Huang2009-11-231-1/+1
| | | | | * testsuite/systemtap.base/cu-decl.exp: Check utrace. * testsuite/lib/stap_compile.exp: Make catch after wait.
* stap-client will now always choose a compatible server even for phases 1-3.Dave Brolley2009-08-281-5/+3
| | | | Always start a local server needed by the test suite (make {install}check).
* Cross check stap_compile.exp stap run result with error messages seen.Mark Wielaard2009-08-281-1/+14
|
* Tighten stap_compile.exp regexp to not accidentially gobble up extra lines.Mark Wielaard2009-08-281-1/+1
|
* Don't spawn uprobes tests with sudoJosh Stone2009-08-051-0/+23
| | | | | | | | | | | | | | Using spawn with sudo doesn't work well, because the password prompt won't go to the correct TTY. The only reason that the uprobes tests needed to do this is so uprobes.ko could be built as root. Now instead, I've added a pre-check that will directly call the uprobes make with sudo (via the as_root proc). * testsuite/lib/systemtap.exp (uprobes_p): Check and build uprobes.ko. * testsuite/systemtap.base/uprobes.exp: Use uprobes_p; don't spawn sudo. * testsuite/systemtap.base/bz6850.exp: Ditto. * testsuite/systemtap.base/bz10078.exp: Ditto. * testsuite/systemtap.base/bz6905.exp: sudo isn't needed for -p2.
* Rename systemtap_exit to cleanup.Dave Brolley2009-07-101-5/+6
| | | | Allow shutdown_server to test $server_pid in order to determine whether we started a server.
* Strip out newlines in GCC version string.Mark Wielaard2009-06-161-0/+1
| | | | | * testsuite/lib/systemtap.exp (get_system_info): Remove possible newlines from GCC_Version string.
* Add GCC version to testsuite run output and systemtap.sum file.Mark Wielaard2009-06-162-2/+15
| | | | | | | | | | | Prints the gcc being used and full version. Also adds short version number to systemtap.sum file (plus full version string). Will make comparing failures based on compiler version being used easier. * testsuite/lib/systemtap.exp (print_systemtap_version): Also print location and full version of gcc being used. (get_system_info): Get gcc version number and long version string. * testsuite/lib/stap_run.exp (print_system_info): Output GCC version.
* Problems using server scripts when not on PATH.Dave Brolley2009-05-061-0/+1
| | | | HAVE_NSS related compile time warning.
* Module signing and verification using a separate file for the module signature.Dave Brolley2009-05-041-0/+2
|
* Better error handling in 'setup_server'.David Smith2009-04-081-2/+2
| | | | | | 2009-04-08 David Smith <dsmith@redhat.com> * lib/systemtap.exp (setup_server): Better error handling.
* introduce [utrace_p] as dejagnu check for utrace presence in kernelFrank Ch. Eigler2009-04-011-0/+10
| | | | | | * testsuite/lib/systemtap.exp: Define here. * testsuite/systemtap.*/*.exp: Use it here. Eliminate duplicated utrace_support_present logic.
* Merge branch 'master' into pr6866Mark Wielaard2009-04-011-5/+10
|\
| * prefer using /usr/bin/lsb_release to deduce distribution for testsuiteFrank Ch. Eigler2009-03-291-3/+9
| |
| * tweak "Distro:" line generation in testsuite logs, to moot ↵Frank Ch. Eigler2009-03-291-4/+3
| | | | | | | | "oracle-enterprise.patch"
* | Merge branch 'master' into pr6866Mark Wielaard2009-03-221-1/+1
|\|
| * sdt.exp: save intermediate sdt.h-client executables for analysisFrank Ch. Eigler2009-03-211-1/+1
| | | | | | | | | | | | * testsuite/lib/stap_run2.exp (stap_run3): Put supplied stap extra arguments after the .stp script name, not before, so that @1/such arguments can be substituted within.
* | Make stap_run send_log of command to execute.Mark Wielaard2009-03-181-0/+1
|/ | | | * testsuite/lib/stap_run.exp (tap_run): Add send_log of cmd.
* Introduce stap_run3 for distinct test names.Mark Wielaard2009-03-131-4/+19
| | | | | * testsuite/lib/stap_run2.exp: Add stap_run3, called from stap_run2. * testsuite/systemtap.base/sdt.exp: Use stap_run3, for distinct test names.
* Make stap_run2 count exact number of lines.Mark Wielaard2009-03-091-1/+6
| | | | | * testsuite/lib/stap_run2.exp: Compare found and expected number of lines. * testsuite/systemtap.*/*.exp (result_string): Make number of lines exact.
* Check for required resources and tools before attempting tests using the ↵Dave Brolley2009-02-201-3/+27
| | | | | | client/server. Ensure that tests run with/without the server have unique names.
* New basic tests for client/server.Dave Brolley2009-02-201-44/+56
|
* More security checking for client/server. Set exec_prefix and sysconfdir at ↵Dave Brolley2009-01-301-4/+4
| | | | install time.
* New framework for creating/using certificate databases for client/server.Dave Brolley2009-01-091-9/+1
|
* Systemtap compile server phase 2 (ssl) -- first cut.Dave Brolley2008-12-241-11/+22
|
* Ignore new warning.David Smith2008-09-111-0/+1
| | | | | | 2008-09-11 David Smith <dsmith@redhat.com> * lib/stap_run.exp: Ignore new warning.
* Minor bugs in stap-client.Dave Brolley2008-08-131-2/+5
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2008-08-081-0/+1
|\ | | | | | | | | | | | | Conflicts: ChangeLog testsuite/ChangeLog
| * 'stap_compile' test procedure now ignores warningsDavid Smith2008-08-071-0/+1
| | | | | | | | | | | | | | | | | | 2008-08-07 David Smith <dsmith@redhat.com> * systemtap.base/utrace_p4.exp: Uses lib/stap_compile.exp instead of its own stap_compile procedure. * systemtap.base/cache.exp (stap_compile): Ignores warnings. * lib/stap_compile.exp: Ignores warnings.
* | Start/stop the systemtap server from systemtap.exp and not in the top level ↵Dave Brolley2008-08-081-2/+48
|/ | | | Makefile.
* Ensure that a systemtap server is available if 'server' is specifiedDave Brolley2008-07-296-14/+5
| | | | in EXTRA_TOOL_OPTS for 'make check' and 'make installcheck'
* Enable 'make check' and 'make installcheck' using the systemtap client/server.Dave Brolley2008-07-146-6/+24
|
* Add test suite for declaration resolutionJames Bottomley2008-07-091-0/+39
| | | | | | | | | | This adds the test declaration.exp which checks that specific named declarations inside the kernel both fail and succeed. We get the failure by only using a single compile unit which is currently known to have the structure stubbed. We get exactly the same declaration to succeed by adding a CU that is known to have the declaration. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
* make "-p4 -m FOO" mode consistent with ordinary -p4Frank Ch. Eigler2008-06-131-1/+0
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapFrank Ch. Eigler2008-05-281-2/+3
|\ | | | | | | | | | | | | * 'master' of ssh://sources.redhat.com/git/systemtap: Create user based cache dir in testsuite. Refresh cscope.files. Add prototypes for using the 2.6.26 probe_kernel_* functions.
| * Create user based cache dir in testsuite.Mark Wielaard2008-05-281-2/+3
| |
* | Revert "testsuite: use catch{close}catch{wait} to ensure child process ↵Frank Ch. Eigler2008-05-282-6/+2
|/ | | | | | pipe/zombie cleanup" This reverts commit 7938bd829dfd82c40b35d536b5913e666c1454d2.