Commit Graph

61 Commits

Author SHA1 Message Date
Thomas Jensen
5ea2f5b2b8
Add test for long usage info 2021-11-02 21:13:09 +01:00
Thomas Jensen
d732154bf8
Improve compatibility of testrunner.sh with mingw shell 2021-11-01 14:23:09 +01:00
Thomas Jensen
a5dae11c4c
Add the first cmocka-based unit tests 2021-10-21 20:23:52 +02:00
Thomas Jensen
1b731a08bd
Refactor testrunner.sh script for readability 2021-09-11 20:29:40 +02:00
Thomas Jensen
e40fe370e2
Add test coverage measurement to black-box tests 2021-09-09 21:44:49 +02:00
David Yang
3c56934ddc
Remove whitespace check on -c (#92)
Resolves #88
2021-08-31 17:31:43 +02:00
Thomas Jensen
270d3ed7d7
Improve testrunner.sh's handling of whitespace args #92 2021-08-30 16:37:51 +02:00
Thomas Jensen
ab9f123981
Count tab as whitespace in "empty shape" check #92 2021-08-28 15:08:44 +02:00
Thomas Jensen
4fc33e7cee
Fix quoting of closing comment tags in config 2021-06-18 20:56:08 +02:00
Thomas Jensen
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
Thomas Jensen
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
Thomas Jensen
4daa0f4f46
Fix repo encoding of ISO-8859-15 encoded files #83 2021-04-27 10:51:00 +02:00
Thomas Jensen
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
Thomas Jensen
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
Thomas Jensen
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
Thomas Jensen
f93639f1e4
Add tests for tag handling #23 2021-04-11 20:27:17 +02:00
Thomas Jensen
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
Thomas Jensen
6039b059da
Review tag assignments in config file #23 2021-04-11 20:27:16 +02:00
Thomas Jensen
f147c8f6fc
Enable querying of the design list by tag #23 2021-04-11 20:27:15 +02:00
Thomas Jensen
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
Thomas Jensen
5650f251fd
Add test cases for design alias names #30 2021-03-30 20:34:33 +02:00
Thomas Jensen
749033001f
Add more test cases for multiple config files #5 2021-03-22 21:31:34 +01:00
Thomas Jensen
46aab3faa6
Add config file location to each design #5 2021-03-22 20:45:46 +01:00
Thomas Jensen
365dcea348
Improve testrunner when BOXES env var already set 2021-03-19 16:40:55 +01:00
Thomas Jensen
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
Thomas Jensen
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
Thomas Jensen
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
Thomas Jensen
68098e4480
Add test cases and test runner improvements for testing #69 2021-03-19 16:40:53 +01:00
Thomas Jensen
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
Thomas Jensen
b38e8f527b
Explicitly set UTF-8 charset in unicode test cases (forgot 114) #73 2021-02-19 10:34:48 +01:00
Thomas Jensen
352a7b6d5d
Add test cases for removal of colored boxes 2021-02-15 21:10:57 +01:00
Thomas Jensen
beb8696a79
Add error test case for unterminated strings in the config file 2021-02-15 21:10:56 +01:00
Thomas Jensen
ac8617b383
Clean up config file 2021-02-15 21:10:56 +01:00
Thomas Jensen
a841777007
Improve attribution of Joan Stark's work in resulting boxes 2021-02-15 21:10:56 +01:00
Thomas Jensen
eeb5e5d372
Improve test runner to handle windows line breaks in :ARGS spec 2021-02-15 21:10:55 +01:00
Thomas Jensen
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
Thomas Jensen
f4f14cdc61
Update copyright statements in source files with current year 2021-02-15 21:10:54 +01:00
Thomas Jensen
363e0266e0
Add test cases for unicode and invalid manual encoding #1 2021-02-15 20:35:29 +01:00
Thomas Jensen
c370772ee0
Switch test runner output filter sed to extended regex (-E) 2021-02-15 20:35:29 +01:00
Thomas Jensen
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
Thomas Jensen
44c2c526af
Add command line option -n to set character encoding of input text #1 2021-02-15 20:35:20 +01:00
Thomas Jensen
4c656727ec
Add advance_next32() function to 'unicode' module to encapsulate the escape handling logic #1 2021-02-13 11:01:55 +01:00
Thomas Jensen
91d1971cca
Fix handling of colored whitespace #1 2021-02-13 11:01:53 +01:00
Ben Dimbeck
a253fe105a Test cases for ANSI 2020-07-17 20:58:59 +02:00
Thomas Jensen
7e3640481b
Fix test cases again 2019-05-25 14:59:03 +02:00
Thomas Jensen
2b17b60716
Move some test designs out of the official config file 2019-05-23 21:32:06 +02:00
Thomas Jensen
fbfbd29f5b
Fix test cases for changed box design info 2019-05-21 21:44:46 +02:00
Thomas Jensen
ae96f13797
Apply -q to box creation 2019-02-28 21:29:34 +01:00
Thomas Jensen
f6bae3493d Adapt 2 test cases for homebrew 64-bit #38 2017-03-14 21:47:53 +01:00
Thomas Jensen
af85c0c255 Evaluate new 'designer' keyword and show it in box design information output #22 2016-01-05 22:39:11 +01:00