]> _ Git - termbox2.git/commit
Run tests for non-truecolor and non-egc builds.
authorAdam Saponara <as@php.net>
Sat, 4 Jun 2022 21:27:20 +0000 (17:27 -0400)
committerAdam <as@php.net>
Sat, 4 Jun 2022 21:33:58 +0000 (17:33 -0400)
commit8bcc111fdc51be1ccd569a6fc984f9467a6c4146
treefe09a26aa8e1302a0c49d5ac7a87a8d7a139a432
parent9d83e76b60d0f3fdf5ed72c02af2e0d8a8af9b2a
Run tests for non-truecolor and non-egc builds.

This patch introduces a few new things:

* Build artifact termbox.ffi.h for easier FFI header file parsing. As a result, no more `__ffi_strip` bs, but probably more complex overall. The other idea I had would have been uglier. I think the test coverage is worth it.

* Functions `tb_has_truecolor` and `tb_has_egc` for determining support for those features at runtime.

* Test container uses `debian:11-slim` image instead of `debian:10-slim`.

* Test container uses PHP 8 instead of PHP 7.

* Test container now accepts `cflags` build argument.

* Tests can now be skipped via `$test->skip()`.

* Test suite covers 3 different builds: normal, non-truecolor, non-egc.
.github/workflows/termbox_test.yml
Makefile
termbox.h
tests/Dockerfile
tests/run.sh
tests/test_color_true/test.php
tests/test_ffi.php
tests/test_non_spacing_mark/test.php