New feature: Compare created test case with original log
Whenever a new test is created the framework will now perform some checks
on the newly created test case as the original replay log is available at
this point.
It will:
- Check if properties defined in platform.props are the same
- Check if hardware properties are the same
- Check if the sequence of timer callbacks and hardware states is the same
- Check if the generated gestures are the same
This will help identify technical limitations or problems with the simulated
replay when adding a new test case.
BUG=chromium-os:31732
TEST=use the 'touchtests add' command
Change-Id: I8fa9c75e42184f8f81b21fa81fab9a4beaab1710
Reviewed-on: https://gerrit.chromium.org/gerrit/29187
Reviewed-by: Dennis Kempin <denniskempin@chromium.org>
Commit-Ready: Dennis Kempin <denniskempin@chromium.org>
Tested-by: Dennis Kempin <denniskempin@chromium.org>
diff --git a/framework/src/main.py b/framework/src/main.py
index 870dca3..f25a899 100644
--- a/framework/src/main.py
+++ b/framework/src/main.py
@@ -128,9 +128,7 @@
factory = TestFactory(os.environ["TESTS_DIR"], os.environ["REPLAY_TOOL"])
case = factory.CreateTest(testname, activity_log, event_log)
- runner = TestRunner(os.environ["TESTS_DIR"], os.environ["REPLAY_TOOL"])
- result = runner.RunTest(case)
- print result["gestures"]
+ print "Test \"" + case.name + "\" created"
def Main():
"""