The NetBSD Project

CVS log for src/usr.bin/make/Attic/test-variants.sh

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / make

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16, Sat Feb 5 00:20:48 2022 UTC (11 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED

tests/make: migrate test-variants.sh from shell to make

Using a makefile for defining the test variants allows running several
test variants individually, instead of using a single filter expression.

The test variants can be configured more fine-grained.  It is possible
to exclude a few test cases per variant, which is useful for no-regex, a
compile-time switch for excluding the variable modifier ':C'.

Fix the definitions for the C90 tests.  Previously they didn't override
the compiler option '-Wsystem-headers', thereby complaining about usage
of 'long long'.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jan 29 10:44:40 2022 UTC (12 months ago) by rillig
Branch: MAIN
Changes since 1.14: +10 -10 lines
Diff to previous 1.14 (colored)

tests/make: clean up variants that are tested

Since main.c 1.373 from 2020-10-18, make does not use iovec anymore, so
remove that test variant.

Document the details of why generating the test coverage took so long on
NetBSD < 10.

Add another test variant with optimization for binary size (-Os), since
with that option, GCC 10 does not perform the same data flow analysis as
with -O2, in particular it gets confused about whether local variables
are correctly initialized across function calls.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Dec 9 20:47:33 2021 UTC (13 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.13: +8 -4 lines
Diff to previous 1.13 (colored)

make: add back support for jemalloc 100

The ports sun2 and vax default to jemalloc 100, as opposed to the rest
of the ports, which use jemalloc 510.  Some developers choose to use
jemalloc 100, so let them run the tests with memory debugging as well.

Suggested by mrg on source-changes-d.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Dec 5 14:57:36 2021 UTC (13 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

tests/make: migrate to jemalloc > 100

When I started working on usr.bin/make in 2020, I used NetBSD 8, which
used jemalloc 100.

After updating to NetBSD 8 to 9.99.x, the debugging options for jemalloc
stopped working since MALLOC_OPTIONS had been replaced with MALLOC_CONF
in 2019.

Enable malloc debugging again, to reliably reproduce the use-after-free
for the variable modifier ':@'.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Sep 12 10:28:40 2021 UTC (16 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.11: +8 -2 lines
Diff to previous 1.11 (colored)

tests/make: allow to only test selected variants

Testing all variants takes several minutes, so make it possible to test
a single or a few test variants separately.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Sep 12 09:51:14 2021 UTC (16 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.10: +8 -2 lines
Diff to previous 1.10 (colored)

make: error out if a pre-C99 platform defines bool in some cases

On NetBSD/amd64 9.99.88, when compiling make in C90 mode, make.h defined
its own boolean type as an alias for unsigned int.  Not plain int since
that would make the value of bit-fields -1 instead of 1.

This worked fine for all files except main.c, which includes
<sys/sysctl.h>, which in turn includes <stdbool.h> unconditionally, even
in C90 mode.  This meant that in main.c, sizeof(bool) was 1, while in
all other files it was 4.

This in turn led to a segmentation fault when ParseDependencySourceMain
tried to access opts.create.  Since parse.c assumed sizeof(bool) == 4,
it computed an offset outside of struct CmdOpts, which was defined in
main.c with sizeof(bool) == 1.

Rather than risking these segmentation faults, prevent building make on
platforms like these and suggest a proper workaround.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Apr 3 11:08:40 2021 UTC (22 months ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.9: +1 -16 lines
Diff to previous 1.9 (colored)

make: use C99 bool type instead of defining its own

No functional change.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 15 07:42:35 2021 UTC (23 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

make: fix typo in comment

Revision 1.8 / (download) - annotate - [select for diffs], Mon Dec 7 22:27:56 2020 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.7: +7 -1 lines
Diff to previous 1.7 (colored)

make(1): normalize output of test sh-dots for non-native mode

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 29 21:27:08 2020 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

make(1): add test variant for reference counting logging

Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 20 00:24:21 2020 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.5: +9 -2 lines
Diff to previous 1.5 (colored)

make(1): run tests with different shells as well, reduce output

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 23 17:59:25 2020 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.4: +5 -1 lines
Diff to previous 1.4 (colored)

make(1): allow compilation with Boolean implemented as char

Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 21 04:20:35 2020 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored)

make(1): run tests with absolute filenames as well

The tests varname-dot-parsedir and varname-dot-parsefile had been broken
before if they were run with the "-f $PWD/$test.mk" option.  This way of
running the tests is used by FreeBSD.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 31 18:57:41 2020 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.2: +28 -2 lines
Diff to previous 1.2 (colored)

make(1): extend the documentation for the test variants

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 31 17:25:29 2020 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.1: +30 -8 lines
Diff to previous 1.1 (colored)

make(1): document the purpose of the test variants

Revision 1.1 / (download) - annotate - [select for diffs], Mon Aug 31 16:51:17 2020 UTC (2 years, 5 months ago) by rillig
Branch: MAIN

make(1): add test driver for different build options

This program's purpose is to reduce the build failures of the whole
build.sh just because one of the many possible configurations fails.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>