1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r12776: use $ENV{TEST_DATA_PREFIX} for test files if available

metze
(This used to be commit 5552eaa37c)
This commit is contained in:
Stefan Metzmacher 2006-01-08 20:20:18 +00:00 committed by Gerald (Jerry) Carter
parent a55287a285
commit d796373895

View File

@ -25,7 +25,7 @@ sub test_samba4_ndr($$$)
my ($name,$idl,$c) = @_;
my $pidl = Parse::Pidl::IDL::parse_string("interface echo { $idl }; ", "<$name>");
ok (defined($pidl), "($name) parse idl");
ok(defined($pidl), "($name) parse idl");
my $header = Parse::Pidl::Samba4::Header::Parse($pidl);
ok(defined($header), "($name) generate generic header");
my $pndr = Parse::Pidl::NDR::Parse($pidl);
@ -45,7 +45,14 @@ SKIP: {
skip "no sane C compiler, skipping compilation", 3
if not $sanecc;
my $outfile = "test-$name";
my $test_data_prefix = $ENV{TEST_DATA_PREFIX};
my $outfile;
if (defined($test_data_prefix)) {
$outfile = "$test_data_prefix/test-$name";
} else {
$outfile = "test-$name";
}
#my $cflags = $ENV{CFLAGS};
my $cflags = "-Iinclude -Ilib -I.";