20 lines
633 B
C++
20 lines
633 B
C++
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.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");
|
|
}
|