Commit Graph

80 Commits

Author SHA1 Message Date
45ce5e6762 Add more box removal test cases 2023-12-02 22:23:43 +01:00
15c72d4d99 Restore branch coverage for tests on Linux 2023-12-02 14:36:19 +01:00
03c79973f0 Remove ignore errors 2023-12-02 13:51:55 +01:00
bfee5e3023 Try and handle multiple coveralls 2023-12-02 13:51:55 +01:00
a89b8cc838 Try and handle test 111 2023-12-02 13:51:55 +01:00
a71c3f080d Ignore unused error 2023-12-02 13:51:55 +01:00
5e9c69ccec move to branch_coverage to avoid warning 2023-12-02 13:51:55 +01:00
47b7084fa1 Enable terminal colors globally for tests 2023-05-19 22:12:51 +02:00
2984cda0ca Add test for generating a colored unicode box which
includes some double-wide characters
2023-05-19 22:12:51 +02:00
232be1cdc4 Fix color test cases for GitHub Actions without TERM 2023-05-10 21:06:00 +02:00
08feb7eb2c Add long options capability to command line 2023-05-06 22:43:11 +02:00
357ea9d788 Add test case for listing of designs with UTF-8 metadata 2023-05-05 21:54:23 +02:00
d36380268d Add first test case for a UTF-8 config file 2023-05-04 21:32:49 +02:00
34759334f7 Print useful error message on invalid design name 2023-04-30 17:44:32 +02:00
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