Title: [199333] trunk/Websites/perf.webkit.org
- Revision
- 199333
- Author
- [email protected]
- Date
- 2016-04-11 20:42:29 -0700 (Mon, 11 Apr 2016)
Log Message
Replace script runner to use mocha.js tests
https://bugs.webkit.org/show_bug.cgi?id=156490
Reviewed by Chris Dumez.
Replaced run-tests.js, which was a whole test harness for running legacy tests by tools/run-tests.py
which is a thin wrapper around mocha.js.
* run-tests.js: Removed.
* tests: Removed.
* tools/run-tests.py: Added.
(main):
Modified Paths
Added Paths
Removed Paths
Diff
Modified: trunk/Websites/perf.webkit.org/ChangeLog (199332 => 199333)
--- trunk/Websites/perf.webkit.org/ChangeLog 2016-04-12 03:18:16 UTC (rev 199332)
+++ trunk/Websites/perf.webkit.org/ChangeLog 2016-04-12 03:42:29 UTC (rev 199333)
@@ -1,5 +1,20 @@
2016-04-11 Ryosuke Niwa <[email protected]>
+ Replace script runner to use mocha.js tests
+ https://bugs.webkit.org/show_bug.cgi?id=156490
+
+ Reviewed by Chris Dumez.
+
+ Replaced run-tests.js, which was a whole test harness for running legacy tests by tools/run-tests.py
+ which is a thin wrapper around mocha.js.
+
+ * run-tests.js: Removed.
+ * tests: Removed.
+ * tools/run-tests.py: Added.
+ (main):
+
+2016-04-11 Ryosuke Niwa <[email protected]>
+
New syncing script sometimes schedules a build request on a wrong builder
https://bugs.webkit.org/show_bug.cgi?id=156489
Deleted: trunk/Websites/perf.webkit.org/run-tests.js ( => )
Added: trunk/Websites/perf.webkit.org/tools/run-tests.py
===================================================================
--- trunk/Websites/perf.webkit.org/tools/run-tests.py (rev 0)
+++ trunk/Websites/perf.webkit.org/tools/run-tests.py 2016-04-12 03:42:29 UTC (rev 199333)
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+
+import os
+import subprocess
+
+
+def main():
+ tools_dir = os.path.dirname(__file__)
+ root_dir = os.path.abspath(os.path.join(tools_dir, '..'))
+ node_modules_dir = os.path.join(root_dir, 'node_modules')
+
+ os.chdir(root_dir)
+ packages = ['mocha', 'pg']
+ for package_name in packages:
+ target_dir = os.path.join(node_modules_dir, package_name)
+ if not os.path.isdir(target_dir):
+ subprocess.call(['npm', 'install', package_name])
+
+ mocha_path = os.path.join(node_modules_dir, 'mocha/bin/mocha')
+ return subprocess.call([mocha_path, 'unit-tests', 'server-tests'])
+
+if __name__ == "__main__":
+ main()
Property changes: trunk/Websites/perf.webkit.org/tools/run-tests.py
Added: svn:executable
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes