This repository has been archived by the owner on Feb 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* async: add new tests (#107) * cmake: add path to windows build * mock: fix warning * dns/client: add async getaddrinfo usage (#112) * dns: refactor IP checks and add system test * use dnsc_getaddrinfo * fmt: workaround for windows compiler * sys: fix unlink and WIN32 * test: cast values to fix WIN32 warnings * trace: fix unlink and WIN32 * main: only run regular tests if GETOPT is missing * test: various fixes for WIN32 * async: fix multithreading tests (#115) * main: if GETOPT is missing run regular tests * cmake: add LINKLIBS variable * test cmake on Windows (#114) * test cmake on Windows * You have an error in your yaml syntax on line 14 * fix yaml syntax error * try to find re * try to find rem * mock: fix win32 warning * fix unlink warnings * fix warnings * fix write * fix size_t * write needs unsigned int * link to win32 libs * add qwave * execute retest.exe in build/debug * set verbose * set verbose * disable all * update flags * ci: fix compiler list and choco * LINKLIBS and flags * test: fix c11 err handling * cmake: use re config (#118) * base64: Encoding/Decoding with URL and Filename Safe Alphabet (#113) * cmake: bump minimum to 3.10 (#119) * Don't fail on compilation when there no OpenSSL on target platform (#120) * trice: fix win32 with explicit error tests (#121) * http: test http/https requests with large body * http: validate body of http requests for get method * http: add test for http conn requests * dns: test dnsc_getaddrinfo_enabled * rtp: Update tests for the changed rtp_send signature. This updates RTP tests for compatibility with this PR: baresip/re#418 * crc32: add re wrapper * sipreg: use TEST_ERR and remove static port test Tests should run without interfere with each other. Looks like on Github Actions runners share the same port range sometimes? So for tests we have to use dynamic ports. * cmake: no need to link to libz * sa: init err * cmake: add optional zlib linking * cmake/FindREM: add rem-static target name * sys: remove old sys div test (#130) * aubuf: refactor aubuf_auframe test (#70) * rtcp: use udp_send() (#132) * rtcp: use udp_send() * rtcp: add workaround for OOM test * leb128: remove debug * http: fix http content length format (#136) * Support run specific integration test and add http with local dnssrv (#135) * support run specific integration test * http: add integration test for http using local dns server * odict: check return value of compare() * odict: use correct union field (boolean) (#137) Fixes a bug on Alpine/S390x which is 64-bit Big Endian architecture * test: use fs_stdio_restore() (#138) * oom: align testcase names * align testcase names * tmr: increase upper bound * remove leb128 printf * sys: add todo * net: add ipv6_supported() * sys: unique filename in test_sys_fs_fopen (#142) * net: remove logging * Enable valgrind for Linux build (#140) * integration: make IPv6 tests optional * bfcp: check for handler errors after re_main * fmt: add test_fmt_str_itoa (#143) * git: ignore cmake generated files * workflows: add run-on-arch action (#134) * test_multithread: increase timeout to 15 seconds * tls: remove some warnings (#144) * ci/run-on-arch: add prepare (needed for dependency) (#145) * ci: use actions/checkout@v3 (#148) * list: add test_list_flush (#151) * list: fix flushl global (#152) Co-authored-by: Sebastian Reimers <[email protected]> Co-authored-by: Dmitry Ilyin <[email protected]> Co-authored-by: Franz Auernigg <[email protected]> Co-authored-by: Andrey Semashev <[email protected]> Co-authored-by: Franz <[email protected]>
- Loading branch information
1 parent
514de41
commit e4f419a
Showing
20 changed files
with
371 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
# os: [ubuntu-latest, macos-latest] # @todo: macOS need fixes | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: sreimers/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: sreimers/[email protected] | ||
with: | ||
|
@@ -50,7 +50,7 @@ jobs: | |
CC: ${{ matrix.compiler }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: install devel tools | ||
run: | | ||
yum -y install git gcc clang cmake openssl-devel pkgconfig zlib-devel net-tools | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
prepare: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: sreimers/[email protected] | ||
with: | ||
name: re | ||
repo: https://github.com/baresip/re | ||
secret: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: sreimers/[email protected] | ||
with: | ||
name: rem | ||
repo: https://github.com/baresip/rem | ||
secret: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: prepare | ||
path: | | ||
re | ||
rem | ||
build_job: | ||
# The host should always be linux | ||
runs-on: ubuntu-18.04 | ||
name: Build on ${{ matrix.distro }} ${{ matrix.arch }} | ||
needs: prepare | ||
|
||
# Run steps on a matrix of 3 arch/distro combinations | ||
strategy: | ||
matrix: | ||
include: | ||
- arch: armv7 | ||
distro: alpine_latest | ||
- arch: aarch64 | ||
distro: bullseye | ||
- arch: s390x | ||
distro: fedora_latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download re/rem | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: prepare | ||
|
||
- uses: uraimo/run-on-arch-action@v2 | ||
name: Build artifact | ||
id: build | ||
with: | ||
arch: ${{ matrix.arch }} | ||
distro: ${{ matrix.distro }} | ||
|
||
# Not required, but speeds up builds | ||
githubToken: ${{ github.token }} | ||
|
||
# Create an artifacts directory | ||
setup: | | ||
mkdir -p "${PWD}/artifacts" | ||
# The shell to run commands with in the container | ||
shell: /bin/sh | ||
|
||
# Install some dependencies in the container. This speeds up builds if | ||
# you are also using githubToken. Any dependencies installed here will | ||
# be part of the container image that gets cached, so subsequent | ||
# builds don't have to re-install them. The image layer is cached | ||
# publicly in your project's package repository, so it is vital that | ||
# no secrets are present in the container state or logs. | ||
install: | | ||
case "${{ matrix.distro }}" in | ||
ubuntu*|jessie|stretch|buster|bullseye) | ||
apt-get update -q -y | ||
apt-get install -q -y cmake gcc git make libssl-dev | ||
;; | ||
fedora*) | ||
dnf -y update | ||
dnf -y install cmake gcc git make openssl-devel | ||
;; | ||
alpine*) | ||
apk update | ||
apk add cmake gcc git linux-headers make musl-dev openssl-dev | ||
;; | ||
esac | ||
# Produce a binary artifact and place it in the mounted volume | ||
run: | | ||
for p in re rem; do | ||
cmake -S $p -B $p/build -DCMAKE_C_FLAGS="-Werror" | ||
cmake --build $p/build -j | ||
done | ||
for p in re rem; do | ||
mv $p ../. | ||
done | ||
cmake -B build -DCMAKE_C_FLAGS="-Werror" | ||
cmake --build build -j | ||
./build/retest -v -r | ||
- name: Show the artifact | ||
# Items placed in /artifacts in the container will be in | ||
# ${PWD}/artifacts on the host. | ||
run: | | ||
ls -al "${PWD}/artifacts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,8 @@ tags | |
|
||
# Vim swp files | ||
*.swp | ||
|
||
# cmake | ||
CMakeCache.txt | ||
CMakeFiles/ | ||
cmake_install.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.