aboutsummaryrefslogtreecommitdiff
path: root/components/app/ts-demo/test/ts-demo_tests.cpp
blob: 98ca5a05dea193a5c0e3d0c5c2aeff27dd3d6c4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <app/ts-demo/ts-demo.h>
#include <service/crypto/client/test/test_crypto_client.h>
#include <CppUTest/TestHarness.h>

TEST_GROUP(TsDemoTests) {

    void setup()
    {
        m_crypto_client = test_crypto_client::create_default();
        m_crypto_client->init();
    }

    void teardown()
    {
        m_crypto_client->deinit();
        delete m_crypto_client;
        m_crypto_client = NULL;
    }

    test_crypto_client *m_crypto_client;
};

TEST(TsDemoTests, runTsDemo)
{
    int status = run_ts_demo(m_crypto_client, false);
    CHECK_EQUAL(0, status);
}