Skip to content

Commit d915c0b

Browse files
committed
Remove dependency on boost-ext-ut
1 parent 1aa43be commit d915c0b

4 files changed

Lines changed: 6 additions & 21 deletions

File tree

tests/myproj/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,8 @@ target_link_system_libraries(lib2 PRIVATE fmt::fmt Eigen3::Eigen)
121121
target_link_system_libraries(lib2 PRIVATE mythirdpartylib)
122122

123123
add_test_config(common
124-
DEPENDENCIES_CONFIG
125-
ut
126-
127-
SYSTEM_LIBRARIES
128-
Boost::ut
124+
COMPILE_DEFINITIONS
125+
EXPECTED_RESULT=0
129126
)
130127

131128
add_library_test(lib lib CONFIGS common SOURCES tests/mylib/lib.cpp)

tests/myproj/tests/mylib/lib.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#include "mylib/lib.hpp"
22

3-
#include <boost/ut.hpp>
4-
5-
int main() { // NOLINT(bugprone-exception-escape)
6-
using namespace boost::ut; // NOLINT(*using-namespace*)
7-
8-
"lib"_test = []() { expect(some_fun() == 0); };
3+
int main() { // NOLINT(bugprone-exception-escape)
4+
return some_fun() == EXPECTED_RESULT ? 0 : 1;
95
}

tests/myproj/tests/mylib2/lib.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#include "mylib2/lib.hpp"
22

3-
#include <boost/ut.hpp>
4-
5-
int main() { // NOLINT(bugprone-exception-escape)
6-
using namespace boost::ut; // NOLINT(*using-namespace*)
7-
8-
"lib"_test = []() { expect(some_fun2() == 0); };
3+
int main() { // NOLINT(bugprone-exception-escape)
4+
return some_fun2() == EXPECTED_RESULT ? 0 : 1;
95
}

tests/myproj/vcpkg.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
{
1212
"name": "fmt",
1313
"version>=": "9.1.0#1"
14-
},
15-
{
16-
"name": "bext-ut",
17-
"version>=": "1.1.9"
1814
}
1915
]
2016
}

0 commit comments

Comments
 (0)