Bug 23298 - Tests should autoadjust
Tests should autoadjust
Product: eCos
Classification: Retired
Component: Kernel (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: ecc-bugs-int
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2001-01-04 09:13 EST by Jesper Skov
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-06-20 11:46:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jesper Skov 2001-01-04 09:13:16 EST
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:

 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 11:46:44 EDT
This bug has moved to http://bugs.ecos.sourceware.org/show_bug.cgi?id>23298

Note You need to log in before you can comment on or make changes to this bug.