Add JSC:RegExp functional tests
https://bugs.webkit.org/show_bug.cgi?id=67339
Source/JavaScriptCore:
Added new test driver program (testRegExp) and corresponding data file
along with build scripts changes.
Reviewed by Gavin Barraclough.
(Options::Options):
(StopWatch::start):
(StopWatch::stop):
(StopWatch::getElapsedMS):
(RegExpTest::RegExpTest):
(GlobalObject::create):
(GlobalObject::className):
(GlobalObject::GlobalObject):
(main):
(cleanupGlobalData):
(testOneRegExp):
(scanString):
(parseRegExpLine):
(parseTestLine):
(runFromFiles):
(printUsageStatement):
(parseArguments):
(realMain):
- tests/regexp: Added.
- tests/regexp/RegExpTest.data: Added.
Tools:
New perl script to build JavaScriptCore and run the RegExp tests.
Reviewed by Gavin Barraclough.
- Scripts/run-regexp-tests: Added.