Here is the list of tests failing on Windows/MySQL this morning:

Import feeds from OPML functionality 53 passes, 0 fails, and 6 exceptions
Color functionality 61 passes, 0 fails, and 6 exceptions
File field display tests 20 passes, 0 fails, and 6 exceptions
File field file path tests 23 passes, 0 fails, and 6 exceptions
File field revision test 67 passes, 0 fails, and 6 exceptions
File field widget test 61 passes, 0 fails, and 6 exceptions
File token replacement 35 passes, 0 fails, and 6 exceptions
File field validation tests 102 passes, 0 fails, and 18 exceptions
File copying 106 passes, 0 fails, and 18 exceptions
File download 26 passes, 7 fails, and 9 exceptions
File paths and directories 18 passes, 2 fails, and 8 exceptions
File moving 105 passes, 0 fails, and 18 exceptions
File save data 88 passes, 0 fails, and 24 exceptions
Unmanaged file save data 7 passes, 1 fail, and 6 exceptions
Unmanaged file copying 27 passes, 4 fails, and 12 exceptions
Unmanaged file moving 20 passes, 2 fails, and 12 exceptions
File uploading 221 passes, 42 fails, and 76 exceptions
Image field validation tests 16 passes, 2 fails, and 8 exceptions
Image field display tests 81 passes, 0 fails, and 19 exceptions
Image styles and effects UI configuration 167 passes, 0 fails, and 12 exceptions
Image effects 33 passes, 0 fails, and 36 exceptions
Locale uninstall (FR) 31 passes, 0 fails, and 6 exceptions
Locale uninstall (EN) 31 passes, 0 fails, and 6 exceptions
Image toolkit tests 44 passes, 0 fails, and 54 exceptions
String translate, search and validate 250 passes, 0 fails, and 6 exceptions
FATAL ModuleUninstallTestCase: test runner returned a non-zero error code (255).
Path alias functionality 92 passes, 5 fails, and 0 exceptions
OpenID discovery and login 225 passes, 4 fails, and 0 exceptions
Menu router 157 passes, 1 fail, and 0 exceptions
RDF comment mapping 201 passes, 3 fails, and 0 exceptions
RDFa markup 21 passes, 0 fails, and 6 exceptions
Session https handling 59 passes, 5 fails, and 0 exceptions
Top visitor blocking 43 passes, 1 fail, and 0 exceptions
Cron run 45 passes, 0 fails, and 6 exceptions
Drupal HTTP request 27 passes, 0 fails, and 2 exceptions
Registry parse files test 6 passes, 0 fails, and 6 exceptions
HTTP file retrieval 1 pass, 6 fails, and 0 exceptions
Theme interface functionality 66 passes, 0 fails, and 7 exceptions
Upload and extract module functionality 18 passes, 0 fails, and 6 exceptions
Upload user picture 70 passes, 6 fails, and 34 exceptions

Test run duration: 1 hour 21 min
CommentFileSizeAuthor
#3 windows_tests_01.patch841 bytescwgordon7

Comments

cwgordon7’s picture

Status: Active » Needs review
StatusFileSize
new841 bytes

A good portion of these fails are due to exceptions from the failure to delete files at the end of the test. This patch fixes that, not sure how acceptable the code is though, it's kind of kludgy. May I suggest that we break any remaining issues out into several issues instead of one giant issue?

Status: Needs review » Needs work

The last submitted patch, windows_tests_01.patch, failed testing.

cwgordon7’s picture

Status: Needs work » Active

Actually, that was fixed with http://drupal.org/node/443286, heh. So a lot of those tests now pass on HEAD. Updated results would be nice, then we can split out into multiple issues, leaving this here to track them.

damien tournoud’s picture

Title: 40 tests failing on Windows » 15 tests failing on Windows

Here is the updated list, from today:

File download 27 passes, 6 fails, and 0 exceptions
File uploading 221 passes, 42 fails, and 28 exceptions
Image field validation tests 16 passes, 2 fails, and 2 exceptions
Image field display tests 81 passes, 0 fails, and 1 exception
FATAL NodeSaveTestCase: test runner returned a non-zero error code (255).
Path alias functionality 92 passes, 5 fails, and 0 exceptions
OpenID discovery and login 225 passes, 4 fails, and 0 exceptions
Menu router 157 passes, 1 fail, and 0 exceptions
RDF comment mapping 201 passes, 3 fails, and 0 exceptions
Session https handling 59 passes, 5 fails, and 0 exceptions
Top visitor blocking 43 passes, 1 fail, and 0 exceptions
Drupal HTTP request 27 passes, 0 fails, and 2 exceptions
HTTP file retrieval 1 pass, 6 fails, and 0 exceptions
Theme interface functionality 66 passes, 0 fails, and 1 exception
Upload user picture 70 passes, 6 fails, and 10 exceptions
theflowimmemorial’s picture

Assigned: Unassigned » theflowimmemorial

Testing this as part of Core Dev Summit at Drupalcon.

clemens.tolboom’s picture

For the path test we get an 403 when requesting on windows apache

    $edit['alias'] = "- ._~!$'\"()*@[]?&+%#,;=:" . // "Special" ASCII characters.
      "%23%25%26%2B%2F%3F" . // Characters that look like a percent-escaped string.
      "éøïвβ中國書۞"; // Characters from various non-ASCII alphabets.
    $this->drupalPost('admin/config/search/path/edit/' . $pid, $edit, t('Save'));

This alias contains windows character not allowed within file system names \/:*?"<>|
- the ? / are handled nicely by apache

theflowimmemorial’s picture

  HTTP file retrieval 1 pass, 6 fails, and 0 exceptions

This fails in drupal_http_request. When requesting a "localhost" URL stream_socket_client will time out when attempting to retrieve the file (with error number 10060). This works instead when the base URL is 127.0.0.1.

theflowimmemorial’s picture

  Upload user picture 70 passes, 6 fails, and 10 exceptions

I couldn't reproduce this on Windows 7, Apache and PHP 5.2.9.

  76 passes, 0 fails, 0 exceptions, and 19 debug messages
theflowimmemorial’s picture

  Session https handling 59 passes, 5 fails, and 0 exceptions

All tests on my machine passed with this. Windows 7, Apache, PHP 5.2.9.
Output from tests:

  68 passes, 0 fails, 0 exceptions, and 20 debug messages

Perhaps HTTPS wasn't enabled on the orgininal test system?

theflowimmemorial’s picture

We checked out the OpenID failures as well. It looks like it's related to the failure in #9. Chaning localhost to 127.0.0.1 causes the failining tests to pass.

clemens.tolboom’s picture

Microsoft provide a VM which unfortunately failed to run the test suite due to not having a Clean URL setup. See http://drupal.org/node/3854 at least we thought. But it was a views test file not finding it's test class.

This machine meets the oral configuration setup "Win 7 / IIS / PHP 5.3"

We definitely need specs for how to test.

clemens.tolboom’s picture

I got the VM Drupal site running the test suite. But there was an error regarding "Unlink" and "rmdir"

unlink(C:\inetpub\wwwroot\drupal\sites\default\files\simpletest\256730\.htaccess): Permission denied Warning file.inc 1007 file_unmanaged_delete()  
unlink(C:\inetpub\wwwroot\drupal\sites\default\files\simpletest\256730\private\.htaccess): Permission denied Warning file.inc 1007 file_unmanaged_delete() 

When cleaning up the test. Not sure whether this is an old issue. Not sure how to update drupal easy.

Installing drush and run it gives

C:\inetpub\wwwroot\drupal\sites\default>drush uc
[08001][Microsoft][SQL Server Native Client 10.0]SQL Server Network    [warning]

Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
Drush command could not be completed.                                    [error]

Remember we are running MS SQL Server on this VM

Installing http://getgnuwin32.sourceforge.net/ now to get wget, curl etc in place.

[edit] The process for updating drupal seems quite arcane. I failed to do so. I wrecked the installed drupal site on the VM :(

theflowimmemorial’s picture

I made a couple seperate tickets for a couple of the above issues:

http://drupal.org/node/892140
http://drupal.org/node/892110

sun.core’s picture

Priority: Major » Normal

I'm pretty sure we have a dedicated issue for those failing File API tests on Windows in the queue.

Aside from that, failing tests on a certain platform may be annoying but not major.

damien tournoud’s picture

Status: Active » Closed (duplicate)

This is actually a duplicate of #1003524: Meta issue: fix the remaining test failures on Windows. Cleaning-up.