diff --git a/tests/test/c/insertPerRow.c b/tests/test/c/insertPerRow.c index 3c9564bcd20c6b37a3e0c5dd95a56c44fe5d3e32..74ab238c3f06c2c2c0d3c501b47f0d835befa299 100644 --- a/tests/test/c/insertPerRow.c +++ b/tests/test/c/insertPerRow.c @@ -253,7 +253,7 @@ void generateRandomPoints() { void printHelp() { char indent[10] = " "; - printf("Used to test the performance of TDengine, the insert method is table-by-table\n"); + printf("Used to test the performance of TDengine\n After writing one row of data to all tables, write the next row\n"); printf("%s%s\n", indent, "-d"); printf("%s%s%s%s\n", indent, indent, "The name of the database to be created, default is ", dbName); @@ -284,6 +284,8 @@ void shellParseArgument(int argc, char *argv[]) { exit(0); } else if (strcmp(argv[i], "-d") == 0) { strcpy(dbName, argv[++i]); + } else if (strcmp(argv[i], "-c") == 0) { + strcpy(configDir, argv[++i]); } else if (strcmp(argv[i], "-s") == 0) { strcpy(stableName, argv[++i]); } else if (strcmp(argv[i], "-r") == 0) { diff --git a/tests/test/c/insertPerTable.c b/tests/test/c/insertPerTable.c index ee4e0fecbd29bc88cef12d0dfa467a03611576c9..ca634074636304c38a7c76d044f3829c51ac2d09 100644 --- a/tests/test/c/insertPerTable.c +++ b/tests/test/c/insertPerTable.c @@ -258,7 +258,7 @@ void generateRandomPoints() { void printHelp() { char indent[10] = " "; - printf("Used to test the performance of TDengine, the insert method is table-by-table\n"); + printf("Used to test the performance of TDengine\n After writing all the data in one table, start the next table\n"); printf("%s%s\n", indent, "-d"); printf("%s%s%s%s\n", indent, indent, "The name of the database to be created, default is ", dbName); @@ -289,6 +289,8 @@ void shellParseArgument(int argc, char *argv[]) { exit(0); } else if (strcmp(argv[i], "-d") == 0) { strcpy(dbName, argv[++i]); + } else if (strcmp(argv[i], "-c") == 0) { + strcpy(configDir, argv[++i]); } else if (strcmp(argv[i], "-s") == 0) { strcpy(stableName, argv[++i]); } else if (strcmp(argv[i], "-r") == 0) {