test262/Runner.pm: add unit tests
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 May 2018 15:33:49 +0000 (15:33 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 May 2018 15:33:49 +0000 (15:33 +0000)
commit9ba80102c342dfc091d0cf888b94d9c54b978e88
tree3af42b8821e9574989bacd33529b1eb7f0fd798d
parenta151dfed575a6089f57594883261b0d7fcf17606
test262/Runner.pm: add unit tests
https://bugs.webkit.org/show_bug.cgi?id=185783

Patch by Valerie R Young <valerie@bocoup.com> on 2018-05-23
Reviewed by Aakash Jain.

Add unit tests to be run by test-webkitperl

* Scripts/test262/Runner.pm:
(main):
 - If harness files cannot be found in a custom, supplies test262 path,
   then sure the webkit test262 harness files.
 - Lazily create the test262-results directory.
 - If an expectation file is supplied via command line, save to the
   supplied location instead of the detault webkit location.
(compileTest):
(processResult):
(getHarness):
* Scripts/webkitperl/test262_unittest/README: Added.
* Scripts/webkitperl/test262_unittest/fixtures/expectations-compare.yaml: Added.
* Scripts/webkitperl/test262_unittest/fixtures/expectations.yaml: Added.
* Scripts/webkitperl/test262_unittest/fixtures/test/expected-to-fail-now-failing-with-new-error.js: Added.
* Scripts/webkitperl/test262_unittest/fixtures/test/expected-to-fail-now-failing.js: Added.
* Scripts/webkitperl/test262_unittest/fixtures/test/expected-to-fail-now-passing.js: Added.
(f):
* Scripts/webkitperl/test262_unittest/fixtures/test/expected-to-pass-now-failing.js: Added.
* Scripts/webkitperl/test262_unittest/fixtures/test/fail.js: Added.
* Scripts/webkitperl/test262_unittest/fixtures/test/pass.js: Added.
(f):
* Scripts/webkitperl/test262_unittest/test262-runner-tests.pl: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232112 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
Tools/ChangeLog
Tools/Scripts/test262/Runner.pm
Tools/Scripts/webkitperl/test262_unittest/README [new file with mode: 0644]
Tools/Scripts/webkitperl/test262_unittest/fixtures/expectations-compare.yaml [new file with mode: 0644]
Tools/Scripts/webkitperl/test262_unittest/fixtures/expectations.yaml [new file with mode: 0644]
Tools/Scripts/webkitperl/test262_unittest/fixtures/test/expected-to-fail-now-failing-with-new-error.js [new file with mode: 0644]
Tools/Scripts/webkitperl/test262_unittest/fixtures/test/expected-to-fail-now-failing.js [new file with mode: 0644]
Tools/Scripts/webkitperl/test262_unittest/fixtures/test/expected-to-fail-now-passing.js [new file with mode: 0644]
Tools/Scripts/webkitperl/test262_unittest/fixtures/test/expected-to-pass-now-failing.js [new file with mode: 0644]
Tools/Scripts/webkitperl/test262_unittest/fixtures/test/fail.js [new file with mode: 0644]
Tools/Scripts/webkitperl/test262_unittest/fixtures/test/pass.js [new file with mode: 0644]
Tools/Scripts/webkitperl/test262_unittest/test262-runner-tests.pl [new file with mode: 0755]