The NetBSD Project

CVS log for src/tests/lib/libcurses/director/testlang_conf.l

[BACK] Up to [cvs.NetBSD.org] / src / tests / lib / libcurses / director

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Dec 10 18:04:55 2023 UTC (13 months, 1 week ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -2 lines
tests/libcurses: require 3 digits in octal character escapes

Previously, the string literal "\0" had been interpreted as "0", which
would have made the backslash redundant.  The tests don't use this form.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Nov 15 21:45:46 2021 UTC (3 years, 2 months ago) by blymn
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +7 -1 lines
Add handling for backspace special character (\b)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Feb 25 00:50:10 2021 UTC (3 years, 10 months ago) by rillig
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -6 lines
tests/libcurses: use common style for parse error messages

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Feb 25 00:42:00 2021 UTC (3 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +9 -9 lines
tests/libcurses: use common syntax for accessing array elements

Writing *(p+1) is needlessly confusing, even though it adds a little
symmetry between *p and *(p+1).  Still, one of these expressions has
parentheses, the other doesn't, which breaks the symmetry.

Wrap overly long code line.

It's confusing to refer to the digits after the backslash once with
index 0 to 2, and the other time with index 1 to 3.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Feb 25 00:32:44 2021 UTC (3 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +42 -40 lines
tests/libcurses: reduce indentation

No functional change.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Feb 25 00:25:31 2021 UTC (3 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -1 lines
libcurses: prevent unknown escpae sequences in tests

Before, '\b' was interpreted as a simple 'b', which is confusing for C
programmers.  Same for '\a'.  There is absolutely no reason to escape
letters, so fail early in these cases.

The '\h' in the test addchstr was obviously a typo that was easy to
detect, if only the compiler had been strict enough from the very
beginning.

The code is wider than 80 characters, same as the code that parses octal
escape sequences a few lines above it.  This code will be refactored to
use less indentation in a follow-up commit.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Feb 15 07:06:27 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
tests/libcurses: fix error handling for non-system errors

These errors are unrelated to errno.  The scanf family of functions also
does not set errno.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Feb 13 08:14:46 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -3 lines
tests/libcurses: clean up inclusion guards, function declarations

No functional change.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Feb 13 08:00:07 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +21 -20 lines
tests/libcurses: remove include path handling

All include commands in the current test suite use relative paths.
Instead of a fixed include path, interpret the included filename
relative to the including file.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Feb 8 23:54:03 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
tests/libcurses: fix off-by-one error in line numbers in diagnostics

I had broken this in testlang_parse.y 1.22 from 2021-02-07, when I
extracted the common 'eol' from the statements.  Extracting 'eol' had
the effect that the action for the statement was run before the line
number increased.

Now the line numbers in the diagnostics are the same again as before.

For lines that end with a backslash, the reported line number is the one
from the last of these lines, not the first one, also as before.  This
feature is not used by any of the current tests though.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Feb 8 19:15:20 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
tests/libcurses: fix typo in license text

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Feb 7 20:40:05 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -1 lines
tests/libcurses: fix grammar for arrays

Previously, commas were completely ignored by the grammar.  Erroring out
on invalid characters made some of the tests fail since the comma was
not recognized anymore.  Add it back, but only for defining arrays.  It
would have been possible to leave out the commas or make them optional,
but since the current tests do not make use of that, keep the grammar as
strict as possible.

Fix an unclosed string literal in a test.  This had been wrongly
accepted before by the grammar.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Feb 7 20:32:25 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
tests/libcurses: do not allow control characters in paths

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Feb 7 20:27:40 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +7 -2 lines
tests/libcurses: error out on trying to parse /dev/zero

Be strict when parsing the tests.  Any unknown character is an error.
This avoids an endless loop when running "./director /dev/zero".  There
is no point in silently ignoring other invalid characters as well, as
this would only leave potential test writers in an unclear state,
without any benefit.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Feb 7 19:49:32 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +16 -16 lines
tests/libcurses: require keywords to be lowercase, except for OK and ERR

There is no need to write the keywords in upper case or mixed case.  The
only case where a keyword did not have the canonical form yet was a
single lowercase 'ok' in the test case 'innstr'.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Feb 7 17:32:55 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +9 -9 lines
tests/libcurses: use more common abbreviations for tokens

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Feb 7 12:05:36 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -4 lines
tests/libcurses: allow end-of-line comments in data lines as well

This makes it possible to write small remarks directly in the affected
line, which not only makes for a clean visual appearance but also shows
up prominently in "cvs annotate" or "git blame", showing when such a
remark has been modified.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Feb 7 11:52:43 2021 UTC (3 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +32 -103 lines
tests/libcurses: indent lexer code consistently

Several of the braces were misaligned.  For the simple keywords, there
is no need to write these braces at all, they only made the code look
more complicated than it really is.

I stumbled upon this because syntax errors in the test cases currently
let the test case succeed instead of fail, which is another ingredient
for unreliable tests, besides the loose output matching.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Oct 24 04:46:17 2020 UTC (4 years, 2 months ago) by blymn
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -3 lines
Merge in code from Google Summer of Code project which dramatically
increases the number of tests performed.

Thanks to Naman Jain <jnaman806@gmail.com> for his excellent work on
this GSoC project.

Revision 1.7.26.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:28 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +30 -10 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Sep 19 11:31:57 2019 UTC (5 years, 4 months ago) by blymn
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +30 -10 lines

Rototill to add complex character support:

- Add cchar command to director test language to allow a complex character
  to be defined and passed to the slave.
- Removed the distinction between args and returns internally to prevent
  confusing the two which leads to errors and/or crashes.
- Converted mutt_test to use the new cchar definition and fixed the
  check files for the test.

Revision 1.6.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:50 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +7 -1 lines
Rebase to HEAD as of a few days ago.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:42:21 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +7 -1 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Nov 21 11:06:04 2013 UTC (11 years, 2 months ago) by blymn
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +7 -1 lines
Add carriage return to the quoted character list

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Oct 7 13:39:33 2011 UTC (13 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -4 lines
Fix off-by-one error and simplify at the same time.

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:40 2011 UTC (13 years, 7 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +10 -12 lines
Catchup with rmind-uvmplock merge.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jun 18 20:05:28 2011 UTC (13 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
input() isn't used

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jun 11 18:03:18 2011 UTC (13 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +10 -12 lines
Turn warns on for all tests and fix all the bugs.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun May 15 23:56:28 2011 UTC (13 years, 8 months ago) by christos
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
if you don't include the proper include files, you are going to end up
calling functions incorrectly.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Apr 11 09:03:24 2011 UTC (13 years, 9 months ago) by blymn
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
Fix NetBSD tag field.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Apr 10 09:55:09 2011 UTC (13 years, 9 months ago) by blymn
Branches: MAIN
Add atf for libcurses with some tests

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>