static void copytest(unsigned buflen) { for (unsigned i = 0; i < 16; ++i) { run_copy(buflen, i, 0); run_copy(buflen, i, 1); } }
void run_all(apr_pool_t *pool, int argc, const char * const *argv) { const char *from_file_path; const char *to_file_path; if (argc != 3) { THROW(MESSAGE_ARGUMENT_INVALID); } from_file_path = argv[1]; to_file_path = argv[2]; if (!File::is_exist(pool, from_file_path)) { THROW(MESSAGE_FILE_NOT_FOUND); } show_item("from_file_path", from_file_path); show_item("to_file_path", to_file_path); show_line(); run_copy(pool, from_file_path, to_file_path); }