int do_hw_test(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { char *cmd; if (argc != 2) { printf("Usage:\n%s\n", cmdtp->usage); return 1; } cmd = argv[1]; switch (cmd[0]) { case 'a': /* all */ test_pld(); test_led(); test_dipsw(); test_sm107(); test_net(); test_sata(); test_pci(); break; case 'p': /* pld or pci */ if (cmd[1] == 'l') test_pld(); else test_pci(); break; case 'l': /* led */ test_led(); break; case 'd': /* dipsw */ test_dipsw(); break; case 's': /* sm107 or sata */ if (cmd[1] == 'm') test_sm107(); else test_sata(); break; case 'n': /* net */ test_net(); break; default: printf("Usage:\n%s\n", cmdtp->usage); return 1; } return 0; }
// For testing BinkConfig::BinkConfig(int callout_node_number, const wwiv::sdk::Config& config, const string& network_dir) : config_(config), callout_network_name_("wwivnet"), callout_wwivnet_node_(callout_node_number), networks_({ test_net(network_dir) }) { binkp_.reset(new Binkp(network_dir)); system_name_ = config.config()->systemname; sysop_name_ = config.config()->sysopname; gfiles_directory_ = config.config()->gfilesdir; }
int _tmain(int argc, _TCHAR* argv[]) { LOG_F("xTest main(), 测试 \n"); int arg = 1018; switch(arg) { case 1000: { test_util_ex(); }break; case 1: { test_util(); }break; case 2: { test_container(); }break; case 3: { test_thread(); }break; case 4: { test_net(true); }break; case 5: { test_boost(); }break; case 6: { test_kbe(); }break; case 1001: { test_db(); }break; case 1002: { test_math(); }break; case 1003: { test_design(); }break; case 1005: { //test_net(false); test_async(true); }break; case 1006: { test_lua(); }break; case 1007: { test_js(); }break; case 1008: { test_proto(); }break; case 1010: { test_graph(); }break; case 1011: { test_graph_d3d(); }break; case 1013: { test_cv(); }break; case 1015: { test_battle(); }break; case 1016: { test_hacker(); }break; case 1017: { test_yh(); }break; case 1018: { test_ai(); } case 1900: { test_tool(); }break; default: { MainEx(argc, argv); }break; } // { // int n = X::Init(NULL); // LOGD_F(" n = %d", n); // // X_HSER->Init(); // X_HSER->Start(); // // X_HSER->Stop(); // X_HSER->Destroy(); // } // { // // [4/26/2015 Administrator] // HINSTANCE hnst=LoadLibrary(_T("xService.dll")); // FreeLibrary(hnst); // // HINSTANCE hnst2=LoadLibrary(_T("xService.dll")); // FreeLibrary(hnst); // // } LOG_F("xTest main(), end"); while(true) { X::Sleep_f(1); } return 0; }
int main(int argc, char* argv[]) { test_net(); test_net_state(); return 0; }