feat support build type for mips64
Some checks failed
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m24s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 1m19s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m20s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 1m19s
Some checks failed
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m24s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 1m19s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m20s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 1m19s
This commit is contained in:
parent
78eedb6a65
commit
5095516686
@ -28,6 +28,9 @@ permissions: [read]
|
|||||||
jobs:
|
jobs:
|
||||||
linux-gcc-mips64el:
|
linux-gcc-mips64el:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
build_type: ["Debug", "Release"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -72,7 +75,7 @@ jobs:
|
|||||||
- name: configure
|
- name: configure
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake .. -DSLED_BUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=../toolchains/mips64el-linux-gnuabi64.toolchain.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-mips64el;-L;/usr/mips64el-linux-gnuabi64"
|
cmake .. -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DSLED_BUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=../toolchains/mips64el-linux-gnuabi64.toolchain.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-mips64el;-L;/usr/mips64el-linux-gnuabi64"
|
||||||
- name: build
|
- name: build
|
||||||
run: cmake --build build --target all -j `nproc`
|
run: cmake --build build --target all -j `nproc`
|
||||||
- name: test
|
- name: test
|
||||||
|
@ -63,25 +63,31 @@ void_cast(TRet (TClass::*mem_func)(Args...))
|
|||||||
return void_casted;
|
return void_casted;
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Trivial Function")
|
// TODO: Support Linux
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
TEST_SUITE("Symbolize")
|
||||||
{
|
{
|
||||||
CHECK_EQ(doctest::String("TrivialFunc()"), TrySymbolize(void_cast(TrivialFunc)));
|
TEST_CASE("Trivial Function")
|
||||||
CHECK_EQ(doctest::String("TrySymbolizeWithLimit()"), TrySymbolize(void_cast(&TrySymbolizeWithLimit)));
|
{
|
||||||
}
|
CHECK_EQ(doctest::String("TrivialFunc()"), TrySymbolize(void_cast(TrivialFunc)));
|
||||||
|
CHECK_EQ(doctest::String("TrySymbolizeWithLimit()"), TrySymbolize(void_cast(&TrySymbolizeWithLimit)));
|
||||||
|
}
|
||||||
|
|
||||||
TEST_CASE("Static Function") { CHECK_EQ(doctest::String("StaticFunc()"), TrySymbolize(void_cast(StaticFunc))); }
|
TEST_CASE("Static Function") { CHECK_EQ(doctest::String("StaticFunc()"), TrySymbolize(void_cast(StaticFunc))); }
|
||||||
|
|
||||||
TEST_CASE("Member Function")
|
TEST_CASE("Member Function")
|
||||||
{
|
{
|
||||||
CHECK_EQ(doctest::String("Class::MemberFunc1()"), TrySymbolize(void_cast(&Class::MemberFunc1)));
|
CHECK_EQ(doctest::String("Class::MemberFunc1()"), TrySymbolize(void_cast(&Class::MemberFunc1)));
|
||||||
CHECK_EQ(doctest::String("Class::MemberFunc2()"), TrySymbolize(void_cast(&Class::MemberFunc2)));
|
CHECK_EQ(doctest::String("Class::MemberFunc2()"), TrySymbolize(void_cast(&Class::MemberFunc2)));
|
||||||
CHECK_EQ(doctest::String("Class::MemberFunc3()"), TrySymbolize(void_cast(&Class::MemberFunc3)));
|
CHECK_EQ(doctest::String("Class::MemberFunc3()"), TrySymbolize(void_cast(&Class::MemberFunc3)));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Static Member Function")
|
TEST_CASE("Static Member Function")
|
||||||
{
|
{
|
||||||
CHECK_EQ(doctest::String("Class::StaticFunc()"), TrySymbolize(void_cast(&Class::StaticFunc)));
|
CHECK_EQ(doctest::String("Class::StaticFunc()"), TrySymbolize(void_cast(&Class::StaticFunc)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user