Skip to content

Commit d185a51

Browse files
committed
Merge branch 'devel'
2 parents d190015 + 7f403aa commit d185a51

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2763
-916
lines changed

.github/workflows/ubuntu-clang.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
4444
--config ${{env.BUILD_TYPE}}
4545
4646
- name: install
47-
working-directory: ${{github.workspace}}/build
4847
run: |
4948
cmake --build ${{github.workspace}}/build \
5049
--config ${{env.BUILD_TYPE}} -- install

.github/workflows/ubuntu-gcc.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,18 @@ jobs:
3232
3333
- name: configure cmake
3434
run: |
35-
cmake -B ${{github.workspace}}/build \
36-
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
37-
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
38-
-D CMAKE_C_COMPILER=/usr/lib/ccache/gcc \
39-
-D BFDEV_DEVEL=ON
35+
cmake -B ${{github.workspace}}/build \
36+
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
37+
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
38+
-D CMAKE_C_COMPILER=/usr/lib/ccache/gcc \
39+
-D BFDEV_DEVEL=ON
4040
4141
- name: make
4242
run: |
4343
cmake --build ${{github.workspace}}/build \
4444
--config ${{env.BUILD_TYPE}}
4545
4646
- name: install
47-
working-directory: ${{github.workspace}}/build
4847
run: |
4948
cmake --build ${{github.workspace}}/build \
5049
--config ${{env.BUILD_TYPE}} -- install

.github/workflows/windows.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,21 @@ jobs:
3838

3939
- name: configure cmake
4040
run: |
41-
cmake -B build \
42-
-D CMAKE_INSTALL_PREFIX=build/install \
43-
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
44-
-D BFDEV_EXAMPLES=ON
41+
cmake -B build \
42+
-D CMAKE_INSTALL_PREFIX=build/install \
43+
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
44+
-D BFDEV_EXAMPLES=ON \
45+
-D BFDEV_TESTSUITE=ON
4546
4647
- name: make
47-
run: cmake --build build --config ${{env.BUILD_TYPE}}
48+
run: |
49+
cmake --build build \
50+
--config ${{env.BUILD_TYPE}}
4851
4952
- name: install
50-
run: cmake --build build --config ${{env.BUILD_TYPE}} -- install
53+
run: |
54+
cmake --build build \
55+
--config ${{env.BUILD_TYPE}} -- install
5156
5257
- name: ctest
5358
working-directory: ${{github.workspace}}/build

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66

77
cmake_minimum_required(VERSION 3.12)
8-
project(bfdev VERSION 1.0.2 LANGUAGES C)
8+
project(bfdev VERSION 1.0.3 LANGUAGES C)
99

1010
include(GNUInstallDirs)
1111
include(CheckIncludeFiles)
@@ -41,6 +41,7 @@ commit_branch(BFDEV_BRANCH)
4141
option(BFDEV_DEVEL "Enable development mode" OFF)
4242
option(BFDEV_STRICT "Enable strict compilation" ON)
4343
option(BFDEV_EXAMPLES "Build examples" OFF)
44+
option(BFDEV_TESTSUITE "Build testsuite" OFF)
4445

4546
option(BFDEV_ASAN "Enable Address Sanitizer" OFF)
4647
option(BFDEV_UBSAN "Enable Undefined Behaviour Sanitizer" OFF)
@@ -57,6 +58,7 @@ option(BFDEV_CRC_EXTEND "CRC loop unfolding optimize" ON)
5758

5859
if(BFDEV_DEVEL)
5960
set(BFDEV_EXAMPLES ON)
61+
set(BFDEV_TESTSUITE ON)
6062
set(BFDEV_ASAN ON)
6163
set(BFDEV_UBSAN ON)
6264
set(BFDEV_GCOV ON)
@@ -101,6 +103,11 @@ if(BFDEV_EXAMPLES)
101103
add_subdirectory(examples)
102104
endif()
103105

106+
if(BFDEV_TESTSUITE)
107+
enable_testing()
108+
add_subdirectory(testsuite)
109+
endif()
110+
104111
if(${CMAKE_PROJECT_NAME} STREQUAL "bfdev")
105112
add_library(bfdev_static STATIC ${BFDEV_LIBRARY})
106113
add_library(bfdev_shared SHARED ${BFDEV_LIBRARY})

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# BFDEV Introduce
22

3+
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8769/badge)](https://www.bestpractices.dev/projects/8769)
4+
35
bfdev is a high-performance, aesthetically pleasing, and portable infrastructure provisioning library. Its goal is to provide a comprehensive and streamlined development environment.
46

57
![logo](docs/images/logo.png)

examples/list/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-or-later
22
/list-benchmark
3-
/list-selftest

examples/list/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,15 @@ add_executable(list-benchmark benchmark.c)
77
target_link_libraries(list-benchmark bfdev)
88
add_test(list-benchmark list-benchmark)
99

10-
add_executable(list-selftest selftest.c)
11-
target_link_libraries(list-selftest bfdev)
12-
add_test(list-selftest list-selftest)
13-
1410
if(${CMAKE_PROJECT_NAME} STREQUAL "bfdev")
1511
install(FILES
1612
benchmark.c
17-
selftest.c
1813
DESTINATION
1914
${CMAKE_INSTALL_DOCDIR}/examples/list
2015
)
2116

2217
install(TARGETS
2318
list-benchmark
24-
list-selftest
2519
DESTINATION
2620
${CMAKE_INSTALL_DOCDIR}/bin
2721
)

examples/list/selftest.c

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)