Refactor build system and add internal test
[platform/core/security/libcryptsvc.git] / test / device_info_test.cc
1 /*
2  *  Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Contact: Kyungwook Tak <k.tak@samsung.com>
5  *
6  *  Licensed under the Apache License, Version 2.0 (the "License");
7  *  you may not use this file except in compliance with the License.
8  *  You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *  Unless required by applicable law or agreed to in writing, software
13  *  distributed under the License is distributed on an "AS IS" BASIS,
14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *  See the License for the specific language governing permissions and
16  *  limitations under the License
17  *
18  * @file        device_info_test.cc
19  * @author      Kyungwook Tak (k.tak@samsung.com)
20  * @version
21  * @brief
22  */
23 #include <iostream>
24
25 #include <boost/test/unit_test.hpp>
26
27 #include <device_info.h>
28
29 BOOST_AUTO_TEST_SUITE(DEVICE_INFO_TEST)
30
31 BOOST_AUTO_TEST_CASE(GET_DEVICE_ID)
32 {
33     const char *device_id = get_device_id();
34
35     BOOST_REQUIRE_MESSAGE(device_id != nullptr,
36         "device id from get_device_id shouldn't be null");
37
38     std::cout << "device id from get_device_id: "
39         << device_id << std::endl;
40 }
41
42 BOOST_AUTO_TEST_SUITE_END()