VirtualBox

source: kBuild/trunk/src/kmk/tests/scripts/features/vpath3@ 3140

Last change on this file since 3140 was 3140, checked in by bird, 7 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

File size: 960 bytes
Line 
1# -*-perl-*-
2
3$description = "Test the interaction of the -lfoo feature and vpath";
4$details = "";
5
6my @dirs_to_make = qw(a1 b1 a2 b2 b3);
7for my $d (@dirs_to_make) {
8 mkdir($d, 0777);
9}
10
11my @files_to_touch = ("a1${pathsep}lib1.a",
12 "a1${pathsep}libc.a",
13 "b1${pathsep}lib1.so",
14 "a2${pathsep}lib2.a",
15 "b2${pathsep}lib2.so",
16 "lib3.a",
17 "b3${pathsep}lib3.so");
18&touch(@files_to_touch);
19
20my $answer = "a1${pathsep}lib1.a a1${pathsep}libc.a " .
21 "a2${pathsep}lib2.a lib3.a\n";
22if ($port_type eq 'VMS-DCL') {
23 $answer =~ s/ /,/g;
24}
25
26run_make_test('
27vpath %.h b3
28vpath %.a a1
29vpath %.so b1
30vpath % a2 b2
31vpath % b3
32all: -l1 -lc -l2 -l3; @echo $^
33',
34 '', $answer);
35
36unlink(@files_to_touch);
37for my $d (@dirs_to_make) {
38 rmdir($d);
39}
40
411;
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette