mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-06 16:21:50 +00:00
Squashed 'shared/c-list/' changes from 2e4b605c6217..ac7c83139821
ac7c83139821 ci: switch to c-util automation 6c53ef1c0066 ci: switch to github-actions b1cd4dbf967d Fix assignment instead of comparison 50e67beedbd9 ci: drop broken armv7hl git-subtree-dir: shared/c-list git-subtree-split: ac7c831398219acd8d63038e866035a6f86f9e21
This commit is contained in:
parent
5fceb23fa4
commit
722510b73d
|
@ -1,12 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rm -Rf "./ci-build"
|
||||
mkdir "./ci-build"
|
||||
cd "./ci-build"
|
||||
|
||||
${CHERRY_LIB_MESONSETUP} . "${CHERRY_LIB_SRCDIR}"
|
||||
${CHERRY_LIB_NINJABUILD}
|
||||
${CHERRY_LIB_MESONTEST}
|
||||
(( ! CHERRY_LIB_VALGRIND )) || ${CHERRY_LIB_MESONTEST} "--wrapper=${CHERRY_LIB_VALGRINDWRAP}"
|
21
.github/workflows/ci.yml
vendored
Normal file
21
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Continuous Integration
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: CI with Default Configuration
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Fetch Sources
|
||||
uses: actions/checkout@v2
|
||||
- name: Run through C-Util CI
|
||||
uses: c-util/automation/src/ci-c-util@v1
|
||||
with:
|
||||
m32: 1
|
||||
valgrind: 1
|
21
.travis.yml
21
.travis.yml
|
@ -1,21 +0,0 @@
|
|||
os: linux
|
||||
dist: trusty
|
||||
language: c
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
before_install:
|
||||
- curl -O -L "https://raw.githubusercontent.com/cherry-pick/cherry-images/v1/scripts/vmrun"
|
||||
- curl -O -L "https://raw.githubusercontent.com/cherry-pick/cherry-ci/v1/scripts/cherryci"
|
||||
- chmod +x "./vmrun" "./cherryci"
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: test
|
||||
script:
|
||||
- ./vmrun -- ../src/cherryci -d ../src/.cherryci -s c-util -m
|
||||
- script:
|
||||
- ./vmrun -T armv7hl -- ../src/cherryci -d ../src/.cherryci -s c-util
|
||||
- script:
|
||||
- ./vmrun -T i686 -- ../src/cherryci -d ../src/.cherryci -s c-util
|
|
@ -125,15 +125,15 @@ static void test_swap(void) {
|
|||
|
||||
assert(c_list_first(&list1) == &list);
|
||||
assert(c_list_last(&list1) == &list);
|
||||
assert(list.next = &list1);
|
||||
assert(list.prev = &list1);
|
||||
assert(list.next == &list1);
|
||||
assert(list.prev == &list1);
|
||||
|
||||
c_list_swap(&list1, &list2);
|
||||
|
||||
assert(c_list_first(&list2) == &list);
|
||||
assert(c_list_last(&list2) == &list);
|
||||
assert(list.next = &list2);
|
||||
assert(list.prev = &list2);
|
||||
assert(list.next == &list2);
|
||||
assert(list.prev == &list2);
|
||||
|
||||
assert(list1.prev == list1.next && list1.prev == &list1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue