Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite4bb915

Browse files
committed
Support preprocessing of atx tests under windows
1 parent837b196 commite4bb915

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎src/tools/msvc/Mkvcbuild.pm

100644100755
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,9 @@ sub mkvcbuild
514514
if (!(defined($pyprefix) &&defined($pyver)));
515515

516516
my$pymajorver =substr($pyver, 0, 1);
517+
ProcessTestSubstitutions("python_majorversion",$pymajorver,
518+
"src/test/regress/sql/atx.sql",
519+
"src/test/regress/expected/atx.out");
517520
my$plpython =$solution->AddProject('plpython' .$pymajorver,
518521
'dll','PLs','src/pl/plpython');
519522
$plpython->AddIncludeDir($pyprefix .'/include');
@@ -983,4 +986,20 @@ sub AdjustModule
983986
}
984987
}
985988

989+
subProcessTestSubstitutions {
990+
my$varname =shift;
991+
my$varvalue =shift;
992+
formy$file (@_) {
993+
open IN,"<","${file}.in"ordie"${file}.in not found";
994+
open OUT,">",$file;
995+
while (<IN>) {
996+
s/\@$varname\@/$varvalue/g;
997+
print OUT$_;
998+
}
999+
close IN;
1000+
close OUT;
1001+
}
1002+
}
1003+
1004+
9861005
1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp