WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
188039
[LayoutTests][Win] Configure perl binary location for CGI execution.
https://bugs.webkit.org/show_bug.cgi?id=188039
Summary
[LayoutTests][Win] Configure perl binary location for CGI execution.
Basuke Suzuki
Reported
2018-07-26 01:22:50 PDT
There are many CGIs used for http tests. It contains shbang line in it and usually point to /usr/bin/perl, which is not suitable for native Windows environment. PHP is more portable and I believe there's almost no case only Perl can handle some task. Let's convert'em one by one. This is the meta bug for that task.
Attachments
Add attachment
proposed patch, testcase, etc.
Fujii Hironori
Comment 1
2018-07-26 03:39:33 PDT
AppleWin port is also using XAMPP Apache. I think just a mis-configuration. There is a comment.
https://github.com/WebKit/webkit/blob/master/LayoutTests/http/conf/apache2.4-httpd-win.conf#L57
> # When using the above setting, specify the path to the Perl binary > # using the registry keys below: > # [HKEY_CLASSES_ROOT\.pl\Shell\ExecCGI\Command] @="c:\\PATH\TO\perl\\bin\\perl.exe" > # HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command] @="c:\\PATH\TO\perl\\bin\\perl.exe"
Fujii Hironori
Comment 2
2018-07-26 03:40:59 PDT
There are some perl scripts in imported directory. I think it's not feasible to convert.
> imported/blink/http/tests/misc/resources/image-slow-out-of-viewport.pl > imported/blink/http/tests/plugins/resources/mock-plugin-with-csp.pl > imported/blink/http/tests/security/contentSecurityPolicy/resources/frame-ancestors.pl > imported/blink/http/tests/security/contentSecurityPolicy/resources/frame-in-frame.pl > imported/blink/http/tests/security/contentSecurityPolicy/resources/redirect.pl > imported/blink/http/tests/security/contentSecurityPolicy/resources/test-csp-header.pl > imported/blink/http/tests/security/contentSecurityPolicy/resources/xhr-redirect-not-allowed.pl > imported/blink/http/tests/xmlhttprequest/resources/invalid-utf8-json.pl
Basuke Suzuki
Comment 3
2018-07-26 09:25:43 PDT
(In reply to Fujii Hironori from
comment #1
)
> AppleWin port is also using XAMPP Apache. I think just a mis-configuration. > > There is a comment. > >
https://github.com/WebKit/webkit/blob/master/LayoutTests/http/conf/apache2.4
- > httpd-win.conf#L57 > > > # When using the above setting, specify the path to the Perl binary > > # using the registry keys below: > > # [HKEY_CLASSES_ROOT\.pl\Shell\ExecCGI\Command] @="c:\\PATH\TO\perl\\bin\\perl.exe" > > # HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command] @="c:\\PATH\TO\perl\\bin\\perl.exe"
Oh, thank you for the info. This should be documented or showing warning in some where during the launching httpd.
Basuke Suzuki
Comment 4
2018-07-26 09:43:51 PDT
Renamed summary from : [LayoutTests] Convert CGI written in Perl to PHP. On Windows, XAMPP is used for layout test. We can assume perl is installed in XAMPP directory.
Fujii Hironori
Comment 5
2018-07-27 02:04:31 PDT
You need to install xammp-perl for WinCairo Docker.
https://github.com/WebKitForWindows/powershell-webkit-dev/blob/master/WebKitDev/Functions/Install-Xampp.ps1#L34
Basuke Suzuki
Comment 6
2018-07-27 17:43:46 PDT
(In reply to Fujii Hironori from
comment #5
)
> You need to install xammp-perl for WinCairo Docker. >
https://github.com/WebKitForWindows/powershell-webkit-dev/blob/master/
> WebKitDev/Functions/Install-Xampp.ps1#L34
Right. Or make it configurable by env var. Or respect the predefined registry value.
Basuke Suzuki
Comment 7
2018-07-27 17:44:36 PDT
Some CGI put "-T" option in the shebang line. So is the registry value.
Basuke Suzuki
Comment 8
2018-08-09 22:06:07 PDT
These registry must be set for bots.
Fujii Hironori
Comment 9
2018-11-13 00:00:09 PST
https://github.com/WebKitForWindows/docker-webkit-dev/issues/7
Don Olmstead
Comment 10
2019-03-04 12:27:09 PST
This was fixed in the build bot image for wincairo.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug