From c4836057209ad7961b07518e43c8ba2277258513 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Wed, 15 Apr 2026 17:33:19 +1000 Subject: feat(Makefile): Add png_tests --- .github/workflows/c-cpp.yml | 23 ----------------------- Makefile | 13 ++++++++++++- 2 files changed, 12 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml deleted file mode 100644 index 5757abd..0000000 --- a/.github/workflows/c-cpp.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: C/C++ CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Make (GCC) - run: make CC=gcc - - - name: Clean before Clang - run: make clean - - - name: Make (Clang) - run: make CC=clang diff --git a/Makefile b/Makefile index b1d5825..b7f8df6 100644 --- a/Makefile +++ b/Makefile @@ -44,4 +44,15 @@ asan: CC=clang asan: CFLAGS += $(SANFLAGS) asan: clean all -.PHONY: all clean debug release asan +# Currently supporting: +# Images +# - png +# - bmp (WIP) + +test-png: clean + $(MAKE) USE_HOSTED=1 + $(CC) $(CFLAGS) -DUSE_HOSTED tests/format/image/png/png_open.c -o png_test -Iinclude/bridges -Ldist -ltinyff && ./png_test + +test: test-png + +.PHONY: all clean debug release asan test test-png -- cgit v1.2.3