libqb/tests
Jan Pokorný 137b3dea5b
API: introduce alternative, header-based versioning
Mainly as a light-weight alternative to full-blown autoconf/pkg-config
machineries, whereby one can:

* workaround functionality not present in libqb up to 1.0 (inclusive)
  - note that this versioning schema is being introduced *after*
    1.0.0 release so one cannot tell that version from any older,
    but will be able to safely identify any later one (1.0.1+)
    and act accordingly
  - example:
  #if !defined(QB_VER_MAJOR) || ((QB_VER_MAJOR == 1) && (QB_VER_MINOR < 1))
  #warning "Feature X not supported"
  int do_foo(int arg) { };
  #else
  int
  do_foo(int arg)
  {
      /* use feature X of libqb */
  }
  #endif

* make its program report libqb API version it was built with by
  emitting QB_VER_STR symbolic string (see tests/print_ver.c for example)

Also added is a print_ver test program to:

* emit how original unparsed version is parsed to particular components
  defined in qbconfig.h (QB_VER_{MAJOR,MINOR,PATCH} symbolic integer
  constants and QB_VER_REST symbolic string) when being compiled

* emit mentioned QB_VER_STR symbolic string joining the components
  back to a single string, plus the components themselves

Resolves: https://github.com/ClusterLabs/libqb/issues/186
2016-04-01 23:19:40 +02:00
..
_syslog_override.c Feature: allow changing the identifier for syslog (+tests) 2016-02-18 11:30:14 +01:00
_syslog_override.h Feature: allow changing the identifier for syslog (+tests) 2016-02-18 11:30:14 +01:00
.gitignore API: introduce alternative, header-based versioning 2016-04-01 23:19:40 +02:00
bench-log.c By default don't build in the slow benchlog 2011-11-25 11:12:27 +11:00
blackbox-segfault.sh Low: tests: Verify reading valid blackbox file works 2013-06-27 19:47:04 -05:00
bmc.c Deprecate qb_util_set_log_function() 2012-01-24 16:00:05 +11:00
bmcpt.c Remove uses of timersub and use qb_util_stopwatch 2012-08-28 22:05:09 +10:00
bms.c Prevent use after free in benchmark util 2013-07-22 16:05:21 -05:00
check_array.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_common.h tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_ipc.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_log.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_loop.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_map.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_rb.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
check_util.c tests: refactor test case defs using versatile add_tcase macro 2016-03-01 15:11:38 +01:00
crash_test_dummy.c Deal better with corrupt blackbox files. 2013-04-02 13:52:57 +11:00
file_change_bytes.c Low: tests: Fixes compile time issue with make check 2014-01-20 16:59:52 -06:00
format_compare_speed.c test: fix missing-format-attribute warning 2013-02-19 10:18:01 +11:00
loop.c Deprecate qb_util_set_log_function() 2012-01-24 16:00:05 +11:00
make-log-test.sh TEST: change the script to .sh and generated c file to auto_ 2012-01-16 22:18:39 +11:00
Makefile.am API: introduce alternative, header-based versioning 2016-04-01 23:19:40 +02:00
print_ver.c API: introduce alternative, header-based versioning 2016-04-01 23:19:40 +02:00
rbreader.c TEST: make rbreader/writer more like the other benchmarking apps 2012-05-21 08:30:22 +10:00
rbwriter.c Remove uses of timersub and use qb_util_stopwatch 2012-08-28 22:05:09 +10:00
resources.test TEST: Use /bin/sh not /bin/bash 2012-05-10 11:41:11 +10:00
run-coverity test: add helper script for running coverity 2015-09-09 15:54:26 -05:00
test.conf.in Deal better with corrupt blackbox files. 2013-04-02 13:52:57 +11:00