Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent
Request diff between arbitrary revisions
Keyword substitution: kv
Default 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.
tests/indent: demonstrate bugs in -bacc and -nbacc This part of indent has been broken since at least 2000. The update from FreeBSD indent on 2019-04-04 made it worse than before. To see the various results over time, older versions of indent compile fine if they get passed the -fcommon compiler option.
tests/indent: add 11 test cases, demonstrate 8 bugs
tests/indent: add templates for options tests Given that indent "has even more switches than ls(1)", there are far too few tests. To make it easier to add meaningful tests for each of the options, add the templates for the tests right now, ready to be filled in.