The NetBSD Project

CVS log for src/tests/usr.bin/indent/Attic/t_options.awk

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.14, Sat May 20 21:32:05 2023 UTC (9 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED

tests/indent: migrate test driver from AWK to Lua

Lua reports more details when os.execute fails, which is useful when
running old versions of indent for comparison.  The new test driver also
supports multiple test files in the same run.

Revision 1.13 / (download) - annotate - [select for diffs], Sat May 20 17:31:53 2023 UTC (9 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.12: +5 -10 lines
Diff to previous 1.12 (colored)

tests/indent: clean up test driver

No functional change.

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 15 17:38:56 2023 UTC (9 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

indent: remove accidental space before tab

Revision 1.11 / (download) - annotate - [select for diffs], Thu May 11 09:28:53 2023 UTC (9 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

indent: remove buggy code for swapping tokens

It is not the job of an indenter to swap tokens, even if it's only about
placing comments elsewhere.  The code that swapped the tokens was
complicated, buggy and impossible to understand.

In -br (brace right) mode, indent no longer moves a '{' from the
beginning of a line to the end of the previous line, as that was handled
by the token swapping code as well.  This change is unintended, but it
will be easier to re-add that now that the code is simpler.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Apr 24 09:04:12 2022 UTC (22 months, 1 week ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.9: +9 -9 lines
Diff to previous 1.9 (colored)

tests/indent: change directive from '#' to '//'

Using a '//' instead of '#' turns the directives into well-formed C
code, resulting in fewer error markers in the editor.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Apr 24 08:52:44 2022 UTC (22 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.8: +18 -1 lines
Diff to previous 1.8 (colored)

tests/indent: normalize amount of empty lines between test cases

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 22 21:21:20 2022 UTC (22 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored)

indent: remove FreeBSD IDs

Most of the IDs were empty anyway.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 20 13:14:34 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.6: +1 -3 lines
Diff to previous 1.6 (colored)

indent/tests: remove outdated comment

This task was resolved in the previous commit.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Nov 20 13:07:57 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

indent/tests: make warning for empty lines more helpful

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 20 11:13:18 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.4: +28 -1 lines
Diff to previous 1.4 (colored)

tests/indent: normalize empty lines in tests

Revision 1.4 / (download) - annotate - [select for diffs], Sat Nov 20 10:24:30 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

tests/indent: clean up test for the options '-cdb' and '-ncdb'

Revision 1.3 / (download) - annotate - [select for diffs], Thu Nov 18 17:11:13 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.2: +29 -29 lines
Diff to previous 1.2 (colored)

tests/indent: reorder code in test driver

No functional change.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 23 20:35:18 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.1: +5 -1 lines
Diff to previous 1.1 (colored)

tests/indent: prevent non-comment text to be ignored in the tests

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 18 20:18:00 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN

tests/indent: extend tests for labels, extract test driver

Having the test driver in a separate file allows to run it on its own,
as 'awk -f t_options.awk label.c'. When the test driver warns, exit 1;
this is only needed for the standalone version, when run from inside ATF
the warnings on stderr already suffice to make the test fail in the end.

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>