Back to TestGroup
Contents |
This document has instructions on how to build the source for the lsb-test-vsw4. (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/vsw4-test vsw4-test
or if you have an existing branch:
cd vsw4-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 vsw4-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-vsw4-3.1.1.tar.gz
make rpm_package
You should find something like this at the end of the build:
lsb-test-vsw4-3.1.1-1.src.rpm lsb-test-vsw4-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-vsw4 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-vsw4-3.1.1-1.x86_64.rpm su - cd /opt/lsb/test/vsw4; ./run_vsw4.sh
Typical results:
tjreport /opt/lsb/test/vsw4/xtest/results/0027e/journal Test was run: 20061228 13:37:39 Total Tests Passed: 3928 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.