Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.10 / (download) - annotate - [select for diffs], Sun Apr 24 09:04:12 2022 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base,
netbsd-10,
HEAD
Changes since 1.9: +7 -7
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], Fri Apr 22 21:21:20 2022 UTC (9 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.8: +1 -3
lines
Diff to previous 1.8 (colored)
indent: remove FreeBSD IDs Most of the IDs were empty anyway.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 18 20:18:00 2021 UTC (15 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.7: +2 -141
lines
Diff to previous 1.7 (colored)
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.
Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 18 19:36:30 2021 UTC (15 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.6: +33 -20
lines
Diff to previous 1.6 (colored)
tests/indent: consolidate tests for comments These tests have been the motivation for t_options.sh, which allows to run indent with various command line options on the same input, without having to create 3 files per test case. A test file actually contains several tests, all separated by '#indent' directives. Isolating each of these tests is simpler than having to pick up the corresponding sections from 3 separate files. Running indent on each small test case isolates the test cases from each other, preventing them to influence later test cases. Exactly this had happened when support for C99 comments was added in March 2021, which later turned out to be done wrong.
Revision 1.6 / (download) - annotate - [select for diffs], Mon Oct 18 18:10:20 2021 UTC (15 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.5: +2 -2
lines
Diff to previous 1.5 (colored)
tests/indent: merge tests for numbers into token_ident The previous tests 'binary' and 'float' not only test binary and floating point numbers, making their names too specific. Move them into a new test token_ident that covers all "identifier-like" tokens, just as in the code. The test cases for the option '-cs' are already covered more systematically in opt_cs.c, so remove that test.
Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 18 07:11:31 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.4: +88 -45
lines
Diff to previous 1.4 (colored)
tests/indent: merge duplicate input/output and output/output No functional change.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 17 17:23:59 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.3: +4 -4
lines
Diff to previous 1.3 (colored)
tests/lint: use zero-indexed array in awk test program No functional change.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Oct 17 17:20:47 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.2: +14 -3
lines
Diff to previous 1.2 (colored)
tests/indent: remove redundant test output for -nbap
Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 16 05:40:17 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.1: +11 -3
lines
Diff to previous 1.1 (colored)
tests/indent: remove duplicate data from options tests
Revision 1.1 / (download) - annotate - [select for diffs], Sat Oct 16 03:20:13 2021 UTC (15 months, 2 weeks ago) by rillig
Branch: MAIN
tests/indent: condense tests for bool options Previously, each bool option such as '-bacc/-nbacc' had 6 test files: input, options, output for the positive and negative option. Splitting this test data into separate files made it harder than necessary to quickly compare the test output from '-bacc' with that of '-nbacc'. Have a single test for the positive and negative option, allowing several tests to run on the same input with different options. This commit only contains the rather mechanic changes of concatenating the previous test files and inserting the '#indent' directives, which are documented in t_options.sh. Removing duplicate input sections, as well as other cleanups will follow soon. No functional change.