Merge lp:~deeptik/lava-test/gmpbench into lp:lava-test/0.0
Proposed by
Deepti B. Kalakeri
Status: | Merged |
---|---|
Merged at revision: | 37 |
Proposed branch: | lp:~deeptik/lava-test/gmpbench |
Merge into: | lp:lava-test/0.0 |
Diff against target: |
53 lines (+49/-0) 1 file modified
abrek/test_definitions/gmpbench.py (+49/-0) |
To merge this branch: | bzr merge lp:~deeptik/lava-test/gmpbench |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Larson (community) | Approve | ||
Deepti B. Kalakeri (community) | Needs Resubmitting | ||
Review via email: mp+36841@code.launchpad.net |
Description of the change
This patch automates the installation, execution, and parsing of GMPbench test suite. This patch has been tested on Manderick for installation/
To post a comment you must log in.
+RUNSTEPS = ['cd gmpbench-0.2 && PATH=$PATH:. ./runbench '] test_case_ id>GMPbench\ .*\w*\. *\w*):? \s*(?P< result> \d+.\d+ )" abrek.testdef. AbrekTestParser ): self.pattern) 'test_results' ].append( results)
> +PATTERN = "\s*(?P<
> +
> +class GMPParser(
> + def parse(self):
> + filename = "testoutput.log"
> + pat = re.compile(
> + with open(filename) as fd:
> + for line in fd:
> + match = pat.match(line)
> + if match:
> + results = match.groupdict()
> + self.results[
> Since this is a performance benchmark, I would expect that you would have a measurement field, and I don't see that here. Also, I don't see where you needed to extend AbrekTestParser yet for this test. It seems that the base class would be sufficient here. Take a look at stream for an example of a performance test.