-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #651 from OpenGeoscience/webgl-testing
Use firefox and xvfb to test webgl and examples.
- Loading branch information
Showing
26 changed files
with
938 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
baseline_images | ||
=============== | ||
|
||
.. automodule:: baseline_images | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
============================ | ||
Provisioning for Development | ||
============================ | ||
|
||
.. _ubuntu-development: | ||
|
||
Ubuntu 14.04 | ||
------------- | ||
|
||
This shows how to set up a build and test environment in Ubuntu 14.04, using | ||
all but the Selenium-based tests. | ||
|
||
These instructions will probably work for any Ubuntu release from 14.04 | ||
onward. They assume a basic installation, as, for instance, from the | ||
`HashiCorp ubuntu/trusty64 image <https://atlas.hashicorp.com/ubuntu/boxes/trusty64>`_. | ||
|
||
Add nodejs to the sources so it can be installed :: | ||
|
||
wget -qO- https://deb.nodesource.com/setup_4.x | sudo bash - | ||
|
||
Install required packages (you may want to also include cmake-curses-gui for | ||
convenience in configuring CMake options) :: | ||
|
||
sudo apt-get install --yes \ | ||
cmake \ | ||
firefox \ | ||
git \ | ||
libjpeg8-dev \ | ||
libpango1.0-dev \ | ||
mesa-utils \ | ||
nodejs \ | ||
python-pip \ | ||
xvfb | ||
|
||
Install node-gyp, which is required to build the node canvas module :: | ||
|
||
sudo npm install -g node-gyp-install && /usr/lib/node_modules/node-gyp-install/bin.js | ||
|
||
Checkout the GeoJS source and change to the source directory :: | ||
|
||
git clone https://github.com/OpenGeoscience/geojs.git | ||
cd geojs | ||
|
||
Install node modules :: | ||
|
||
npm install | ||
|
||
Build GeoJS and run some basic tests :: | ||
|
||
npm run build | ||
npm run lint | ||
npm run test | ||
|
||
Note that some of the tests measure speed, and therefore may fail if you are | ||
running on slow hardware or in a limited virtual machine. | ||
|
||
Use CMake to create additional tests and make to download test data :: | ||
|
||
cmake . | ||
make | ||
|
||
Run the headless WebGL tests :: | ||
|
||
xvfb-run -s '-ac -screen 0 1280x1024x24' ctest -VV -R ffheadless | ||
|
||
Run all but the Selenium tests :: | ||
|
||
xvfb-run -s '-ac -screen 0 1280x1024x24' ctest --output-on-failure -E selenium | ||
|
||
Install python packages :: | ||
|
||
pip install --user girder-client | ||
|
||
Generate new baseline images for the headless WebGL tests :: | ||
|
||
python test/baseline_images.py --xvfb --generate --upload --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.