#define BOOST_TEST_MODULE database tests #include #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"); }