Testing 0install on OS X

Thomas Leonard <[email protected]>
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy9ZQkvYwdJSd3iuTk0HSkMsVCB8HoCELX+fXJmKwg1XKg@mail.gmail.com>
On 9 November 2014 at 16:51, Anders F Björklund
<[email protected]> wrote:
[...]
> Now the 0install build completes, and there's only one test failure.
>
> Testing binary...
> 0install (zero-install) 2.8
> OK
>
> Ran: 272 tests in: 12.64 seconds.
> FAILED: Cases: 272 Tried: 272 Errors: 5 Failures: 1 Skip:  1 Todo: 0 Timeouts: 0.
>
> Error: 0install:19:manifest:6:non-ascii
> Error: 0install:18:archive:5:dmg
> Error: 0install:17:download:27:background-unsolvable
> Error: 0install:14:stores:5:check-permissions
> Error: 0install:6:0install:0:select
> ------------------------------------------------------------------------------
> ==============================================================================
> Failure: 0install:18:archive:16:lzma

I asked Travis to enable testing on OS X for us, and they've turned it
on now, so every commit should now be tested on OS X and Linux. I
fixed the issues that turned up:

- The GUI test was hanging (probably, OS X ignores $DISPLAY) so I disabled it.

- Extracting from a dmg failed due to a permission error with
".Trashes". I changed the extraction code to skip anything with that
name, and improved the error reporting in case it fails again (when
the copy failed, it tried to delete the temporary directory without
unmounting the image inside, and then complained when that failed). I
also made it mount dmg images read-only.

- The test for sticky bit problems failed because mkdir on OS X
doesn't allow creation of sticky directories. The test now uses chmod
instead.


-- 
Dr Thomas Leonard        http://roscidus.com/blog/
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------
_______________________________________________
Zero-install-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zero-install-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.