Back to TestGroup
Contents |
This document has instructions on how to build the source for the lsb-desktop-test. (written based on a build on a Mandriva system, some variations expected on different distros)
export TET_ROOT=/opt/lsb-tet3-lite export PATH=$PATH:$TET_ROOT/bin export MANPATH=$MANPATH:$TET_ROOT/man export PYTHONPATH=$TET_ROOT/lib/python
An initial branch will take some minutes to complete:
bzr branch http://bzr.freestandards.org/lsb/3.1/desktop-test desktop-test bzr branch http://bzr.freestandards.org/lsb/3.1/xml-test xml-test bzr branch http://bzr.freestandards.org/lsb/3.1/misc-test misc-test
or if you have an existing branch:
cd desktop-test bzr pull cd ../xml-test bzr pull cd ../misc-test bzr pull
The Makefile accepts the environment variable BZRTREES to pull from your local branch to build the tarball, rather than the remote branch.
cd desktop-test/scripts/package BZRTREES=/home/stew/LSB-work/doc-test make tarball
You should find something like this at the end of the build:
lsb-test-desktop-3.1.1.tar.gz
make rpm_package
You should find something like this at the end of the build:
lsb-test-desktop-3.1.1-1.src.rpm lsb-test-desktop-3.1.1-1.x86_64.rpm
The tarball and package steps could of course be combined with a plain "make". I only broke them up for ease of troubleshooting.
BZTREES=/home/stew/LSB-work/doc-test make
This is covered in more detail in Executing the lsb-test-desktop Test Suite, but you can quickly test your package with (urpmi is Mandriva specific, use whatever package manager your distro provides). The test run will take some minutes to complete.
sudo urpmi lsb-test-desktop-3.1.1-1.x86_64.rpm su - cd /opt/lsb/test/desktop; ./run_tests
Typical results: /opt/lsb/test/desktop/gtkvts/results/{max-num}e/journal:
Total Tests Passed: 8154 Total Tests Failed (including waived): 0 Total Tests Failed (excluding waived): 0
/opt/lsb/test/desktop/qt3/results/{max-num}e/journal:
Total Tests Passed: 26 Total Tests Failed (including waived): 0 Total Tests Failed (excluding waived): 0
/opt/lsb/test/desktop/fontconfig/results/{max-num}e/journal:
Total Tests Passed: 3 Total Tests Failed (including waived): 0 Total Tests Failed (excluding waived): 0
/opt/lsb/test/desktop/xml/journal.libxml2:
Total Tests Passed: 2466 Total Tests Failed (including waived): 0 Total Tests Failed (excluding waived): 0
/opt/lsb/test/desktop/libpng/journal.pngtest:
Total Tests Passed: 137 Total Tests Failed (including waived): 0 Total Tests Failed (excluding waived): 0
If you find issues in following the above procedure, please feel free to fix it or add notes in this area.