mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-26 22:41:03 +08:00
parent
da028d1af9
commit
38b129de66
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
@ -52,13 +52,6 @@ jobs:
|
||||
run: sudo apt -y update ; sudo apt -y install libmbedtls-dev valgrind
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make unamalgamated && make valgrind && make mg_prefix
|
||||
examples:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: sudo apt -y install libmbedtls-dev libpcap-dev
|
||||
- run: make clean examples
|
||||
- run: make clean test MG_ENABLE_POLL=1
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
env: { HOMEBREW_NO_AUTO_UPDATE: 1 }
|
||||
@ -101,6 +94,27 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- run: make riscv
|
||||
|
||||
examples:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: sudo apt -y install libmbedtls-dev libpcap-dev
|
||||
- run: make clean examples
|
||||
- run: make clean test MG_ENABLE_POLL=1
|
||||
examples_win:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
# - uses: egor-tensin/setup-mingw@v2
|
||||
# with:
|
||||
# platform: x64
|
||||
- name: test they build
|
||||
run: make examples_win
|
||||
shell: cmd
|
||||
- name: test they clean
|
||||
run: make clean_examples_win
|
||||
shell: cmd
|
||||
|
||||
test_f7:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
6
Makefile
6
Makefile
@ -13,6 +13,7 @@ IPV6 ?= 1
|
||||
ASAN ?= -fsanitize=address,undefined,alignment -fno-sanitize-recover=all -fno-omit-frame-pointer -fno-common
|
||||
ASAN_OPTIONS ?= detect_leaks=1
|
||||
EXAMPLES := $(dir $(wildcard examples/*/Makefile))
|
||||
EXAMPLES_WIN := $(dir $(wildcard examples/device-dashboard/Makefile) $(wildcard examples/file-*/Makefile) $(wildcard examples/http-*/Makefile) $(wildcard examples/mqtt-*/Makefile) $(wildcard examples/websocket-*/Makefile) $(wildcard examples/webui-*/Makefile))
|
||||
PREFIX ?= /usr/local
|
||||
VERSION ?= $(shell cut -d'"' -f2 src/version.h)
|
||||
COMMON_CFLAGS ?= $(C_WARN) $(WARN) $(INCS) $(DEFS) -DMG_ENABLE_IPV6=$(IPV6) $(TFLAGS) -pthread
|
||||
@ -57,6 +58,11 @@ mip_tap_test: test/mip_tap_test.c mongoose.c mongoose.h Makefile
|
||||
examples:
|
||||
@for X in $(EXAMPLES); do test -f $$X/Makefile || continue; $(MAKE) -C $$X example || exit 1; done
|
||||
|
||||
examples_win:
|
||||
$(foreach X, $(EXAMPLES_WIN), $(MAKE) -C $(X) example &)
|
||||
clean_examples_win:
|
||||
$(foreach X, $(EXAMPLES_WIN), $(MAKE) -C $(X) clean &)
|
||||
|
||||
test/packed_fs.c: Makefile src/ssi.h test/fuzz.c test/data/a.txt
|
||||
$(CC) $(CFLAGS) test/pack.c -o pack
|
||||
$(RUN) ./pack Makefile src/ssi.h test/fuzz.c test/data/a.txt test/data/range.txt > $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user