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:
@ -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",
|
||||
|
Reference in New Issue
Block a user