mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
6c35cef63f
Useful for local runs. Does the same as CI, so if it fails on CI, this can be used to test locally, avoiding slow CI round trips.
31 lines
794 B
Docker
31 lines
794 B
Docker
FROM toxchat/compcert:latest
|
|
|
|
WORKDIR /work
|
|
COPY auto_tests/ /work/auto_tests/
|
|
COPY testing/ /work/testing/
|
|
COPY toxav/ /work/toxav/
|
|
COPY toxcore/ /work/toxcore/
|
|
COPY toxencryptsave/ /work/toxencryptsave/
|
|
COPY third_party/ /work/third_party/
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
RUN ccomp \
|
|
-o send_message_test \
|
|
-Wall -Werror \
|
|
-Wno-c11-extensions \
|
|
-Wno-unknown-pragmas \
|
|
-Wno-unused-variable \
|
|
-fstruct-passing -fno-unprototyped -g \
|
|
auto_tests/auto_test_support.c \
|
|
auto_tests/send_message_test.c \
|
|
testing/misc_tools.c \
|
|
toxav/*.c \
|
|
toxcore/*.c \
|
|
toxcore/*/*.c \
|
|
toxencryptsave/*.c \
|
|
third_party/cmp/*.c \
|
|
-D__COMPCERT__ -DDISABLE_VLA -Dinline= \
|
|
-lpthread $(pkg-config --cflags --libs libsodium opus vpx) \
|
|
&& ./send_message_test | grep 'tox clients connected'
|