feature test env
Some checks failed
rpcrypto-build / build (Release, mips64el-linux-gnuabi64.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m9s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m11s
rpcrypto-build / build (Debug, hisiv500.toolchain.cmake) (push) Successful in 1m23s
rpcrypto-build / build (Debug, host-afl.toolchain.cmake) (push) Failing after 1m50s
rpcrypto-build / build (Debug, mips64el-linux-gnuabi64.toolchain.cmake) (push) Successful in 1m9s
rpcrypto-build / build (Debug, host.toolchain.cmake) (push) Failing after 2m23s
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Successful in 1m14s
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Successful in 1m22s
rpcrypto-build / build (Release, host-afl.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Release, host.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Release, hisiv500.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Has been cancelled
Some checks failed
rpcrypto-build / build (Release, mips64el-linux-gnuabi64.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Waiting to run
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m9s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m11s
rpcrypto-build / build (Debug, hisiv500.toolchain.cmake) (push) Successful in 1m23s
rpcrypto-build / build (Debug, host-afl.toolchain.cmake) (push) Failing after 1m50s
rpcrypto-build / build (Debug, mips64el-linux-gnuabi64.toolchain.cmake) (push) Successful in 1m9s
rpcrypto-build / build (Debug, host.toolchain.cmake) (push) Failing after 2m23s
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Successful in 1m14s
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Successful in 1m22s
rpcrypto-build / build (Release, host-afl.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Release, host.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Release, hisiv500.toolchain.cmake) (push) Has been cancelled
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Has been cancelled
This commit is contained in:
parent
2728f2d5e7
commit
60f965cce3
@ -33,7 +33,7 @@ jobs:
|
||||
-DCMAKE_TOOLCHAIN_FILE=toolchains/${{ matrix.toolchain }} \
|
||||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
||||
-DCMAKE_INSTALL_PREFIX=./install \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON ${CUSTOM_CMAKE_ARGS}
|
||||
cmake --build build --config ${{ matrix.build_type }} --target all -- -j `nproc`
|
||||
cmake --build build --config ${{ matrix.build_type }} --target install
|
||||
steps:
|
||||
@ -52,7 +52,7 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y libarchive-dev libssl-dev autoconf libtool pkg-config cmake make gcc g++
|
||||
${{ env.build_command }} -DULIB_BUILD_TESTS=ON
|
||||
${{ env.build_command }}
|
||||
|
||||
- name: run_gtest
|
||||
if: matrix.toolchain == 'host.toolchain.cmake'
|
||||
@ -68,6 +68,7 @@ jobs:
|
||||
export AFL_LLVM_LAF_ALL=1
|
||||
export CC=/usr/bin/afl-clang-fast
|
||||
export CXX=/usr/bin/afl-clang-fast++
|
||||
export CUSTOM_CMAKE_ARGS="-DULIB_BUILD_TESTS=ON"
|
||||
${{ env.build_command }}
|
||||
|
||||
- name: build-in-centos
|
||||
|
@ -32,9 +32,6 @@ target_link_libraries(${PROJECT_NAME} PUBLIC fmt::fmt)
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE ULIB_LIBRARY_IMPL)
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC src)
|
||||
|
||||
add_executable(ulib_main_test src/main.cpp)
|
||||
target_link_libraries(ulib_main_test PRIVATE ${PROJECT_NAME})
|
||||
|
||||
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
|
||||
|
||||
if(ULIB_BUILD_TESTS)
|
||||
|
13
src/main.cpp
13
src/main.cpp
@ -1,13 +0,0 @@
|
||||
//
|
||||
// Created by tqcq on 2023/12/5.
|
||||
//
|
||||
|
||||
#include <string>
|
||||
#include <ulib/log/log.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
ULOG_SET_STRIPPED_PREFIX_LEN(strlen(__FILE__) - strlen("src/main.cpp"));
|
||||
ULOG_TRACE("Hello, world!");
|
||||
return 0;
|
||||
}
|
@ -4,7 +4,12 @@ project(ulib_test)
|
||||
set(CMAKE_CXX_STANDARD 98)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
add_executable(ulib_test src/ulib/sigslot/sigslot_test.cpp)
|
||||
target_link_libraries(ulib_test gtest gtest_main)
|
||||
add_executable(ulib_test
|
||||
src/ulib/sigslot/sigslot_test.cpp)
|
||||
|
||||
target_link_libraries(ulib_test PRIVATE
|
||||
ulib
|
||||
gtest
|
||||
gtest_main)
|
||||
|
||||
add_test(NAME ulib_test COMMAND ulib_test)
|
||||
|
@ -1,3 +1,6 @@
|
||||
//
|
||||
// Created by tqcq on 2023/12/5.
|
||||
//
|
||||
|
||||
#include <ulib/sigslot/sigslot.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user