Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   rillig
Date:           Sat Oct 16 03:20:13 UTC 2021

Modified Files:
        src/distrib/sets/lists/tests: mi
        src/tests/usr.bin/indent: Makefile
Added Files:
        src/tests/usr.bin/indent: opt_bacc.c opt_bad.c opt_badp.c opt_bap.c
            opt_bbb.c opt_bc.c opt_bs.c opt_cdb.c opt_ce.c opt_cs.c opt_dj.c
            opt_eei.c opt_ei.c opt_fbs.c opt_fc1.c opt_fcb.c opt_ip.c opt_lp.c
            opt_lpl.c opt_pcs.c opt_psl.c opt_sc.c opt_sob.c opt_ut.c opt_v.c
            t_options.sh
Removed Files:
        src/tests/usr.bin/indent: opt-bacc.0 opt-bacc.0.pro opt-bacc.0.stdout
            opt-bad.0 opt-bad.0.pro opt-bad.0.stdout opt-badp.0 opt-badp.0.pro
            opt-badp.0.stdout opt-bap.0 opt-bap.0.pro opt-bap.0.stdout
            opt-bbb.0 opt-bbb.0.pro opt-bbb.0.stdout opt-bc.0 opt-bc.0.pro
            opt-bc.0.stdout opt-bs.0 opt-bs.0.pro opt-bs.0.stdout opt-cdb.0
            opt-cdb.0.pro opt-cdb.0.stdout opt-ce.0 opt-ce.0.pro
            opt-ce.0.stdout opt-cs.0 opt-cs.0.pro opt-cs.0.stdout opt-dj.0
            opt-dj.0.pro opt-dj.0.stdout opt-eei.0 opt-eei.0.pro
            opt-eei.0.stdout opt-ei.0 opt-ei.0.pro opt-ei.0.stdout opt-fbs.0
            opt-fbs.0.pro opt-fbs.0.stdout opt-fc1.0 opt-fc1.0.pro
            opt-fc1.0.stdout opt-fcb.0 opt-fcb.0.pro opt-fcb.0.stdout opt-ip.0
            opt-ip.0.pro opt-ip.0.stdout opt-lp.0 opt-lp.0.pro opt-lp.0.stdout
            opt-lpl.0 opt-lpl.0.pro opt-lpl.0.stdout opt-nbacc.0
            opt-nbacc.0.pro opt-nbacc.0.stdout opt-nbad.0 opt-nbad.0.pro
            opt-nbad.0.stdout opt-nbadp.0 opt-nbadp.0.pro opt-nbadp.0.stdout
            opt-nbap.0 opt-nbap.0.pro opt-nbap.0.stdout opt-nbbb.0
            opt-nbbb.0.pro opt-nbbb.0.stdout opt-nbc.0 opt-nbc.0.pro
            opt-nbc.0.stdout opt-nbs.0 opt-nbs.0.pro opt-nbs.0.stdout
            opt-ncdb.0 opt-ncdb.0.pro opt-ncdb.0.stdout opt-nce.0 opt-nce.0.pro
            opt-nce.0.stdout opt-ncs.0 opt-ncs.0.pro opt-ncs.0.stdout opt-ndj.0
            opt-ndj.0.pro opt-ndj.0.stdout opt-neei.0 opt-neei.0.pro
            opt-neei.0.stdout opt-nei.0 opt-nei.0.pro opt-nei.0.stdout
            opt-nfbs.0 opt-nfbs.0.pro opt-nfbs.0.stdout opt-nfc1.0
            opt-nfc1.0.pro opt-nfc1.0.stdout opt-nfcb.0 opt-nfcb.0.pro
            opt-nfcb.0.stdout opt-nip.0 opt-nip.0.pro opt-nip.0.stdout
            opt-nlp.0 opt-nlp.0.pro opt-nlp.0.stdout opt-nlpl.0 opt-nlpl.0.pro
            opt-nlpl.0.stdout opt-npcs.0 opt-npcs.0.pro opt-npcs.0.stdout
            opt-npsl.0 opt-npsl.0.pro opt-npsl.0.stdout opt-nsc.0 opt-nsc.0.pro
            opt-nsc.0.stdout opt-nsob.0 opt-nsob.0.pro opt-nsob.0.stdout
            opt-nut.0 opt-nut.0.pro opt-nut.0.stdout opt-nv.0 opt-nv.0.pro
            opt-nv.0.stdout opt-pcs.0 opt-pcs.0.pro opt-pcs.0.stdout opt-psl.0
            opt-psl.0.pro opt-psl.0.stdout opt-sc.0 opt-sc.0.pro
            opt-sc.0.stdout opt-sob.0 opt-sob.0.pro opt-sob.0.stdout opt-ut.0
            opt-ut.0.pro opt-ut.0.stdout opt-v.0 opt-v.0.pro opt-v.0.stdout

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1138 -r1.1139 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.15 -r1.16 src/tests/usr.bin/indent/Makefile
cvs rdiff -u -r1.3 -r0 src/tests/usr.bin/indent/opt-bacc.0 \
    src/tests/usr.bin/indent/opt-bacc.0.stdout \
    src/tests/usr.bin/indent/opt-nbacc.0 \
    src/tests/usr.bin/indent/opt-nbacc.0.stdout \
    src/tests/usr.bin/indent/opt-nsob.0 \
    src/tests/usr.bin/indent/opt-nsob.0.stdout \
    src/tests/usr.bin/indent/opt-v.0 src/tests/usr.bin/indent/opt-v.0.stdout
cvs rdiff -u -r1.1 -r0 src/tests/usr.bin/indent/opt-bacc.0.pro \
    src/tests/usr.bin/indent/opt-bad.0.pro \
    src/tests/usr.bin/indent/opt-badp.0.pro \
    src/tests/usr.bin/indent/opt-bap.0.pro \
    src/tests/usr.bin/indent/opt-bbb.0.pro \
    src/tests/usr.bin/indent/opt-bc.0.pro \
    src/tests/usr.bin/indent/opt-bs.0.pro \
    src/tests/usr.bin/indent/opt-cdb.0.pro \
    src/tests/usr.bin/indent/opt-ce.0.pro \
    src/tests/usr.bin/indent/opt-cs.0.pro \
    src/tests/usr.bin/indent/opt-dj.0.pro \
    src/tests/usr.bin/indent/opt-eei.0.pro \
    src/tests/usr.bin/indent/opt-ei.0.pro \
    src/tests/usr.bin/indent/opt-fbs.0.pro \
    src/tests/usr.bin/indent/opt-fc1.0.pro \
    src/tests/usr.bin/indent/opt-fcb.0.pro \
    src/tests/usr.bin/indent/opt-ip.0.pro \
    src/tests/usr.bin/indent/opt-lp.0.pro \
    src/tests/usr.bin/indent/opt-lpl.0.pro \
    src/tests/usr.bin/indent/opt-nbacc.0.pro \
    src/tests/usr.bin/indent/opt-nbad.0.pro \
    src/tests/usr.bin/indent/opt-nbadp.0.pro \
    src/tests/usr.bin/indent/opt-nbap.0.pro \
    src/tests/usr.bin/indent/opt-nbbb.0.pro \
    src/tests/usr.bin/indent/opt-nbc.0.pro \
    src/tests/usr.bin/indent/opt-nbs.0.pro \
    src/tests/usr.bin/indent/opt-ncdb.0.pro \
    src/tests/usr.bin/indent/opt-nce.0.pro \
    src/tests/usr.bin/indent/opt-ncs.0.pro \
    src/tests/usr.bin/indent/opt-ndj.0.pro \
    src/tests/usr.bin/indent/opt-neei.0.pro \
    src/tests/usr.bin/indent/opt-nei.0.pro \
    src/tests/usr.bin/indent/opt-nfbs.0.pro \
    src/tests/usr.bin/indent/opt-nfc1.0.pro \
    src/tests/usr.bin/indent/opt-nfcb.0.pro \
    src/tests/usr.bin/indent/opt-nip.0.pro \
    src/tests/usr.bin/indent/opt-nlp.0.pro \
    src/tests/usr.bin/indent/opt-nlpl.0.pro \
    src/tests/usr.bin/indent/opt-npcs.0.pro \
    src/tests/usr.bin/indent/opt-npsl.0.pro \
    src/tests/usr.bin/indent/opt-nsc.0.pro \
    src/tests/usr.bin/indent/opt-nsob.0.pro \
    src/tests/usr.bin/indent/opt-nut.0.pro \
    src/tests/usr.bin/indent/opt-nv.0.pro \
    src/tests/usr.bin/indent/opt-pcs.0.pro \
    src/tests/usr.bin/indent/opt-psl.0.pro \
    src/tests/usr.bin/indent/opt-sc.0.pro \
    src/tests/usr.bin/indent/opt-sob.0.pro \
    src/tests/usr.bin/indent/opt-ut.0.pro \
    src/tests/usr.bin/indent/opt-v.0.pro
cvs rdiff -u -r1.2 -r0 src/tests/usr.bin/indent/opt-bad.0 \
    src/tests/usr.bin/indent/opt-bad.0.stdout \
    src/tests/usr.bin/indent/opt-badp.0 \
    src/tests/usr.bin/indent/opt-badp.0.stdout \
    src/tests/usr.bin/indent/opt-bap.0 \
    src/tests/usr.bin/indent/opt-bap.0.stdout \
    src/tests/usr.bin/indent/opt-bbb.0 \
    src/tests/usr.bin/indent/opt-bbb.0.stdout \
    src/tests/usr.bin/indent/opt-bc.0 \
    src/tests/usr.bin/indent/opt-bc.0.stdout \
    src/tests/usr.bin/indent/opt-bs.0 \
    src/tests/usr.bin/indent/opt-bs.0.stdout \
    src/tests/usr.bin/indent/opt-cdb.0 \
    src/tests/usr.bin/indent/opt-cdb.0.stdout \
    src/tests/usr.bin/indent/opt-ce.0 \
    src/tests/usr.bin/indent/opt-ce.0.stdout \
    src/tests/usr.bin/indent/opt-cs.0 \
    src/tests/usr.bin/indent/opt-cs.0.stdout \
    src/tests/usr.bin/indent/opt-dj.0 \
    src/tests/usr.bin/indent/opt-dj.0.stdout \
    src/tests/usr.bin/indent/opt-eei.0 \
    src/tests/usr.bin/indent/opt-eei.0.stdout \
    src/tests/usr.bin/indent/opt-ei.0 \
    src/tests/usr.bin/indent/opt-ei.0.stdout \
    src/tests/usr.bin/indent/opt-fbs.0 \
    src/tests/usr.bin/indent/opt-fbs.0.stdout \
    src/tests/usr.bin/indent/opt-fcb.0 \
    src/tests/usr.bin/indent/opt-fcb.0.stdout \
    src/tests/usr.bin/indent/opt-ip.0 \
    src/tests/usr.bin/indent/opt-ip.0.stdout \
    src/tests/usr.bin/indent/opt-lp.0 \
    src/tests/usr.bin/indent/opt-lp.0.stdout \
    src/tests/usr.bin/indent/opt-lpl.0 \
    src/tests/usr.bin/indent/opt-lpl.0.stdout \
    src/tests/usr.bin/indent/opt-nbad.0 \
    src/tests/usr.bin/indent/opt-nbad.0.stdout \
    src/tests/usr.bin/indent/opt-nbadp.0 \
    src/tests/usr.bin/indent/opt-nbadp.0.stdout \
    src/tests/usr.bin/indent/opt-nbap.0 \
    src/tests/usr.bin/indent/opt-nbap.0.stdout \
    src/tests/usr.bin/indent/opt-nbbb.0 \
    src/tests/usr.bin/indent/opt-nbbb.0.stdout \
    src/tests/usr.bin/indent/opt-nbc.0 \
    src/tests/usr.bin/indent/opt-nbc.0.stdout \
    src/tests/usr.bin/indent/opt-nbs.0 \
    src/tests/usr.bin/indent/opt-nbs.0.stdout \
    src/tests/usr.bin/indent/opt-ncdb.0 \
    src/tests/usr.bin/indent/opt-ncdb.0.stdout \
    src/tests/usr.bin/indent/opt-nce.0 \
    src/tests/usr.bin/indent/opt-nce.0.stdout \
    src/tests/usr.bin/indent/opt-ncs.0 \
    src/tests/usr.bin/indent/opt-ncs.0.stdout \
    src/tests/usr.bin/indent/opt-ndj.0 \
    src/tests/usr.bin/indent/opt-ndj.0.stdout \
    src/tests/usr.bin/indent/opt-neei.0 \
    src/tests/usr.bin/indent/opt-neei.0.stdout \
    src/tests/usr.bin/indent/opt-nei.0 \
    src/tests/usr.bin/indent/opt-nei.0.stdout \
    src/tests/usr.bin/indent/opt-nfbs.0 \
    src/tests/usr.bin/indent/opt-nfbs.0.stdout \
    src/tests/usr.bin/indent/opt-nfcb.0 \
    src/tests/usr.bin/indent/opt-nfcb.0.stdout \
    src/tests/usr.bin/indent/opt-nip.0 \
    src/tests/usr.bin/indent/opt-nip.0.stdout \
    src/tests/usr.bin/indent/opt-nlp.0 \
    src/tests/usr.bin/indent/opt-nlp.0.stdout \
    src/tests/usr.bin/indent/opt-nlpl.0 \
    src/tests/usr.bin/indent/opt-nlpl.0.stdout \
    src/tests/usr.bin/indent/opt-npcs.0 \
    src/tests/usr.bin/indent/opt-npcs.0.stdout \
    src/tests/usr.bin/indent/opt-npsl.0 \
    src/tests/usr.bin/indent/opt-npsl.0.stdout \
    src/tests/usr.bin/indent/opt-nsc.0 \
    src/tests/usr.bin/indent/opt-nsc.0.stdout \
    src/tests/usr.bin/indent/opt-nut.0 \
    src/tests/usr.bin/indent/opt-nut.0.stdout \
    src/tests/usr.bin/indent/opt-nv.0 \
    src/tests/usr.bin/indent/opt-nv.0.stdout \
    src/tests/usr.bin/indent/opt-pcs.0 \
    src/tests/usr.bin/indent/opt-pcs.0.stdout \
    src/tests/usr.bin/indent/opt-psl.0 \
    src/tests/usr.bin/indent/opt-psl.0.stdout \
    src/tests/usr.bin/indent/opt-sc.0 \
    src/tests/usr.bin/indent/opt-sc.0.stdout \
    src/tests/usr.bin/indent/opt-ut.0 \
    src/tests/usr.bin/indent/opt-ut.0.stdout
cvs rdiff -u -r1.5 -r0 src/tests/usr.bin/indent/opt-fc1.0 \
    src/tests/usr.bin/indent/opt-fc1.0.stdout \
    src/tests/usr.bin/indent/opt-nfc1.0 \
    src/tests/usr.bin/indent/opt-nfc1.0.stdout
cvs rdiff -u -r1.4 -r0 src/tests/usr.bin/indent/opt-sob.0 \
    src/tests/usr.bin/indent/opt-sob.0.stdout
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/indent/opt_bacc.c \
    src/tests/usr.bin/indent/opt_bad.c src/tests/usr.bin/indent/opt_badp.c \
    src/tests/usr.bin/indent/opt_bap.c src/tests/usr.bin/indent/opt_bbb.c \
    src/tests/usr.bin/indent/opt_bc.c src/tests/usr.bin/indent/opt_bs.c \
    src/tests/usr.bin/indent/opt_cdb.c src/tests/usr.bin/indent/opt_ce.c \
    src/tests/usr.bin/indent/opt_cs.c src/tests/usr.bin/indent/opt_dj.c \
    src/tests/usr.bin/indent/opt_eei.c src/tests/usr.bin/indent/opt_ei.c \
    src/tests/usr.bin/indent/opt_fbs.c src/tests/usr.bin/indent/opt_fc1.c \
    src/tests/usr.bin/indent/opt_fcb.c src/tests/usr.bin/indent/opt_ip.c \
    src/tests/usr.bin/indent/opt_lp.c src/tests/usr.bin/indent/opt_lpl.c \
    src/tests/usr.bin/indent/opt_pcs.c src/tests/usr.bin/indent/opt_psl.c \
    src/tests/usr.bin/indent/opt_sc.c src/tests/usr.bin/indent/opt_sob.c \
    src/tests/usr.bin/indent/opt_ut.c src/tests/usr.bin/indent/opt_v.c \
    src/tests/usr.bin/indent/t_options.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index