extract https://github.com/h2o/picohttpparser @ f8d0513 () at deps/picohttpparser

This commit is contained in:
Kazuho Oku 2024-01-29 11:05:56 +09:00
parent b28e758f83
commit 2bfa48c0be
3 changed files with 29 additions and 8 deletions

View File

@ -0,0 +1,25 @@
name: CI
on:
push:
branches: [ "master" ]
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
cc:
- gcc
- clang
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: make test
run: make test CC=${{ matrix.cc }}

View File

@ -1,6 +0,0 @@
language: c
compiler:
- gcc
- clang
script:
- make test

View File

@ -25,14 +25,16 @@
CC?=gcc
PROVE?=prove
CFLAGS=-Wall -fsanitize=address,undefined
TEST_ENV="UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1"
all:
test: test-bin
$(PROVE) -v ./test-bin
env $(TEST_ENV) $(PROVE) -v ./test-bin
test-bin: picohttpparser.c picotest/picotest.c test.c
$(CC) -Wall $(CFLAGS) $(LDFLAGS) -o $@ $^
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
clean:
rm -f test-bin