Use GH actions for FreeBSD (#131)

* Use GH actions for FreeBSD
This commit is contained in:
Ozan Tezcan 2024-04-05 13:42:40 +03:00 committed by GitHub
parent 5037d2d36e
commit 19ad3a4478
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 32 additions and 14 deletions

View File

@ -1,10 +0,0 @@
freebsd_task:
freebsd_instance:
image_family: freebsd-12-1
cpu: 1
memory: 2G
test_script:
- pkg install -y git cmake
- mkdir build && cd build
- cmake -DSANITIZER=address .. && make && make check && rm -rf *
- cmake -DSANITIZER=undefined .. && make && make check && rm -rf *

28
.github/workflows/.freebsd.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: freeBSD
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- master
pull_request:
branches:
- master
jobs:
freebsd:
runs-on: ubuntu-latest
name: FreeBSD
steps:
- uses: actions/checkout@v4
- name: Test FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y git cmake
run: |
pwd
mkdir build && cd build
cmake -DSANITIZER=address .. && make && make check && rm -rf *
cmake -DSANITIZER=undefined .. && make && make check

View File

@ -1509,7 +1509,7 @@ void test_poll_edge(void)
&clt);
assert(rc == 0);
sc_time_sleep(50);
sc_time_sleep(250);
count = sc_sock_poll_wait(&p, timeout);
assert(count >= 2);
found = 0;
@ -1553,7 +1553,7 @@ void test_poll_edge(void)
&acc);
assert(rc == 0);
sc_time_sleep(50);
sc_time_sleep(250);
count = sc_sock_poll_wait(&p, timeout);
assert(count >= 1);
found = 0;
@ -1589,7 +1589,7 @@ void test_poll_edge(void)
assert(total_w > 0);
do {
sc_time_sleep(50);
sc_time_sleep(250);
count = sc_sock_poll_wait(&p, timeout);
assert(count >= 1);
found = 0;
@ -1628,7 +1628,7 @@ void test_poll_edge(void)
} while (total_r < total_w);
assert(total_r == total_w);
sc_time_sleep(50);
sc_time_sleep(250);
count = sc_sock_poll_wait(&p, timeout);
assert(count >= 1);
found = 0;