]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(validate): Create test files in $(srcdir), not in build dir.
authorJim Meyering <jim@meyering.net>
Fri, 4 Jul 1997 08:09:15 +0000 (08:09 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 4 Jul 1997 08:09:15 +0000 (08:09 +0000)
tests/cut/mk-script.pl
tests/head/mk-script.pl
tests/join/mk-script.pl
tests/ls/mk-script.pl

index eb022d32463a7ff681808fbdcb53352347bd43bd..adfba98d2f9acbae7841213c7f638d3b83c2f9d1 100644 (file)
@@ -14,6 +14,8 @@ use POSIX qw (assert);
 BEGIN { push @INC, '@srcdir@' if '@srcdir@' ne '.'; }
 use Test;
 
+my $srcdir = '@srcdir@';
+
 sub validate
 {
   my %seen;
@@ -114,7 +116,7 @@ sub spec_to_list ($$$)
       my $suffix = (@content_string > 1 ? $i : '');
       my $maint_gen_file = "$test_name$type$suffix";
       push (@maint_gen_file, $maint_gen_file);
-      open (F, ">$maint_gen_file") || die "$0: $maint_gen_file: $!\n";
+      open (F, ">$srcdir/$maint_gen_file") || die "$0: $maint_gen_file: $!\n";
       print F $file_contents;
       close (F) || die "$0: $maint_gen_file: $!\n";
       ++$i;
index eb022d32463a7ff681808fbdcb53352347bd43bd..adfba98d2f9acbae7841213c7f638d3b83c2f9d1 100644 (file)
@@ -14,6 +14,8 @@ use POSIX qw (assert);
 BEGIN { push @INC, '@srcdir@' if '@srcdir@' ne '.'; }
 use Test;
 
+my $srcdir = '@srcdir@';
+
 sub validate
 {
   my %seen;
@@ -114,7 +116,7 @@ sub spec_to_list ($$$)
       my $suffix = (@content_string > 1 ? $i : '');
       my $maint_gen_file = "$test_name$type$suffix";
       push (@maint_gen_file, $maint_gen_file);
-      open (F, ">$maint_gen_file") || die "$0: $maint_gen_file: $!\n";
+      open (F, ">$srcdir/$maint_gen_file") || die "$0: $maint_gen_file: $!\n";
       print F $file_contents;
       close (F) || die "$0: $maint_gen_file: $!\n";
       ++$i;
index eb022d32463a7ff681808fbdcb53352347bd43bd..adfba98d2f9acbae7841213c7f638d3b83c2f9d1 100644 (file)
@@ -14,6 +14,8 @@ use POSIX qw (assert);
 BEGIN { push @INC, '@srcdir@' if '@srcdir@' ne '.'; }
 use Test;
 
+my $srcdir = '@srcdir@';
+
 sub validate
 {
   my %seen;
@@ -114,7 +116,7 @@ sub spec_to_list ($$$)
       my $suffix = (@content_string > 1 ? $i : '');
       my $maint_gen_file = "$test_name$type$suffix";
       push (@maint_gen_file, $maint_gen_file);
-      open (F, ">$maint_gen_file") || die "$0: $maint_gen_file: $!\n";
+      open (F, ">$srcdir/$maint_gen_file") || die "$0: $maint_gen_file: $!\n";
       print F $file_contents;
       close (F) || die "$0: $maint_gen_file: $!\n";
       ++$i;
index eb022d32463a7ff681808fbdcb53352347bd43bd..adfba98d2f9acbae7841213c7f638d3b83c2f9d1 100644 (file)
@@ -14,6 +14,8 @@ use POSIX qw (assert);
 BEGIN { push @INC, '@srcdir@' if '@srcdir@' ne '.'; }
 use Test;
 
+my $srcdir = '@srcdir@';
+
 sub validate
 {
   my %seen;
@@ -114,7 +116,7 @@ sub spec_to_list ($$$)
       my $suffix = (@content_string > 1 ? $i : '');
       my $maint_gen_file = "$test_name$type$suffix";
       push (@maint_gen_file, $maint_gen_file);
-      open (F, ">$maint_gen_file") || die "$0: $maint_gen_file: $!\n";
+      open (F, ">$srcdir/$maint_gen_file") || die "$0: $maint_gen_file: $!\n";
       print F $file_contents;
       close (F) || die "$0: $maint_gen_file: $!\n";
       ++$i;