Headless Testing for CI

56 views
Skip to first unread message

John Ryan

unread,
Nov 21, 2014, 10:18:15 AM11/21/14
to mi...@dartlang.org
I am trying to run content_shell on Ubuntu 14.04.  I have successfully downloaded the Dart SDK, Dartium, and run the download_contentshell.sh script included the dart editor distribution.

The problem is that there are shared libraries that need to be installed on our CI server:

/home/ubuntu/content_shell/content_shell: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory

I have also tried this approach using Brad Rydzewski's docker image that Drone.io uses, but I see the same error.  I am also running sudo start xvfb in my build script.

Has anyone else successfully deployed a CI server?

Günter Zöchbauer

unread,
Nov 21, 2014, 1:01:08 PM11/21/14
to mi...@dartlang.org
I had no problem using content_shell on Drone.io
The script is used to install 
https://github.com/bwu-dart/bwu_testrunner/blob/master/bin/src/content_shell.dart
(the package can't be used yet)

but I also had troubles make it work locally
- installing some additional packages as far as I remember
- the bigger problem were fonts
I started symlinking random font files on my system because I wasn't able to find a deb package containing exactly this fonts
(or they were installed in other directories than expected by content_shell)
The fonts seem necessary for layout tests (which I don't use in content_shell anyway)

Günter Zöchbauer

unread,
Nov 21, 2014, 1:23:01 PM11/21/14
to mi...@dartlang.org
I use Debian Jessie locally.

John Ryan

unread,
Nov 21, 2014, 4:59:08 PM11/21/14
to mi...@dartlang.org
It might be valuable if there was an official way to get headless testing working on a new linux image.  For instance, a Dockerfile or a bash script (instead of just a docker container with no information about how the image was set up)

Günter Zöchbauer

unread,
Nov 21, 2014, 5:13:32 PM11/21/14
to mi...@dartlang.org
I think the requirements are a subset of these:
Reply all
Reply to author
Forward
0 new messages