Thomas Jensen
a71e1b875c
Add test cases for generating debug log output
2024-09-28 15:00:45 +02:00
Thomas Jensen
83fc460a49
Remove remaining EOF comments from source files
2024-09-28 15:00:45 +02:00
Thomas Jensen
4246ad1203
Update copyright statements for 2024
2024-02-16 22:01:58 +01:00
Thomas Jensen
2b0e3ceaec
Add test case for UTF-8 parent config file name
2024-02-14 22:03:15 +01:00
Thomas Jensen
d62b04e485
Drop fields REVISION, REVDATE, and CREATED from config file
...
These pieces of information are really in Git, so they are no longer required in the config file.
2024-02-14 22:03:15 +01:00
Thomas Jensen
0eb8272e9b
Change testrunner.sh so that coverage is only calculated for all black-box tests in total
...
Coverage per test can be displayed using the new `--coverage-per-test` option, which implies `--coverage`.
This should speed up our CI workflows.
2023-12-24 14:12:50 +01:00
Thomas Jensen
e9a3014db0
Add 'dragon' box design
2023-12-24 14:11:42 +01:00
Thomas Jensen
70344a7324
Add test suite for sunny day scenarios
...
We add, mend, and remove every design in our official config file
and check that the operation is successful.
2023-12-24 14:11:40 +01:00
Thomas Jensen
0eed7422f6
Restore indentation mode on box removal
2023-12-09 14:54:14 +01:00
Thomas Jensen
76c4e10cd1
Add new test case for nearly blank corners and indentation removal
...
... including some fixes to make this work.
2023-12-09 14:54:13 +01:00
Thomas Jensen
ba40638946
Add two more black-box tests for removal with fixes
2023-12-09 14:51:23 +01:00
Thomas Jensen
602d91dd8b
Test and fix handling of line comment removal
2023-12-09 14:48:47 +01:00
Thomas Jensen
d9550ac58d
Add new box designs 'info', 'warning', and 'critical'
...
which take advantage of coloring and unicode
2023-12-09 14:48:47 +01:00
Thomas Jensen
863c7c1f7b
Test and fix more comparison types in box removal
2023-12-02 22:26:36 +01:00
Thomas Jensen
6de060ceb6
Finalize rewritten 'remove' module
2023-12-02 22:26:34 +01:00
Thomas Jensen
45ce5e6762
Add more box removal test cases
2023-12-02 22:23:43 +01:00
Thomas Jensen
15c72d4d99
Restore branch coverage for tests on Linux
2023-12-02 14:36:19 +01:00
Matthew Thompson
03c79973f0
Remove ignore errors
2023-12-02 13:51:55 +01:00
Matthew Thompson
bfee5e3023
Try and handle multiple coveralls
2023-12-02 13:51:55 +01:00
Matthew Thompson
a89b8cc838
Try and handle test 111
2023-12-02 13:51:55 +01:00
Matthew Thompson
a71c3f080d
Ignore unused error
2023-12-02 13:51:55 +01:00
Matthew Thompson
5e9c69ccec
move to branch_coverage to avoid warning
2023-12-02 13:51:55 +01:00
Thomas Jensen
47b7084fa1
Enable terminal colors globally for tests
2023-05-19 22:12:51 +02:00
Thomas Jensen
2984cda0ca
Add test for generating a colored unicode box which
...
includes some double-wide characters
2023-05-19 22:12:51 +02:00
Thomas Jensen
232be1cdc4
Fix color test cases for GitHub Actions without TERM
2023-05-10 21:06:00 +02:00
Thomas Jensen
08feb7eb2c
Add long options capability to command line
2023-05-06 22:43:11 +02:00
Thomas Jensen
357ea9d788
Add test case for listing of designs with UTF-8 metadata
2023-05-05 21:54:23 +02:00
Thomas Jensen
d36380268d
Add first test case for a UTF-8 config file
2023-05-04 21:32:49 +02:00
Thomas Jensen
34759334f7
Print useful error message on invalid design name
2023-04-30 17:44:32 +02:00
Thomas Jensen
24018c3f86
Update help text for -m option
2023-04-20 21:54:00 +02:00
Thomas Jensen
77d02890a7
Update copyright statements for 2023
2023-03-26 21:32:08 +02:00
Thomas Jensen
518f4c4dc2
Address some shellcheck issues in testrunner.sh
2023-03-26 14:32:53 +02:00
Thomas Jensen
fd0c3d8d90
Adjust test cases 004 and 065 for musl and alpine output #103
2022-10-03 14:47:23 +02:00
Thomas Jensen
a3a37b50fc
Upgrade project license to GPL-3 #101
2022-09-18 15:00:15 +02:00
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