test: skip when required lib not available
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 1 Feb 2018 14:20:09 +0000 (14:20 +0000)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 2 Feb 2018 10:37:52 +0000 (11:37 +0100)
commit0ea2dd44099ac124c0357d5d21d07ecfb52b74ef
treeb4530fdc991866fecc79eb151d73b746929a01c9
parent9065b1fac65fbab9047c4c53d44995c25a56dd51
test: skip when required lib not available

The power management and KNI libraries are not compiled on a FreeBSD
platform, which means that the tests can't run. Add in stub code for
these cases, allowing the tests to still be compiled, but to report
as skipped in those cases.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
test/test/test_kni.c
test/test/test_power.c
test/test/test_power_acpi_cpufreq.c
test/test/test_power_kvm_vm.c