Commit Graph

66 Commits

Author SHA1 Message Date
24018c3f86 Update help text for -m option 2023-04-20 21:54:00 +02:00
77d02890a7 Update copyright statements for 2023 2023-03-26 21:32:08 +02:00
518f4c4dc2 Address some shellcheck issues in testrunner.sh 2023-03-26 14:32:53 +02:00
fd0c3d8d90 Adjust test cases 004 and 065 for musl and alpine output #103 2022-10-03 14:47:23 +02:00
a3a37b50fc Upgrade project license to GPL-3 #101 2022-09-18 15:00:15 +02:00
5ea2f5b2b8 Add test for long usage info 2021-11-02 21:13:09 +01:00
d732154bf8 Improve compatibility of testrunner.sh with mingw shell 2021-11-01 14:23:09 +01:00
a5dae11c4c Add the first cmocka-based unit tests 2021-10-21 20:23:52 +02:00
1b731a08bd Refactor testrunner.sh script for readability 2021-09-11 20:29:40 +02:00
e40fe370e2 Add test coverage measurement to black-box tests 2021-09-09 21:44:49 +02:00
3c56934ddc Remove whitespace check on -c (#92)
Resolves #88
2021-08-31 17:31:43 +02:00
270d3ed7d7 Improve testrunner.sh's handling of whitespace args #92 2021-08-30 16:37:51 +02:00
ab9f123981 Count tab as whitespace in "empty shape" check #92 2021-08-28 15:08:44 +02:00
4fc33e7cee Fix quoting of closing comment tags in config 2021-06-18 20:56:08 +02:00
2d3a842728 Refactor lexer and parser for maintainability
- Speedmode is now purely a parser thing
- Lexer start condition SPEEDMODE is no longer needed
- Added lexer start condition BOX to distinguish box def content
- DELIMs are now purely a lexer thing
- No shared state between lexer and parser for DELIMs anymore
- Fix bug where speedmode could terminate in a SAMPLE block
- All lexer start conditions now exclusive
- Improved debug output
- Renamed parser token YDELWORD to YDELIMSPEC
2021-06-13 22:34:53 +02:00
00153f8068 Fix a bug where alias names could be defined twice
This could happen when configs are inherited, but aliases redefined
(a rare case so far).
2021-06-08 22:06:25 +02:00
4daa0f4f46 Fix repo encoding of ISO-8859-15 encoded files #83 2021-04-27 10:51:00 +02:00
6427d1efde Test cases for eol control option #60
This also adds the ability to testrunner.sh to pipe the output
through xxd for binary comparisons.
2021-04-11 20:34:52 +02:00
04283eb697 Remove undocumented contentpos feature
It is no longer needed, as we have MBCS support for input now.
2021-04-11 20:34:50 +02:00
09d5ebcbb4 Untangle -l and -q options #23
Both are now used stand-alone for their respective purposes.
2021-04-11 20:34:41 +02:00
f93639f1e4 Add tests for tag handling #23 2021-04-11 20:27:17 +02:00
542e6bd4dd Update box design 'right', undeprecate
I still don't like it, but it shows a particular kind of box that has only a
right side, which is good on a technical level.
2021-04-11 20:27:17 +02:00
6039b059da Review tag assignments in config file #23 2021-04-11 20:27:16 +02:00
f147c8f6fc Enable querying of the design list by tag #23 2021-04-11 20:27:15 +02:00
27adf5b6ba Add argument to -q option for tag queries #23
-q is no longer undocumented,
but can officially be used in combination with -l
2021-04-06 22:13:41 +02:00
5650f251fd Add test cases for design alias names #30 2021-03-30 20:34:33 +02:00
749033001f Add more test cases for multiple config files #5 2021-03-22 21:31:34 +01:00
46aab3faa6 Add config file location to each design #5 2021-03-22 20:45:46 +01:00
365dcea348 Improve testrunner when BOXES env var already set 2021-03-19 16:40:55 +01:00
278246bde7 Move most generated files and binaries to 'out' dir
Better separation of sources and binaries
Fewer files in 'src' dir
2021-03-19 16:40:54 +01:00
3f401a551a Remove skip-test feature from testrunner.sh
It was quite cool, but we don't need it right now.
2021-03-19 16:40:54 +01:00
d952bd6eea Unify config file search order Linux/Unix and Windows #69
This means we have some XDG support on Windows, too,
although some global locations like /etc/xdg are unlikely to exist.
2021-03-19 16:40:53 +01:00
68098e4480 Add test cases and test runner improvements for testing #69 2021-03-19 16:40:53 +01:00
877336a114 Add support for XDG base directories #69
for config file discovery. Also, the config file is searched in
more places, and can have more names. Details in issue comments.
2021-03-19 16:40:53 +01:00
b38e8f527b Explicitly set UTF-8 charset in unicode test cases (forgot 114) #73 2021-02-19 10:34:48 +01:00
352a7b6d5d Add test cases for removal of colored boxes 2021-02-15 21:10:57 +01:00
beb8696a79 Add error test case for unterminated strings in the config file 2021-02-15 21:10:56 +01:00
ac8617b383 Clean up config file 2021-02-15 21:10:56 +01:00
a841777007 Improve attribution of Joan Stark's work in resulting boxes 2021-02-15 21:10:56 +01:00
eeb5e5d372 Improve test runner to handle windows line breaks in :ARGS spec 2021-02-15 21:10:55 +01:00
fc7f881767 Explicitly set UTF-8 charset in unicode test cases
so that they don't fail on systems where UTF-8 is not properly set on the terminal #1
2021-02-15 21:10:54 +01:00
f4f14cdc61 Update copyright statements in source files with current year 2021-02-15 21:10:54 +01:00
363e0266e0 Add test cases for unicode and invalid manual encoding #1 2021-02-15 20:35:29 +01:00
c370772ee0 Switch test runner output filter sed to extended regex (-E) 2021-02-15 20:35:29 +01:00
12fa4ea57e Add test cases for colored unicode 'headline' design #1
This design uses complex regular expressions, which must work on unicode characters.
2021-02-15 20:35:28 +01:00
44c2c526af Add command line option -n to set character encoding of input text #1 2021-02-15 20:35:20 +01:00
4c656727ec Add advance_next32() function to 'unicode' module to encapsulate the escape handling logic #1 2021-02-13 11:01:55 +01:00
91d1971cca Fix handling of colored whitespace #1 2021-02-13 11:01:53 +01:00
a253fe105a Test cases for ANSI 2020-07-17 20:58:59 +02:00
7e3640481b Fix test cases again 2019-05-25 14:59:03 +02:00