1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

Remove dynamic translation of regression test scripts, step 2.

"git mv" all the input/*.source and output/*.source files into
the corresponding sql/ and expected/ directories.  Then remove
the pg_regress and Makefile infrastructure associated with
dynamic translation.

Discussion: https://postgr.es/m/1655733.1639871614@sss.pgh.pa.us
This commit is contained in:
Tom Lane
2021-12-20 14:15:52 -05:00
parent d1029bb5a2
commit dc9c3b0ff2
38 changed files with 8 additions and 197 deletions

View File

@ -166,9 +166,14 @@ ecpg_start_test(const char *testname,
snprintf(inprg, sizeof(inprg), "%s/%s", inputdir, testname);
snprintf(insource, sizeof(insource), "%s.c", testname);
/* make a version of the test name that has dashes in place of slashes */
initStringInfo(&testname_dash);
appendStringInfoString(&testname_dash, testname);
replace_string(&testname_dash, "/", "-");
for (char *c = testname_dash.data; *c != '\0'; c++)
{
if (*c == '/')
*c = '-';
}
snprintf(expectfile_stdout, sizeof(expectfile_stdout),
"%s/expected/%s.stdout",