summaryrefslogtreecommitdiff
path: root/tests/scripts/features/vpath3
diff options
context:
space:
mode:
authorJohn Malmberg <wb8tyw@qsl.net>2014-09-11 22:39:34 -0500
committerPaul Smith <psmith@gnu.org>2014-10-20 01:31:42 -0400
commit18eb093f569812e832a0fedcf867c85be1ae45c6 (patch)
treeff9b2ec2174b54227f27d5be89648811a74a7ec2 /tests/scripts/features/vpath3
parent894ee7f6c8b96ed89d4672da6cde4105c15cbf31 (diff)
downloadgunmake-18eb093f569812e832a0fedcf867c85be1ae45c6.tar.gz
[SV 41758]: Fix archive support for VMS.
Upated to match change to run_make_tests and some future fixes to make on VMS. * arscan.c: Use ANSI compatible pragmas instead of VAX C extensions. * tests/scripts/features/archives: Fix tests to use VMS rules and answers when running on VMS and using DCL as a shell. * tests/scripts/features/vpath3: Fix epected answer on test when run on VMS. * tests/scripts/vms/library: (New) Test the VMS library rules that are not tested by existing tests.
Diffstat (limited to 'tests/scripts/features/vpath3')
-rw-r--r--tests/scripts/features/vpath38
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/scripts/features/vpath3 b/tests/scripts/features/vpath3
index c6ede28..839fb72 100644
--- a/tests/scripts/features/vpath3
+++ b/tests/scripts/features/vpath3
@@ -17,6 +17,12 @@ my @files_to_touch = ("a1${pathsep}lib1.a",
"b3${pathsep}lib3.so");
&touch(@files_to_touch);
+my $answer = "a1${pathsep}lib1.a a1${pathsep}libc.a " .
+ "a2${pathsep}lib2.a lib3.a\n";
+if ($port_type eq 'VMS-DCL') {
+ $answer =~ s/ /,/g;
+}
+
run_make_test('
vpath %.h b3
vpath %.a a1
@@ -25,7 +31,7 @@ vpath % a2 b2
vpath % b3
all: -l1 -lc -l2 -l3; @echo $^
',
- '', "a1${pathsep}lib1.a a1${pathsep}libc.a a2${pathsep}lib2.a lib3.a\n");
+ '', $answer);
unlink(@files_to_touch);
for my $d (@dirs_to_make) {