49 uint32_t vendor_version_target);
53 uint32_t vendor_version_target)
58 if (flight_version_target == flight_version_result) {
59 if (vendor_version_target == vendor_version_result) {
63 PX4_ERR(
"Wrong vendor version: tag: %s, got: 0x%x, expected: 0x%x", version_tag, vendor_version_result,
64 vendor_version_target);
69 PX4_ERR(
"Wrong flight version: tag: %s, got: 0x%x, expected: 0x%x", version_tag, flight_version_result,
70 flight_version_target);
virtual bool run_tests()
Override to run your unit tests.
bool _test_tag_to_version_number(const char *version_tag, uint32_t flight_version_target, uint32_t vendor_version_target)
Base class to be used for unit tests.
int _tests_failed
The number of unit tests which failed.
int test_versioning(int argc, char *argv[])
uint32_t version_tag_to_number(const char *tag)
Convert a version tag string to a number.
#define ut_assert_true(test)
To assert specifically to true.
ut_declare_test_c(test_versioning, VersioningTest)
Tools for system version detection.
uint32_t version_tag_to_vendor_version_number(const char *tag)
Convert a version tag string to a vendor version number.