Autobuild testing
There are some changes you have to do in your spec file
in order to test your module during the autobuild.
Update neededforbuild
Your neededforbuild should look like this.
You probably don't need any other packages for the build.
# neededforbuild yast2-devel-packages
Update %build and %install stages
The default predefined devtools macros @BUILD@ and
@INSTALL@ are prepared for the testsuite.
@BUILD@
@INSTALL@
Building
Create new spec file and package and use your usual way of
building package.
bash$ make -f Makefile.cvs
bash$ make package
bash$ cd package
bash$ abuild...
If everything succeed, check in the package.
Hunting bugs
Testsuite failed during auto build. What to do now?
These steps should help you to hunt the bug:
- Reproduce the bug with "build yourpackage"
- Do "chroot /tmp/buildsystem.host.user", or "chroot /abuild/buildsystem.host.user"
- CD to /usr/src/packages/BUILD/yourpackage/testsuite/tests/
- Do "mount /proc"
- Run "/usr/lib/YaST2/bin/y2base failedtest.ycp scr"
- Take a look at "/var/log/YaST2/y2log"
Now you have the same situation as usual. You have failing script,
possibility of testing and the y2log output.
Good luck!