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:           Mon Oct 18 22:30:35 UTC 2021

Modified Files:
        src/distrib/sets/lists/tests: mi
        src/tests/usr.bin/indent: Makefile token_comment.c
Added Files:
        src/tests/usr.bin/indent: token_binary_op.c token_case_label.c
            token_colon.c token_comma.c token_decl.c token_do_stmt.c
            token_end_of_file.c token_for_exprs.c token_form_feed.c
            token_funcname.c token_if_expr.c token_if_expr_stmt.c
            token_if_expr_stmt_else.c token_keyword_do.c
            token_keyword_do_else.c token_keyword_else.c
            token_keyword_for_if_while.c token_keyword_struct_union_enum.c
            token_lbrace.c token_lparen.c token_newline.c token_period.c
            token_postfix_op.c token_preprocessing.c token_question.c
            token_rbrace.c token_rparen.c token_semicolon.c token_stmt.c
            token_stmt_list.c token_storage_class.c token_string_prefix.c
            token_switch_expr.c token_type_def.c token_unary_op.c
            token_while_expr.c
Removed Files:
        src/tests/usr.bin/indent: token-binary_op.0 token-binary_op.0.pro
            token-binary_op.0.stdout token-case_label.0 token-case_label.0.pro
            token-case_label.0.stdout token-colon.0 token-colon.0.pro
            token-colon.0.stdout token-comma.0 token-comma.0.pro
            token-comma.0.stdout token-decl.0 token-decl.0.pro
            token-decl.0.stdout token-do_stmt.0 token-do_stmt.0.pro
            token-do_stmt.0.stdout token-end_of_file.0 token-end_of_file.0.pro
            token-end_of_file.0.stdout token-for_exprs.0 token-for_exprs.0.pro
            token-for_exprs.0.stdout token-form_feed.0 token-form_feed.0.pro
            token-form_feed.0.stdout token-funcname.0 token-funcname.0.pro
            token-funcname.0.stdout token-if_expr.0 token-if_expr.0.pro
            token-if_expr.0.stdout token-if_expr_stmt.0
            token-if_expr_stmt.0.pro token-if_expr_stmt.0.stdout
            token-if_expr_stmt_else.0 token-if_expr_stmt_else.0.pro
            token-if_expr_stmt_else.0.stdout token-keyword_do.0
            token-keyword_do.0.pro token-keyword_do.0.stdout
            token-keyword_do_else.0 token-keyword_do_else.0.pro
            token-keyword_do_else.0.stdout token-keyword_else.0
            token-keyword_else.0.pro token-keyword_else.0.stdout
            token-keyword_for_if_while.0 token-keyword_for_if_while.0.pro
            token-keyword_for_if_while.0.stdout
            token-keyword_struct_union_enum.0
            token-keyword_struct_union_enum.0.pro
            token-keyword_struct_union_enum.0.stdout token-lbrace.0
            token-lbrace.0.pro token-lbrace.0.stdout token-lparen.0
            token-lparen.0.pro token-lparen.0.stdout token-newline.0
            token-newline.0.pro token-newline.0.stdout token-period.0
            token-period.0.pro token-period.0.stdout token-postfix_op.0
            token-postfix_op.0.pro token-postfix_op.0.stdout
            token-preprocessing.0 token-preprocessing.0.pro
            token-preprocessing.0.stdout token-question.0 token-question.0.pro
            token-question.0.stdout token-rbrace.0 token-rbrace.0.pro
            token-rbrace.0.stdout token-rparen.0 token-rparen.0.pro
            token-rparen.0.stdout token-semicolon.0 token-semicolon.0.pro
            token-semicolon.0.stdout token-stmt.0 token-stmt.0.pro
            token-stmt.0.stdout token-stmt_list.0 token-stmt_list.0.pro
            token-stmt_list.0.stdout token-storage_class.0
            token-storage_class.0.pro token-storage_class.0.stdout
            token-string_prefix.0 token-string_prefix.0.pro
            token-string_prefix.0.stdout token-switch_expr.0
            token-switch_expr.0.pro token-switch_expr.0.stdout token-type_def.0
            token-type_def.0.pro token-type_def.0.stdout token-unary_op.0
            token-unary_op.0.pro token-unary_op.0.stdout token-while_expr.0
            token-while_expr.0.pro token-while_expr.0.stdout

Log Message:
tests/indent: condense the token tests

This reduces the number of files in the test directory. It also allows
the tests to be read from top to bottom, looking at only a single file.

Since t_options.awk complains about files that don't have any test case
at all, add some test for each token kind. Most of the tests had
previously been effectively empty.


To generate a diff of this commit:
cvs rdiff -u -r1.1144 -r1.1145 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.19 -r1.20 src/tests/usr.bin/indent/Makefile
cvs rdiff -u -r1.2 -r0 src/tests/usr.bin/indent/token-binary_op.0 \
    src/tests/usr.bin/indent/token-binary_op.0.pro \
    src/tests/usr.bin/indent/token-binary_op.0.stdout \
    src/tests/usr.bin/indent/token-colon.0 \
    src/tests/usr.bin/indent/token-colon.0.stdout \
    src/tests/usr.bin/indent/token-keyword_do_else.0.stdout \
    src/tests/usr.bin/indent/token-keyword_else.0 \
    src/tests/usr.bin/indent/token-keyword_else.0.stdout \
    src/tests/usr.bin/indent/token-lparen.0.pro \
    src/tests/usr.bin/indent/token-while_expr.0 \
    src/tests/usr.bin/indent/token-while_expr.0.stdout
cvs rdiff -u -r1.1 -r0 src/tests/usr.bin/indent/token-case_label.0 \
    src/tests/usr.bin/indent/token-case_label.0.pro \
    src/tests/usr.bin/indent/token-case_label.0.stdout \
    src/tests/usr.bin/indent/token-colon.0.pro \
    src/tests/usr.bin/indent/token-comma.0 \
    src/tests/usr.bin/indent/token-comma.0.pro \
    src/tests/usr.bin/indent/token-comma.0.stdout \
    src/tests/usr.bin/indent/token-decl.0 \
    src/tests/usr.bin/indent/token-decl.0.pro \
    src/tests/usr.bin/indent/token-decl.0.stdout \
    src/tests/usr.bin/indent/token-do_stmt.0 \
    src/tests/usr.bin/indent/token-do_stmt.0.pro \
    src/tests/usr.bin/indent/token-do_stmt.0.stdout \
    src/tests/usr.bin/indent/token-end_of_file.0 \
    src/tests/usr.bin/indent/token-end_of_file.0.pro \
    src/tests/usr.bin/indent/token-end_of_file.0.stdout \
    src/tests/usr.bin/indent/token-for_exprs.0 \
    src/tests/usr.bin/indent/token-for_exprs.0.pro \
    src/tests/usr.bin/indent/token-for_exprs.0.stdout \
    src/tests/usr.bin/indent/token-form_feed.0 \
    src/tests/usr.bin/indent/token-form_feed.0.pro \
    src/tests/usr.bin/indent/token-form_feed.0.stdout \
    src/tests/usr.bin/indent/token-funcname.0 \
    src/tests/usr.bin/indent/token-funcname.0.pro \
    src/tests/usr.bin/indent/token-funcname.0.stdout \
    src/tests/usr.bin/indent/token-if_expr.0 \
    src/tests/usr.bin/indent/token-if_expr.0.pro \
    src/tests/usr.bin/indent/token-if_expr.0.stdout \
    src/tests/usr.bin/indent/token-if_expr_stmt.0 \
    src/tests/usr.bin/indent/token-if_expr_stmt.0.pro \
    src/tests/usr.bin/indent/token-if_expr_stmt.0.stdout \
    src/tests/usr.bin/indent/token-if_expr_stmt_else.0 \
    src/tests/usr.bin/indent/token-if_expr_stmt_else.0.pro \
    src/tests/usr.bin/indent/token-if_expr_stmt_else.0.stdout \
    src/tests/usr.bin/indent/token-keyword_do.0 \
    src/tests/usr.bin/indent/token-keyword_do.0.pro \
    src/tests/usr.bin/indent/token-keyword_do.0.stdout \
    src/tests/usr.bin/indent/token-keyword_do_else.0 \
    src/tests/usr.bin/indent/token-keyword_do_else.0.pro \
    src/tests/usr.bin/indent/token-keyword_else.0.pro \
    src/tests/usr.bin/indent/token-keyword_for_if_while.0 \
    src/tests/usr.bin/indent/token-keyword_for_if_while.0.pro \
    src/tests/usr.bin/indent/token-keyword_for_if_while.0.stdout \
    src/tests/usr.bin/indent/token-keyword_struct_union_enum.0 \
    src/tests/usr.bin/indent/token-keyword_struct_union_enum.0.pro \
    src/tests/usr.bin/indent/token-keyword_struct_union_enum.0.stdout \
    src/tests/usr.bin/indent/token-lbrace.0 \
    src/tests/usr.bin/indent/token-lbrace.0.pro \
    src/tests/usr.bin/indent/token-lbrace.0.stdout \
    src/tests/usr.bin/indent/token-newline.0 \
    src/tests/usr.bin/indent/token-newline.0.pro \
    src/tests/usr.bin/indent/token-newline.0.stdout \
    src/tests/usr.bin/indent/token-period.0 \
    src/tests/usr.bin/indent/token-period.0.pro \
    src/tests/usr.bin/indent/token-period.0.stdout \
    src/tests/usr.bin/indent/token-postfix_op.0 \
    src/tests/usr.bin/indent/token-postfix_op.0.pro \
    src/tests/usr.bin/indent/token-postfix_op.0.stdout \
    src/tests/usr.bin/indent/token-preprocessing.0.pro \
    src/tests/usr.bin/indent/token-question.0 \
    src/tests/usr.bin/indent/token-question.0.pro \
    src/tests/usr.bin/indent/token-question.0.stdout \
    src/tests/usr.bin/indent/token-rbrace.0 \
    src/tests/usr.bin/indent/token-rbrace.0.pro \
    src/tests/usr.bin/indent/token-rbrace.0.stdout \
    src/tests/usr.bin/indent/token-rparen.0 \
    src/tests/usr.bin/indent/token-rparen.0.pro \
    src/tests/usr.bin/indent/token-rparen.0.stdout \
    src/tests/usr.bin/indent/token-semicolon.0 \
    src/tests/usr.bin/indent/token-semicolon.0.pro \
    src/tests/usr.bin/indent/token-semicolon.0.stdout \
    src/tests/usr.bin/indent/token-stmt.0 \
    src/tests/usr.bin/indent/token-stmt.0.pro \
    src/tests/usr.bin/indent/token-stmt.0.stdout \
    src/tests/usr.bin/indent/token-stmt_list.0 \
    src/tests/usr.bin/indent/token-stmt_list.0.pro \
    src/tests/usr.bin/indent/token-stmt_list.0.stdout \
    src/tests/usr.bin/indent/token-storage_class.0 \
    src/tests/usr.bin/indent/token-storage_class.0.pro \
    src/tests/usr.bin/indent/token-storage_class.0.stdout \
    src/tests/usr.bin/indent/token-string_prefix.0 \
    src/tests/usr.bin/indent/token-string_prefix.0.pro \
    src/tests/usr.bin/indent/token-string_prefix.0.stdout \
    src/tests/usr.bin/indent/token-switch_expr.0 \
    src/tests/usr.bin/indent/token-switch_expr.0.pro \
    src/tests/usr.bin/indent/token-switch_expr.0.stdout \
    src/tests/usr.bin/indent/token-type_def.0 \
    src/tests/usr.bin/indent/token-type_def.0.pro \
    src/tests/usr.bin/indent/token-type_def.0.stdout \
    src/tests/usr.bin/indent/token-unary_op.0 \
    src/tests/usr.bin/indent/token-unary_op.0.pro \
    src/tests/usr.bin/indent/token-unary_op.0.stdout \
    src/tests/usr.bin/indent/token-while_expr.0.pro
cvs rdiff -u -r1.3 -r0 src/tests/usr.bin/indent/token-lparen.0
cvs rdiff -u -r1.5 -r0 src/tests/usr.bin/indent/token-lparen.0.stdout
cvs rdiff -u -r1.6 -r0 src/tests/usr.bin/indent/token-preprocessing.0
cvs rdiff -u -r1.8 -r0 src/tests/usr.bin/indent/token-preprocessing.0.stdout
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/indent/token_binary_op.c \
    src/tests/usr.bin/indent/token_case_label.c \
    src/tests/usr.bin/indent/token_colon.c \
    src/tests/usr.bin/indent/token_comma.c \
    src/tests/usr.bin/indent/token_decl.c \
    src/tests/usr.bin/indent/token_do_stmt.c \
    src/tests/usr.bin/indent/token_end_of_file.c \
    src/tests/usr.bin/indent/token_for_exprs.c \
    src/tests/usr.bin/indent/token_form_feed.c \
    src/tests/usr.bin/indent/token_funcname.c \
    src/tests/usr.bin/indent/token_if_expr.c \
    src/tests/usr.bin/indent/token_if_expr_stmt.c \
    src/tests/usr.bin/indent/token_if_expr_stmt_else.c \
    src/tests/usr.bin/indent/token_keyword_do.c \
    src/tests/usr.bin/indent/token_keyword_do_else.c \
    src/tests/usr.bin/indent/token_keyword_else.c \
    src/tests/usr.bin/indent/token_keyword_for_if_while.c \
    src/tests/usr.bin/indent/token_keyword_struct_union_enum.c \
    src/tests/usr.bin/indent/token_lbrace.c \
    src/tests/usr.bin/indent/token_lparen.c \
    src/tests/usr.bin/indent/token_newline.c \
    src/tests/usr.bin/indent/token_period.c \
    src/tests/usr.bin/indent/token_postfix_op.c \
    src/tests/usr.bin/indent/token_preprocessing.c \
    src/tests/usr.bin/indent/token_question.c \
    src/tests/usr.bin/indent/token_rbrace.c \
    src/tests/usr.bin/indent/token_rparen.c \
    src/tests/usr.bin/indent/token_semicolon.c \
    src/tests/usr.bin/indent/token_stmt.c \
    src/tests/usr.bin/indent/token_stmt_list.c \
    src/tests/usr.bin/indent/token_storage_class.c \
    src/tests/usr.bin/indent/token_string_prefix.c \
    src/tests/usr.bin/indent/token_switch_expr.c \
    src/tests/usr.bin/indent/token_type_def.c \
    src/tests/usr.bin/indent/token_unary_op.c \
    src/tests/usr.bin/indent/token_while_expr.c
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/indent/token_comment.c

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