summaryrefslogtreecommitdiff
path: root/tests/scripts/variables/GNUMAKEFLAGS
blob: 7bfd8227fa074f6706ee7aaf45c5931c9e90f4cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#                                                                    -*-perl-*-

$description = "Test proper behavior of GNUMAKEFLAGS";

# Accept flags from GNUMAKEFLAGS as well as MAKEFLAGS
# Results always go in MAKEFLAGS

$extraENV{'GNUMAKEFLAGS'} = '-e -r -R';

run_make_test(q!
all: ; @echo $(MAKEFLAGS)
!,
              '', 'Rre');

# Long arguments mean everything is prefixed with "-"

$extraENV{'GNUMAKEFLAGS'} = '--no-print-directory -e -r -R --trace=none --trace=dir';

run_make_test(q!
all: ; @echo $(MAKEFLAGS)
!,
              '', '--no-print-directory --trace=none --trace=dir --trace=none --trace=dir -Rre');

1;