bareos: master c2deedfd
Author | Committer | Branch | Timestamp | Parent | |
---|---|---|---|---|---|
pstorz | mvwieringen | master | 2015-03-23 16:58 | master fa7a54a3 | Pending |
Changeset | Added cmocka unit tests First implementation of unit testing in bareos using the cmocka test framework. Therefore we built the cmocka libraries for all platforms we support (also windows). On Unix/Linux, the unit tests are executed now during package build by calling "make check" ,on windows we package the test exes so that they can be executed on the target system during ci tests. For the first we moved the existing TEST_PROGRAM main() unit tests of src/lib and src/findlib to a special test that is being compiled in the subdirectory unittests/ of each directory. The specfiles were also refactored. It should be easy to add unittests to other directories in the same manner. |
||||
mod - GNUmakefile.in | Diff File | ||||
mod - Makefile.in | Diff File | ||||
mod - autoconf/config.h.in | Diff File | ||||
mod - autoconf/configure.in | Diff File | ||||
mod - configure | Diff File | ||||
mod - platforms/packaging/bareos.dsc | Diff File | ||||
mod - platforms/packaging/bareos.spec | Diff File | ||||
mod - platforms/win32/mingw-debugsrc-devel.spec | Diff File | ||||
mod - platforms/win32/winbareos-nsi.spec | Diff File | ||||
mod - platforms/win32/winbareos.nsi | Diff File | ||||
mod - platforms/win32/winbareos32.spec | Diff File | ||||
mod - platforms/win32/winbareos64.spec | Diff File | ||||
mod - src/findlib/Makefile.in | Diff File | ||||
mod - src/findlib/drivetype.c | Diff File | ||||
mod - src/findlib/fstype.c | Diff File | ||||
add - src/findlib/unittests/Makefile.in | Diff File | ||||
add - src/findlib/unittests/drivetype_test.c | Diff File | ||||
add - src/findlib/unittests/fstype_test.c | Diff File | ||||
add - src/findlib/unittests/protos.h | Diff File | ||||
add - src/findlib/unittests/test_findlib.c | Diff File | ||||
mod - src/lib/Makefile.in | Diff File | ||||
mod - src/lib/alist.c | Diff File | ||||
mod - src/lib/base64.c | Diff File | ||||
mod - src/lib/berrno.c | Diff File | ||||
mod - src/lib/bsnprintf.c | Diff File | ||||
mod - src/lib/devlock.c | Diff File | ||||
mod - src/lib/dlist.c | Diff File | ||||
mod - src/lib/edit.c | Diff File | ||||
mod - src/lib/fnmatch.c | Diff File | ||||
mod - src/lib/guid_to_name.c | Diff File | ||||
mod - src/lib/htable.c | Diff File | ||||
mod - src/lib/ini.c | Diff File | ||||
mod - src/lib/ini.h | Diff File | ||||
mod - src/lib/rblist.c | Diff File | ||||
mod - src/lib/rwlock.c | Diff File | ||||
mod - src/lib/scan.c | Diff File | ||||
mod - src/lib/sellist.c | Diff File | ||||
mod - src/lib/tree.c | Diff File | ||||
add - src/lib/unittests/Makefile.in | Diff File | ||||
add - src/lib/unittests/alist_test.c | Diff File | ||||
add - src/lib/unittests/base64_test.c | Diff File | ||||
add - src/lib/unittests/bsnprintf_test.c | Diff File | ||||
add - src/lib/unittests/devlock_test.c | Diff File | ||||
add - src/lib/unittests/dlist_test.c | Diff File | ||||
add - src/lib/unittests/edit_test.c | Diff File | ||||
add - src/lib/unittests/htable_test.c | Diff File | ||||
add - src/lib/unittests/ini_test.c | Diff File | ||||
add - src/lib/unittests/passphrase_test.c | Diff File | ||||
add - src/lib/unittests/protos.h | Diff File | ||||
add - src/lib/unittests/rblist_test.c | Diff File | ||||
add - src/lib/unittests/rwlock_test.c | Diff File | ||||
add - src/lib/unittests/scan_test.c | Diff File | ||||
add - src/lib/unittests/sellist_test.c | Diff File | ||||
add - src/lib/unittests/test_lib.c | Diff File | ||||
add - src/lib/unittests/tree_test.c | Diff File | ||||
mod - src/win32/Makefile | Diff File | ||||
add - src/win32/findlib/unittests/Makefile | Diff File | ||||
add - src/win32/lib/unittests/Makefile | Diff File |