From 2f41f39496d9f9f82947eeebd169a8aa9db8245a Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 19 Sep 2009 19:14:33 +0200 Subject: Use less idle time in testsuite. A lot of tests wait, sleep or use a timer for multiple seconds when that is not necessary. Reduce the time waited so save test time. * testsuite/systemtap.base/backtrace.stp: Exit after 100ms. * testsuite/systemtap.base/badkprobe.exp: Likewise. * testsuite/systemtap.base/global_end.stp: Likewise. * testsuite/systemtap.base/itrace.exp: Wait 1 sec instead of 5 for each test. * testsuite/systemtap.base/maxactive.exp: Likewise. * testsuite/systemtap.base/onoffprobe.exp: Match and use modname, so build script can be cached. * testsuite/systemtap.base/onoffprobe.stp: Wait miliseconds instead of seconds in each alias. Output module_name. * testsuite/systemtap.base/poll_map.stp: Start after 100ms. --- testsuite/systemtap.base/onoffprobe.stp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'testsuite/systemtap.base/onoffprobe.stp') diff --git a/testsuite/systemtap.base/onoffprobe.stp b/testsuite/systemtap.base/onoffprobe.stp index 79c41a3c..862c4059 100644 --- a/testsuite/systemtap.base/onoffprobe.stp +++ b/testsuite/systemtap.base/onoffprobe.stp @@ -2,7 +2,7 @@ global switch=-1 #begin probe probe begin if (switch==-1) { - log("begin1 probed"); + printf("begin1 probed: %s\n", module_name()); } probe begin if (switch==0) { @@ -22,7 +22,7 @@ probe kernel.function("vfs_write").return if (switch == 2) { } #timer probe -probe timer.s(1) if (switch == 3) { +probe timer.ms(100) if (switch == 3) { log("timer probed") switch = 0 } @@ -34,10 +34,10 @@ probe timer.profile if (switch == 4) { } # aliasess -probe alias.one.a = timer.s(2) if (switch == 5) { print("alias.one.a and") } -probe alias.one.b = timer.s(3) if (switch == 6) { print("alias.one.b and") } +probe alias.one.a = timer.ms(150) if (switch == 5) { print("alias.one.a and") } +probe alias.one.b = timer.ms(200) if (switch == 6) { print("alias.one.b and") } probe alias.one = alias.one.* if (switch >= 5 && switch < 7) { print(" alias.one and") } -probe alias.two = timer.s(4) if (switch == 7) { print("alias.two and") } +probe alias.two = timer.ms(250) if (switch == 7) { print("alias.two and") } probe alias.* if (switch) { log(" alias.* probed") } probe procfs("switch").write { -- cgit