diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-01-08 20:20:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:53 -0500 |
commit | d7963738959b4e9d4d1cc814aa93dbf341c56a64 (patch) | |
tree | 7cda3da82174db650f2e57ff1736373d442c62bc /source4/pidl | |
parent | a55287a2859da212a1b7424ad1914cbfade07b42 (diff) | |
download | samba-d7963738959b4e9d4d1cc814aa93dbf341c56a64.tar.gz samba-d7963738959b4e9d4d1cc814aa93dbf341c56a64.tar.xz samba-d7963738959b4e9d4d1cc814aa93dbf341c56a64.zip |
r12776: use $ENV{TEST_DATA_PREFIX} for test files if available
metze
(This used to be commit 5552eaa37c228872736688bb65b4f678bdfeddf4)
Diffstat (limited to 'source4/pidl')
-rw-r--r-- | source4/pidl/tests/Util.pm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/pidl/tests/Util.pm b/source4/pidl/tests/Util.pm index c85ef72d0ab..cd2ba2a37ec 100644 --- a/source4/pidl/tests/Util.pm +++ b/source4/pidl/tests/Util.pm @@ -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."; |