Hi all,

as can be seen here[1] I have merged the GNU autotest setup to libosmocore and
the tests are now being executed during the normal build. I encourage everyone
to write new tests for bugfixes in libosmocore but in other projects as well.


How to write a test:
 - Create a new test executable or add a new function to one of the existing
   tests. Make repeatable output go to stdout, errors and things that can
   change to stderr.
 - Capture the stdout into the app_name.ok, add this file to the EXTRA_DIST
   of the Makefile.am
 - Append your test to the tests/testsuite.at file (copy and pasting one
   of the previous test cases)
 - test locally with make check

 - If you access local files during the test, add them to the EXTRA_DIST as
   well
 - Use make distcheck to verify everything is okay.


regard
        holger


[1]
http://jenkins.osmocom.org/jenkins/job/libosmocore/label=linux_i386_debian_squeeze/16/console
(no permalink)

Reply via email to