50 lines
1.7 KiB
Makefile
50 lines
1.7 KiB
Makefile
# $NetBSD: directive-info.mk,v 1.11 2023/06/01 20:56:35 rillig Exp $
|
|
#
|
|
# Tests for the .info directive.
|
|
#
|
|
# Until parse.c 1.502 from 2020-12-19, a missing argument to the directive
|
|
# produced the wrong error message "Unknown directive". Since parse.c 1.503
|
|
# from 2020-12-19, the correct "Missing argument" is produced.
|
|
|
|
# TODO: Implementation
|
|
|
|
# expect+1: begin .info tests
|
|
.info begin .info tests
|
|
# expect+1: Unknown directive "inf"
|
|
.inf # misspelled
|
|
# expect+1: Missing argument for ".info"
|
|
.info
|
|
# expect+1: message
|
|
.info message
|
|
# expect+1: indented message
|
|
.info indented message
|
|
# expect+1: Unknown directive "information"
|
|
.information
|
|
# expect+1: Unknown directive "information"
|
|
.information message # Accepted before 2020-12-13 01:07:54.
|
|
.info.man: # not a message, but possibly a suffix rule
|
|
|
|
# Even if lines would have trailing whitespace, this would be trimmed by
|
|
# ParseRawLine.
|
|
# expect+1: Missing argument for ".info"
|
|
.info
|
|
# expect+1: Missing argument for ".info"
|
|
.info # comment
|
|
|
|
.info: message # This is a dependency declaration.
|
|
# expect+1: Unknown directive "info-message"
|
|
.info-message # This is an unknown directive.
|
|
# expect+1: no-target: no-source
|
|
.info no-target: no-source # This is a .info directive, not a dependency.
|
|
# See directive.mk for more tests of this kind.
|
|
|
|
# Since at least 2002-01-01 and before parse.c 1.639 from 2022-01-08, the line
|
|
# number that is used in error messages and the .info directives was the
|
|
# number of completely read lines. For the following multi-line directive,
|
|
# this meant that the reported line number was the one of the last line, not
|
|
# of the first line.
|
|
# expect+1: expect line 35 for multi-line message
|
|
.info expect line 35 for\
|
|
multi$\
|
|
-line message
|