aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rames <alexandre.rames@linaro.org>2015-10-02 09:21:07 +0100
committerAlexandre Rames <alexandre.rames@linaro.org>2015-10-12 11:59:47 +0100
commit3fec7b5869d05bb06d9cc06ae21ba7929418227a (patch)
tree9feea46adb07eecf5b76a7ad33a95432ef8a4eca
parentc27ecc46fffdb04591a53df52a1b372c05a54226 (diff)
Add a run of `compare.py` to the tests.
Change-Id: Ibc4bb0060ca6078bb13e11304623f9567a65991c
-rw-r--r--README.md2
-rwxr-xr-xtest/test.py9
2 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8d186be..648573e 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,8 @@ Or on the host, with no adb device:
Each set of related benchmarks is implemented as a Java class and kept in the
benchmarks/ folder.
+Before contributing, make sure that `test/test.py` passes.
+
### Rules
1. Test method names start with "time" -- Test launcher will find all timeXXX()
diff --git a/test/test.py b/test/test.py
index 095d770..8582df0 100755
--- a/test/test.py
+++ b/test/test.py
@@ -75,6 +75,14 @@ def TestLint(jobs = 1):
return lint.LintFiles(lint.GetJavaFiles(), jobs)
+def TestCompareScript():
+ rc = 0
+ rc |= TestCommand(["./run.py", "--output-pkl=/tmp/res1"], _cwd=utils.dir_root)
+ rc |= TestCommand(["./run.py", "--output-pkl=/tmp/res2"], _cwd=utils.dir_root)
+ rc |= TestCommand(["./compare.py", "/tmp/res1", "/tmp/res2"], _cwd=utils.dir_root)
+ return rc
+
+
if __name__ == "__main__":
args = BuildOptions()
@@ -82,6 +90,7 @@ if __name__ == "__main__":
rc |= TestBenchmarksOnHost()
rc |= TestBenchmarkPackages()
rc |= TestLint(args.jobs)
+ rc |= TestCompareScript()
if rc != 0:
print("Tests FAILED.")