MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include "TestUtil.hpp"
#include "TestRunner.hpp"
#include "moab/ProgOptions.hpp"
#include <limits>
#include <cstdlib>
#include <iterator>
Go to the source code of this file.
Macros | |
#define | ARGCV(A) ( sizeof( A ) / sizeof( ( A )[0] ) ), const_cast< char** >( A ) |
Functions | |
void | test_flag_opt_short () |
void | test_flag_opt_long_short () |
void | test_flag_opt_long () |
void | test_flag_cancel () |
void | test_flag_store_false () |
void | test_int_opt () |
void | test_int_arg () |
void | test_real_opt () |
void | test_real_arg () |
void | test_string_opt () |
void | test_string_arg () |
void | test_string_rank_subst () |
void | test_int_vect_opt () |
void | test_int_vect_arg () |
void | test_optional_args () |
void | test_optional_arg () |
void | test_squashed_short () |
int | main (int argc, char *argv[]) |
#define ARGCV | ( | A | ) | ( sizeof( A ) / sizeof( ( A )[0] ) ), const_cast< char** >( A ) |
Definition at line 33 of file test_prog_opt.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 35 of file test_prog_opt.cpp.
References REGISTER_TEST, RUN_TESTS, test_flag_cancel(), test_flag_opt_long(), test_flag_opt_long_short(), test_flag_opt_short(), test_flag_store_false(), test_int_arg(), test_int_opt(), test_int_vect_arg(), test_int_vect_opt(), test_optional_arg(), test_optional_args(), test_real_arg(), test_real_opt(), test_squashed_short(), test_string_arg(), test_string_opt(), and test_string_rank_subst().
void test_flag_cancel | ( | ) |
Definition at line 112 of file test_prog_opt.cpp.
References ProgOptions::add_cancel_opt, ProgOptions::addOpt(), ARGCV, CHECK, and ProgOptions::parseCommandLine().
Referenced by main().
void test_flag_opt_long | ( | ) |
Definition at line 99 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ARGCV, CHECK, CHECK_EQUAL, ProgOptions::numOptSet(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_flag_opt_long_short | ( | ) |
Definition at line 86 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ARGCV, CHECK, CHECK_EQUAL, ProgOptions::numOptSet(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_flag_opt_short | ( | ) |
Definition at line 75 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ARGCV, CHECK, CHECK_EQUAL, ProgOptions::numOptSet(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_flag_store_false | ( | ) |
Definition at line 136 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ARGCV, CHECK, ProgOptions::parseCommandLine(), and ProgOptions::store_false.
Referenced by main().
void test_int_arg | ( | ) |
Definition at line 171 of file test_prog_opt.cpp.
References ProgOptions::addRequiredArg(), ARGCV, CHECK_EQUAL, ProgOptions::getReqArg(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_int_opt | ( | ) |
Definition at line 146 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ARGCV, CHECK, CHECK_EQUAL, ProgOptions::getOpt(), ProgOptions::getOptAllArgs(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_int_vect_arg | ( | ) |
Definition at line 374 of file test_prog_opt.cpp.
References ProgOptions::addRequiredArg(), ARGCV, CHECK_ARRAYS_EQUAL, CHECK_EQUAL, ProgOptions::getReqArg(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_int_vect_opt | ( | ) |
Definition at line 339 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ARGCV, CHECK, CHECK_ARRAYS_EQUAL, CHECK_EQUAL, ProgOptions::getOpt(), ProgOptions::getOptAllArgs(), ProgOptions::parseCommandLine(), and size.
Referenced by main().
void test_optional_arg | ( | ) |
Definition at line 416 of file test_prog_opt.cpp.
References ProgOptions::addOptionalArgs(), ProgOptions::addRequiredArg(), ARGCV, CHECK, CHECK_EQUAL, ProgOptions::getArgs(), init(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_optional_args | ( | ) |
Definition at line 389 of file test_prog_opt.cpp.
References ProgOptions::addOptionalArgs(), ProgOptions::addRequiredArg(), ARGCV, CHECK, CHECK_EQUAL, ProgOptions::getArgs(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_real_arg | ( | ) |
Definition at line 210 of file test_prog_opt.cpp.
References ProgOptions::addRequiredArg(), ARGCV, CHECK_REAL_EQUAL, EPS, ProgOptions::getReqArg(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_real_opt | ( | ) |
Definition at line 184 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ARGCV, CHECK, CHECK_EQUAL, CHECK_REAL_EQUAL, EPS, ProgOptions::getOpt(), ProgOptions::getOptAllArgs(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_squashed_short | ( | ) |
Definition at line 447 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ARGCV, CHECK, CHECK_EQUAL, CHECK_REAL_EQUAL, ProgOptions::numOptSet(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_string_arg | ( | ) |
Definition at line 268 of file test_prog_opt.cpp.
References ProgOptions::addRequiredArg(), ARGCV, CHECK_EQUAL, ProgOptions::getReqArg(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_string_opt | ( | ) |
Definition at line 224 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ARGCV, CHECK, CHECK_EQUAL, ProgOptions::getOpt(), ProgOptions::getOptAllArgs(), and ProgOptions::parseCommandLine().
Referenced by main().
void test_string_rank_subst | ( | ) |
Definition at line 281 of file test_prog_opt.cpp.
References ProgOptions::addOpt(), ProgOptions::addRequiredArg(), ARGCV, buffer, CHECK, CHECK_EQUAL, ProgOptions::getOpt(), ProgOptions::getOptAllArgs(), ProgOptions::getReqArg(), MPI_COMM_WORLD, ProgOptions::parseCommandLine(), rank, ProgOptions::rank_subst, and size.
Referenced by main().