Bug 23298

Summary: Tests should autoadjust
Product: [Retired] eCos Reporter: Jesper Skov <jskov>
Component: KernelAssignee: ecc-bugs-int
Status: CLOSED WONTFIX QA Contact: ecc-bugs-int
Severity: medium Docs Contact:
Priority: medium    
Version: CVSKeywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-06-20 15:46:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jesper Skov 2001-01-04 14:13:16 UTC
Some of the kernel tests are hardwired to do certain number of loops
for various targets. Would be nice if this could be automated somehow,
since we'll be spending more and more time hacking tests in various
ways to get them running on new faster/slower targets.

In particular the dhrystone test can be changed to increase the number
of loops to get reliable data on faster targets.

Reducing loops may be harder to deal with - but a generic way to handle
it would be something like:

 max_loops = HARDWIRED_LIMIT_GOOD_FOR_MOST_TARGETS;
 start_time = <get time>;
 adjusted = 0;
 while (loops < max_loops) {
   if (!adjusted && loops > (max_loops / 20)) {
      now = <get time>;
      if (now - start_time > 1 second)
         max_loops = (max_loops / (now - start_time));
      adjusted = 1;
   }
   ...test loop body...
 }

Comment 1 Alex Schuilenburg 2003-06-20 15:46:44 UTC
This bug has moved to http://bugs.ecos.sourceware.org/show_bug.cgi?id>23298