Commit Graph

625 Commits

Author SHA1 Message Date
Matthew Thompson
ed19a57c59 Enable white-box tests on macOS 2023-12-02 13:51:55 +01:00
David Sargeant
71331ee205 tools.h - change set_bx_fprintf() function declaration to match renamed parameter 2023-12-02 13:51:55 +01:00
David Sargeant
5f0db01418 Update Makefile, src/Makefile, and utest/Makefile to support MacOS unit tests 2023-12-02 13:51:55 +01:00
David Sargeant
503a81cf9a setup_mocks() should set function pointer bx_fprintf to point to __wrap_bx_fprintf() 2023-12-02 13:51:55 +01:00
David Sargeant
54957a144b Change bx_fprintf to a function pointer to enable unit testing on MacOS 2023-12-02 13:51:55 +01:00
David Sargeant
f369cb80ba .gitignore add VS Code and JetBrains CLion files 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
Matthew Thompson
0233ef2c3e Update to checkout v4 2023-12-02 13:51:55 +01:00
Matthew Thompson
f732ff298b Remove LC_ALL as more tests crashed with it 2023-12-02 13:51:55 +01:00
Matthew Thompson
f3bd61075f Add LC_ALL 2023-12-02 13:51:55 +01:00
Matthew Thompson
ba4a01728b Add findutils for xargs 2023-12-02 13:51:55 +01:00
Matthew Thompson
fa13dedef2 Add gnu-sed 2023-12-02 13:51:55 +01:00
Matthew Thompson
9530c5889d macos runners have git libunistring pcre2 and ncurses by default 2023-12-02 13:51:55 +01:00
Matthew Thompson
c137b853fb Use GNU grep on macos 2023-12-02 13:51:55 +01:00
Matthew Thompson
539f215e35 Turn off whitebox 2023-12-02 13:51:55 +01:00
Matthew Thompson
069197052e Allow override of LEX and YACC; merge changes from macos-ci branch 2023-12-02 13:51:55 +01:00
Matthew Thompson
3551c4bd57 Explicit LEX and YACC 2023-12-02 13:51:55 +01:00
Matthew Thompson
a14601bd09 Add macOS CI 2023-12-02 13:51:55 +01:00
Thomas Jensen
bfb8428f1f
Fix Windows build for more recent MinGW
- Use ncurses.h from MinGW directory
- Remove 'src/misc' directory, which is now covered by MinGW
2023-11-12 15:19:52 +01:00
Matthew Thompson
fd65f16827
Add _DARWIN_C_SOURCE if APPLE (#119) 2023-08-24 15:50:57 +02: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
6cea61c327
Add bxstring support to 'generate' module 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
cd2ccdaed3
Add bxs_filter_visible() and react to color options in bxs_to_output() in 'bxstring' module 2023-05-09 21:09:00 +02:00
Thomas Jensen
241459e5b4
Add ncurses library to check terminal's color support 2023-05-08 21:12:00 +02:00
Thomas Jensen
89111c55b6
Add new command line options --color and --no-color 2023-05-07 15:25:23 +02:00
Thomas Jensen
08feb7eb2c
Add long options capability to command line 2023-05-06 22:43:11 +02:00
Thomas Jensen
2910b961c1
Update build workflow to actions/checkout@v3 2023-05-06 13:59:26 +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
1845d1ebb1
Disable some code in the "tools" module which is only for debugging purposes 2023-05-04 21:49:52 +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
4cce7ae461
Add bxs_is_visible_char() to 'bxstring' module 2023-05-04 21:30:47 +02:00
Thomas Jensen
d80ed48102
Fix declared header dependencies in Makefiles 2023-05-01 21:41:02 +02:00
Thomas Jensen
c41997870e
Add test case and fix for string with broken escape sequences 2023-05-01 14:18:33 +02:00
Thomas Jensen
34759334f7
Print useful error message on invalid design name 2023-04-30 17:44:32 +02:00
Thomas Jensen
b7e3549d15
Implement some of the things marked as to-do 2023-04-30 17:15:22 +02:00
Thomas Jensen
771f78874e
Move code on shape lines from parser.y to parsecode.c 2023-04-30 14:14:21 +02:00
Thomas Jensen
286ec99c6d
Upgrade build workflow to use coverallsapp/github-action@v2
This fixes an out-of-memory problem and overcomes
artifact size limitations in the old coveralls GitHub action.
2023-04-29 14:58:00 +02:00
Thomas Jensen
24018c3f86
Update help text for -m option 2023-04-20 21:54:00 +02:00
Thomas Jensen
21a691fbd1
Use UTF-8 data read from config file #72
- shapes get additional MBCS values
- metadata is already converted for real to use bxstr_t*
2023-04-19 21:06:00 +02:00
Thomas Jensen
8a7bb8039f
Enable lexer and parser to handle UTF-8 config file #72 2023-04-07 21:10:00 +02:00
Thomas Jensen
4ff37eb5ba
Extend bxstring functionality 2023-03-31 21:00:00 +02:00
Thomas Jensen
5026357fc2
Add more tests for bxstring creating functions 2023-03-28 21:27:06 +02:00
Thomas Jensen
844868b36c
Add clang-format configuration 2023-03-26 21:34:44 +02:00
Thomas Jensen
b0d3384bd4
Add new "bxstring" module which is meant to evolve into boxes' string abstraction
It handles embedded escape sequences, mbcs encodings, and characters wider than 1 column.
2023-03-26 21:34:44 +02:00
Thomas Jensen
77d02890a7
Update copyright statements for 2023 2023-03-26 21:32:08 +02:00