History log of /netbsd-current/usr.bin/make/unit-tests/directive-export-gmake.mk
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.9 17-Dec-2023 rillig

tests/make: in 'expect' lines, require the complete text of the line


# 1.8 19-Nov-2023 rillig

tests/make: test and explain exporting of variables


# 1.7 20-Aug-2023 rillig

tests/make: show a difference between 'export' and '.export'


# 1.6 19-Aug-2023 rillig

make: show realistic invalid line in error message

Previously, the error message 'Invalid line' showed only the expanded
line, which might or might not show the actual problem. To be more
helpful, add the unexpanded line to the error message in case they
differ.

Remove the special handling of invalid lines that result from merge
conflicts. RCS is not commonly used anymore, and mentioning CVS was too
specific. By echoing the whole line, the patterns '<<<<<<' and '>>>>>>'
are clear enough to hint at the problem.


# 1.5 19-Aug-2023 rillig

make: add more details to error message about invalid lines


# 1.4 19-Aug-2023 rillig

tests/make: provide instructions for reproducing bug in gmtime

The test is not enabled because its results differ too much between the
platforms.


Revision tags: netbsd-10-0-RC1 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.3 17-Nov-2020 rillig

make(1): fix test directive-export-gmake for dash

Dash only accepts environment variables whose names follow the usual
naming conventions. (I didn't look up the exact details.) In
particular, it rejects environment variables whose names start or end
with spaces.

This would result in an empty output from grep, in which case the exit
status from the shell command is non-zero, thus make prints an error
about this. This error message should not appear in the test output, to
keep the test output the same for all platforms.


# 1.2 19-Oct-2020 rillig

make(1): fix test directive-export-gmake.mk for dash


# 1.1 02-Oct-2020 rillig

make(1): add tests for parsing and exporting variables

Once again, there are a few surprises deeply hidden inside the edge
cases.


# 1.8 19-Nov-2023 rillig

tests/make: test and explain exporting of variables


# 1.7 20-Aug-2023 rillig

tests/make: show a difference between 'export' and '.export'


# 1.6 19-Aug-2023 rillig

make: show realistic invalid line in error message

Previously, the error message 'Invalid line' showed only the expanded
line, which might or might not show the actual problem. To be more
helpful, add the unexpanded line to the error message in case they
differ.

Remove the special handling of invalid lines that result from merge
conflicts. RCS is not commonly used anymore, and mentioning CVS was too
specific. By echoing the whole line, the patterns '<<<<<<' and '>>>>>>'
are clear enough to hint at the problem.


# 1.5 19-Aug-2023 rillig

make: add more details to error message about invalid lines


# 1.4 19-Aug-2023 rillig

tests/make: provide instructions for reproducing bug in gmtime

The test is not enabled because its results differ too much between the
platforms.


Revision tags: netbsd-10-0-RC1 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.3 17-Nov-2020 rillig

make(1): fix test directive-export-gmake for dash

Dash only accepts environment variables whose names follow the usual
naming conventions. (I didn't look up the exact details.) In
particular, it rejects environment variables whose names start or end
with spaces.

This would result in an empty output from grep, in which case the exit
status from the shell command is non-zero, thus make prints an error
about this. This error message should not appear in the test output, to
keep the test output the same for all platforms.


# 1.2 19-Oct-2020 rillig

make(1): fix test directive-export-gmake.mk for dash


# 1.1 02-Oct-2020 rillig

make(1): add tests for parsing and exporting variables

Once again, there are a few surprises deeply hidden inside the edge
cases.


# 1.7 20-Aug-2023 rillig

tests/make: show a difference between 'export' and '.export'


# 1.6 19-Aug-2023 rillig

make: show realistic invalid line in error message

Previously, the error message 'Invalid line' showed only the expanded
line, which might or might not show the actual problem. To be more
helpful, add the unexpanded line to the error message in case they
differ.

Remove the special handling of invalid lines that result from merge
conflicts. RCS is not commonly used anymore, and mentioning CVS was too
specific. By echoing the whole line, the patterns '<<<<<<' and '>>>>>>'
are clear enough to hint at the problem.


# 1.5 19-Aug-2023 rillig

make: add more details to error message about invalid lines


# 1.4 19-Aug-2023 rillig

tests/make: provide instructions for reproducing bug in gmtime

The test is not enabled because its results differ too much between the
platforms.


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.3 17-Nov-2020 rillig

make(1): fix test directive-export-gmake for dash

Dash only accepts environment variables whose names follow the usual
naming conventions. (I didn't look up the exact details.) In
particular, it rejects environment variables whose names start or end
with spaces.

This would result in an empty output from grep, in which case the exit
status from the shell command is non-zero, thus make prints an error
about this. This error message should not appear in the test output, to
keep the test output the same for all platforms.


# 1.2 19-Oct-2020 rillig

make(1): fix test directive-export-gmake.mk for dash


# 1.1 02-Oct-2020 rillig

make(1): add tests for parsing and exporting variables

Once again, there are a few surprises deeply hidden inside the edge
cases.


# 1.6 19-Aug-2023 rillig

make: show realistic invalid line in error message

Previously, the error message 'Invalid line' showed only the expanded
line, which might or might not show the actual problem. To be more
helpful, add the unexpanded line to the error message in case they
differ.

Remove the special handling of invalid lines that result from merge
conflicts. RCS is not commonly used anymore, and mentioning CVS was too
specific. By echoing the whole line, the patterns '<<<<<<' and '>>>>>>'
are clear enough to hint at the problem.


# 1.5 19-Aug-2023 rillig

make: add more details to error message about invalid lines


# 1.4 19-Aug-2023 rillig

tests/make: provide instructions for reproducing bug in gmtime

The test is not enabled because its results differ too much between the
platforms.


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.3 17-Nov-2020 rillig

make(1): fix test directive-export-gmake for dash

Dash only accepts environment variables whose names follow the usual
naming conventions. (I didn't look up the exact details.) In
particular, it rejects environment variables whose names start or end
with spaces.

This would result in an empty output from grep, in which case the exit
status from the shell command is non-zero, thus make prints an error
about this. This error message should not appear in the test output, to
keep the test output the same for all platforms.


# 1.2 19-Oct-2020 rillig

make(1): fix test directive-export-gmake.mk for dash


# 1.1 02-Oct-2020 rillig

make(1): add tests for parsing and exporting variables

Once again, there are a few surprises deeply hidden inside the edge
cases.


# 1.3 17-Nov-2020 rillig

make(1): fix test directive-export-gmake for dash

Dash only accepts environment variables whose names follow the usual
naming conventions. (I didn't look up the exact details.) In
particular, it rejects environment variables whose names start or end
with spaces.

This would result in an empty output from grep, in which case the exit
status from the shell command is non-zero, thus make prints an error
about this. This error message should not appear in the test output, to
keep the test output the same for all platforms.


# 1.2 19-Oct-2020 rillig

make(1): fix test directive-export-gmake.mk for dash


# 1.1 02-Oct-2020 rillig

make(1): add tests for parsing and exporting variables

Once again, there are a few surprises deeply hidden inside the edge
cases.


# 1.2 19-Oct-2020 rillig

make(1): fix test directive-export-gmake.mk for dash


# 1.1 02-Oct-2020 rillig

make(1): add tests for parsing and exporting variables

Once again, there are a few surprises deeply hidden inside the edge
cases.