20 #include <ndb_global.h>
32 int main(
int argc,
const char** argv){
35 const char * _database=
"BANK";
38 {
"usage",
'?', arg_flag, &_help,
"Print help",
"" },
39 {
"database",
'd', arg_string, &_database,
"Database name",
""}
41 int num_args =
sizeof(args) /
sizeof(args[0]);
44 "This program will validate all GLs in the bank\n";
46 if(getarg(args, num_args, argc, argv, &optind) || _help) {
47 arg_printusage(args, num_args, argv[0], desc);
48 return NDBT_ProgramExit(NDBT_WRONGARGS);
54 return NDBT_ProgramExit(NDBT_FAILED);
57 Bank bank(con,_database);
59 if (bank.performValidateAllGLs() != 0)
60 return NDBT_ProgramExit(NDBT_FAILED);
62 return NDBT_ProgramExit(NDBT_OK);