Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/lint1 lint: fix instructions for adding a new ...



details:   https://anonhg.NetBSD.org/src/rev/76a5639d70f6
branches:  trunk
changeset: 365269:76a5639d70f6
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Apr 16 20:18:51 2022 +0000

description:
lint: fix instructions for adding a new test

diffstat:

 tests/usr.bin/xlint/lint1/Makefile |  14 +++++++-------
 usr.bin/xlint/lint1/README.md      |  10 +++++-----
 2 files changed, 12 insertions(+), 12 deletions(-)

diffs (76 lines):

diff -r 76fef0a204d0 -r 76a5639d70f6 tests/usr.bin/xlint/lint1/Makefile
--- a/tests/usr.bin/xlint/lint1/Makefile        Sat Apr 16 20:08:35 2022 +0000
+++ b/tests/usr.bin/xlint/lint1/Makefile        Sat Apr 16 20:18:51 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.119 2022/04/08 21:29:29 rillig Exp $
+# $NetBSD: Makefile,v 1.120 2022/04/16 20:18:52 rillig Exp $
 
 NOMAN=         # defined
 MAX_MESSAGE=   348             # see lint1/err.c
@@ -17,8 +17,6 @@
        @echo archsubdir=${ARCHSUBDIR} >${.TARGET}
 
 FILESDIR=      ${TESTSDIR}
-FILES+=                msg_259_c90.c
-FILES+=                msg_259_c90.exp
 FILES+=                c11_generic_expression.c
 FILES+=                c11_generic_expression.exp
 FILES+=                c90.c
@@ -30,14 +28,14 @@
 FILES+=                c99_init_designator.exp
 FILES+=                d_alignof.c
 FILES+=                d_bltinoffsetof.c
+FILES+=                d_c99_anon_struct.c
+FILES+=                d_c99_anon_union.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
@@ -217,14 +215,16 @@
 FILES+=                lex_wide_string.c
 FILES+=                lex_wide_string.exp
 FILES+=                ${MSG_FILES}
+FILES+=                msg_000_c90.c
+FILES+=                msg_000_c90.exp
 FILES+=                msg_001_c90.c
 FILES+=                msg_001_c90.exp
-FILES+=                msg_000_c90.c
-FILES+=                msg_000_c90.exp
 FILES+=                msg_132_ilp32.c
 FILES+=                msg_132_ilp32.exp
 FILES+=                msg_230_uchar.c
 FILES+=                msg_230_uchar.exp
+FILES+=                msg_259_c90.c
+FILES+=                msg_259_c90.exp
 FILES+=                msg_259_ilp32.c
 FILES+=                msg_259_ilp32.exp
 FILES+=                msg_272_c90.c
diff -r 76fef0a204d0 -r 76a5639d70f6 usr.bin/xlint/lint1/README.md
--- a/usr.bin/xlint/lint1/README.md     Sat Apr 16 20:08:35 2022 +0000
+++ b/usr.bin/xlint/lint1/README.md     Sat Apr 16 20:18:51 2022 +0000
@@ -1,4 +1,4 @@
-[//]: # ($NetBSD: README.md,v 1.3 2022/04/16 09:18:33 rillig Exp $)
+[//]: # ($NetBSD: README.md,v 1.4 2022/04/16 20:18:51 rillig Exp $)
 
 # Introduction
 
@@ -168,8 +168,8 @@
 
 ## Adding a new test
 
-1. Run `make -C tests/usr.bin/xlint/lint1 add-test NAME=test_name`.
-2. Sort the `FILES` lines in `tests/usr.bin/xlint/lint1/Makefile`.
+1. Run `make add-test NAME=test_name`.
+2. Sort the `FILES` lines in `../../tests/usr.bin/xlint/lint1/Makefile`.
 3. Make the test generate the desired diagnostics.
-4. Run `cd tests/usr.bin/xlint/lint1 && sh ./accept.sh test_name`.
-6. Run `cvs commit distrib/sets/lists/tests/mi tests/usr.bin/xlint`.
+4. Run `cd ../../tests/usr.bin/xlint/lint1 && sh ./accept.sh test_name`.
+5. Run `cd ../.. && cvs commit distrib/sets/lists/tests/mi tests/usr.bin/xlint`.



Home | Main Index | Thread Index | Old Index