rbdlsim/3rdparty/rbdl/tests/main.cc

20 lines
332 B
C++

#include <UnitTest++.h>
#include <iostream>
#include <string>
#include <rbdl/rbdl.h>
int main (int argc, char *argv[])
{
rbdl_check_api_version (RBDL_API_VERSION);
if (argc > 1) {
std::string arg (argv[1]);
if (arg == "-v" || arg == "--version")
rbdl_print_version();
}
return UnitTest::RunAllTests ();
}