shared/c-list: reimport

git subtree pull --prefix shared/c-list git@github.com:c-util/c-list.git master --squash
This commit is contained in:
Thomas Haller 2019-04-14 13:01:13 +02:00
commit 70c71151c6
No known key found for this signature in database
GPG Key ID: 29C2366E4DFC5728
6 changed files with 25 additions and 41 deletions

View File

@ -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
shared/c-list/.github/workflows/ci.yml vendored Normal file
View 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

View File

@ -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

View File

@ -1,5 +1,3 @@
# SPDX-License-Identifier: LGPL-2.1+
project(
'c-list',
'c',

View File

@ -1,5 +1,3 @@
# SPDX-License-Identifier: LGPL-2.1+
#
# target: libclist.so
# (No .so is built so far, since we are header-only. This might change in the

View File

@ -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);
}