PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Tests main file, loads individual tests. More...
#include "tests_main.h"
#include <px4_platform_common/px4_config.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
Go to the source code of this file.
Macros | |
#define | OPT_NOHELP (1<<0) |
#define | OPT_NOALLTEST (1<<1) |
#define | OPT_NOJIGTEST (1<<2) |
#define | NTESTS (sizeof(tests) / sizeof(tests[0])) |
Functions | |
static int | test_help (int argc, char *argv[]) |
static int | test_runner (unsigned option) |
static int | test_all (int argc, char *argv[]) |
static int | test_jig (int argc, char *argv[]) |
__EXPORT int | tests_main (int argc, char *argv[]) |
Executes system tests. More... | |
Variables | |
struct { | |
const char * name | |
int(* fn )(int argc, char *argv[]) | |
unsigned options | |
} | tests [] |
Tests main file, loads individual tests.
Definition in file tests_main.c.
Definition at line 133 of file tests_main.c.
Referenced by test_runner().
#define OPT_NOALLTEST (1<<1) |
Definition at line 62 of file tests_main.c.
Referenced by test_all().
#define OPT_NOHELP (1<<0) |
Definition at line 61 of file tests_main.c.
#define OPT_NOJIGTEST (1<<2) |
Definition at line 63 of file tests_main.c.
Referenced by test_jig().
|
static |
Definition at line 150 of file tests_main.c.
References OPT_NOALLTEST, and test_runner().
|
static |
Definition at line 136 of file tests_main.c.
|
static |
Definition at line 156 of file tests_main.c.
References OPT_NOJIGTEST, and test_runner().
|
static |
Definition at line 162 of file tests_main.c.
References fn, name, NTESTS, tests, and tests_main().
Referenced by test_all(), and test_jig().
int tests_main | ( | int | argc, |
char * | argv[] | ||
) |
Executes system tests.
Definition at line 252 of file tests_main.c.
References fn, name, and tests.
Referenced by test_runner().
int(* fn) (int argc, char *argv[]) |
Definition at line 59 of file tests_main.c.
Referenced by px4io_main(), test_runner(), and tests_main().
const char* name |
Definition at line 58 of file tests_main.c.
Referenced by UavcanNode::attachITxQueueInjector(), DShotOutput::custom_command(), cdev::file_t::file_t(), UavcanNode::get_set_param(), MavlinkParametersManager::handle_message(), RCUpdate::initialize_parameter_handles(), px4::ReplayEkf2::onExitMainLoop(), param_export(), param_hash_check(), param_reset_excludes(), FXAS21002C::print_registers(), FXOS8701CQ::print_registers(), px4::Replay::readFormat(), cdev::CDev::register_class_devname(), register_driver(), control::SuperBlock::setDt(), test_help(), test_runner(), tests_main(), cdev::CDev::unregister_class_devname(), control::SuperBlock::updateChildParams(), control::Block::updateParams(), and px4::logger::Logger::write_info().
unsigned options |
Definition at line 60 of file tests_main.c.
const { ... } tests[] |
Referenced by test_help(), test_runner(), and tests_main().