aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-04-19 14:48:48 +0200
committerEugen Wissner <belka@caraus.de>2025-04-19 14:48:48 +0200
commit20f3d98d637c5992c53f19590c15fa923f4eedcd (patch)
tree76842f0252e4179d47d5c33bd0338cbcd479fe71 /tests
parent0e6de99821d2262ada8e277fba1eb6059858ea41 (diff)
downloadkazbek-20f3d98d637c5992c53f19590c15fa923f4eedcd.tar.gz
Move katja into a separate repository
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt15
-rw-r--r--tests/database.cpp14
-rw-r--r--tests/repository.cpp13
3 files changed, 0 insertions, 42 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
deleted file mode 100644
index 33ddc98..0000000
--- a/tests/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-find_package(Boost CONFIG COMPONENTS unit_test_framework REQUIRED)
-
-file(GLOB KATJA_TEST_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
-
-foreach(test_source ${KATJA_TEST_SOURCES})
- get_filename_component(test_name ${test_source} NAME_WE)
- set(tester ${test_name}-tester)
-
- add_executable(${tester} ${test_source})
-
- target_compile_definitions(${tester} PRIVATE "BOOST_TEST_DYN_LINK=1")
- target_link_libraries(${tester} LINK_PRIVATE katja Boost::unit_test_framework)
-
- add_test(NAME ${test_name} COMMAND ${tester})
-endforeach()
diff --git a/tests/database.cpp b/tests/database.cpp
deleted file mode 100644
index d895804..0000000
--- a/tests/database.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#define BOOST_TEST_MODULE database tests
-
-#include <boost/test/unit_test.hpp>
-#include "katja/database.hpp"
-
-BOOST_AUTO_TEST_CASE(generate_package_identifier)
-{
- katja::database_package actual("libarchive-3.7.8-i586-1_slack15.0");
-
- BOOST_TEST(actual.name == "libarchive");
- BOOST_TEST(actual.version == "3.7.8");
- BOOST_TEST(actual.architecture == "i586");
- BOOST_TEST(actual.build_tag == "1_slack15.0");
-}
diff --git a/tests/repository.cpp b/tests/repository.cpp
deleted file mode 100644
index 1f1fb19..0000000
--- a/tests/repository.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#define BOOST_TEST_MODULE repository tests
-
-#include <boost/test/unit_test.hpp>
-#include "katja/repository.hpp"
-
-BOOST_AUTO_TEST_CASE(construct_valid_database_package)
-{
- katja::package_identifier given{ "libarchive", "3.7.8", "i586", "slackware" };
- std::string actual = given.to_string();
- std::string expected = "libarchive;3.7.8;i586;slackware";
-
- BOOST_TEST(actual == expected);
-}