Add missing load.c file to POTFILES.in
[make.git] / tests / scripts / variables / INCLUDE_DIRS
blobc9662e94bbf5a6ccb788e509fa6cbfe71ba7ef57
1 #                                                                    -*-perl-*-
2 $description = "Test the .INCLUDE_DIRS special variable.";
4 $details = "";
6 use Cwd;
8 $dir = cwd;
9 $dir =~ s,.*/([^/]+)$,../$1,;
11 # Test #1: The content of .INCLUDE_DIRS depends on the platform for which
12 #          make was built. What we know for sure is that it shouldn't be
13 #          empty.
15 run_make_test('
16 ifeq ($(.INCLUDE_DIRS),)
17 $(warning .INCLUDE_DIRS is empty)
18 endif
20 .PHONY: all
21 all:;@:
23 '',
24 '');
27 # Test #2: Make sure -I paths end up in .INCLUDE_DIRS.
29 run_make_test('
30 ifeq ($(dir),)
31 $(warning dir is empty)
32 endif
34 ifeq ($(filter $(dir),$(.INCLUDE_DIRS)),)
35 $(warning .INCLUDE_DIRS does not contain $(dir))
36 endif
38 .PHONY: all
39 all:;@:
41 "-I$dir dir=$dir",
42 '');
45 # This tells the test driver that the perl test script executed properly.