File: [cvs.NetBSD.org] / src / tests / usr.bin / xlint / lint1 / Makefile (download)
Revision 1.65, Sun Jun 20 18:09:48 2021 UTC (2 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.64: +3 -1
lines
tests/lint: test syntax error in initialization using designator
This test prepares the upcoming refactoring of the grammar.
|
# $NetBSD: Makefile,v 1.65 2021/06/20 18:09:48 rillig Exp $
NOMAN= # defined
MAX_MESSAGE= 344 # see lint1/err.c
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/usr.bin/xlint/lint1
TESTS_SH= t_integration
FILESDIR= ${TESTSDIR}
FILES+= c99_init_designator.c
FILES+= c99_init_designator.exp
FILES+= d_alignof.c
FILES+= d_bltinoffsetof.c
FILES+= d_c99_bool.c
FILES+= d_c99_bool.exp
FILES+= d_c99_bool_strict.c
FILES+= d_c99_bool_strict.exp
FILES+= d_c99_bool_strict_syshdr.c
FILES+= d_c99_bool_strict_syshdr.exp
FILES+= d_c99_anon_struct.c
FILES+= d_c99_anon_union.c
FILES+= d_c99_complex_num.c
FILES+= d_c99_complex_split.c
FILES+= d_c99_complex_split.exp
FILES+= d_c99_compound_literal_comma.c
FILES+= d_c99_decls_after_stmt.c
FILES+= d_c99_decls_after_stmt2.c
FILES+= d_c99_decls_after_stmt3.c
FILES+= d_c99_flex_array_packed.c
FILES+= d_c99_for_loops.c
FILES+= d_c99_func.c
FILES+= d_c99_init.c
FILES+= d_c99_init.exp
FILES+= d_c99_nested_struct.c
FILES+= d_c99_recursive_init.c
FILES+= d_c99_struct_init.c
FILES+= d_c99_union_cast.c
FILES+= d_c99_union_cast.exp
FILES+= d_c99_union_init1.c
FILES+= d_c99_union_init2.c
FILES+= d_c99_union_init3.c
FILES+= d_c99_union_init4.c
FILES+= d_c99_union_init5.c
FILES+= d_c9x_array_init.c
FILES+= d_c9x_recursive_init.c
FILES+= d_cast_fun_array_param.c
FILES+= d_cast_init.c
FILES+= d_cast_init2.c
FILES+= d_cast_lhs.c
FILES+= d_cast_typeof.c
FILES+= d_compound_literals1.c
FILES+= d_compound_literals2.c
FILES+= d_constant_conv1.c
FILES+= d_constant_conv1.exp
FILES+= d_constant_conv2.c
FILES+= d_constant_conv2.exp
FILES+= d_cvt_constant.c
FILES+= d_cvt_constant.exp
FILES+= d_cvt_in_ternary.c
FILES+= d_decl_old_style_arguments.c
FILES+= d_decl_old_style_arguments.exp
FILES+= d_ellipsis_in_switch.c
FILES+= d_fold_test.c
FILES+= d_fold_test.exp
FILES+= d_gcc_compound_statements1.c
FILES+= d_gcc_compound_statements1.exp
FILES+= d_gcc_compound_statements2.c
FILES+= d_gcc_compound_statements3.c
FILES+= d_gcc_extension.c
FILES+= d_gcc_func.c
FILES+= d_gcc_variable_array_init.c
FILES+= d_incorrect_array_size.c
FILES+= d_incorrect_array_size.exp
FILES+= d_init_array_using_string.c
FILES+= d_init_array_using_string.exp
FILES+= d_init_pop_member.c
FILES+= d_init_pop_member.exp
FILES+= d_lint_assert.c
FILES+= d_lint_assert.exp
FILES+= d_long_double_int.c
FILES+= d_long_double_int.exp
FILES+= d_nested_structs.c
FILES+= d_nolimit_init.c
FILES+= d_packed_structs.c
FILES+= d_pr_22119.c
FILES+= d_pr_22119.exp
FILES+= d_return_type.c
FILES+= d_return_type.exp
FILES+= d_shift_to_narrower_type.c
FILES+= d_struct_init_nested.c
FILES+= d_struct_init_nested.exp
FILES+= d_type_conv1.c
FILES+= d_type_conv1.exp
FILES+= d_type_conv2.c
FILES+= d_type_conv2.exp
FILES+= d_type_conv3.c
FILES+= d_type_conv3.exp
FILES+= d_type_question_colon.c
FILES+= d_typefun.c
FILES+= d_typename_as_var.c
FILES+= d_zero_sized_arrays.c
FILES+= decl_struct_member.c
FILES+= decl_struct_member.exp
FILES+= emit.c
FILES+= emit.exp
FILES+= emit.ln
FILES+= expr_range.c
FILES+= expr_range.exp
FILES+= feat_stacktrace.c
FILES+= feat_stacktrace.exp
FILES+= gcc_attribute.c
FILES+= gcc_attribute.exp
FILES+= gcc_attribute_aligned.c
FILES+= gcc_attribute_aligned.exp
FILES+= gcc_bit_field_types.c
FILES+= gcc_bit_field_types.exp
FILES+= gcc_init_compound_literal.c
FILES+= gcc_init_compound_literal.exp
FILES+= gcc_typeof_after_statement.c
FILES+= gcc_typeof_after_statement.exp
FILES+= lex_char.c
FILES+= lex_char.exp
FILES+= lex_comment.c
FILES+= lex_comment.exp
FILES+= lex_floating.c
FILES+= lex_floating.exp
FILES+= lex_integer.c
FILES+= lex_integer.exp
FILES+= lex_string.c
FILES+= lex_string.exp
FILES+= lex_wide_char.c
FILES+= lex_wide_char.exp
FILES+= lex_wide_string.c
FILES+= lex_wide_string.exp
FILES+= ${:U0 ${:U:${:Urange=${MAX_MESSAGE}}}:C,^.$,0&,:C,^..$,0&,:@i@msg_${i}.c msg_${i}.exp@:Nmsg_176.exp}
FILES+= op_colon.c
FILES+= op_colon.exp
FILES+= stmt_for.c
FILES+= stmt_for.exp
# ----- begin hack -----
# Prevent that ${DESTDIR}/emit.ln gets ${DESTDIR}/emit.c as implicit source.
# The suffix transformation rule '.c.ln' thinks that ${DESTDIR}/emit.ln should
# depend in ${DESTDIR}/emit.c, but these files are not intended to depend on
# each other, they have these suffixes just for convenience and convention.
.if make(install)
. if ${MKUPDATE} == "no" # see bsd.files.mk
${DESTDIR}${FILESDIR}/emit.ln! .PHONY
. else
${DESTDIR}${FILESDIR}/emit.ln: .PHONY
. endif
.endif
# ----- end hack -----
# Note: only works for adding tests.
# To remove a test, the $$mi file must be edited manually.
sync-mi: .PHONY
@set -eu; \
cd "${MAKEFILE:tA:H}/../../../.."; \
mi="distrib/sets/lists/tests/mi"; \
cvs update "$$mi"; \
fmt="./usr/tests/usr.bin/xlint/lint1/%s\ttests-usr.bin-tests\tcompattestfile,atf\n"; \
cat "$$mi" > "$$mi.tmp"; \
printf "$$fmt" ${FILES} >> "$$mi.tmp"; \
distrib/sets/fmt-list "$$mi.tmp"; \
mv "$$mi.tmp" "$$mi"; \
cvs diff "$$mi" || true
.include <bsd.test.mk>