blob: 98ca5a05dea193a5c0e3d0c5c2aeff27dd3d6c4f [file] [log] [blame]
Julian Hall38c729b2020-11-23 18:23:03 +01001/*
2 * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <app/ts-demo/ts-demo.h>
8#include <service/crypto/client/test/test_crypto_client.h>
9#include <CppUTest/TestHarness.h>
10
11TEST_GROUP(TsDemoTests) {
12
13 void setup()
14 {
15 m_crypto_client = test_crypto_client::create_default();
16 m_crypto_client->init();
17 }
18
19 void teardown()
20 {
21 m_crypto_client->deinit();
22 delete m_crypto_client;
23 m_crypto_client = NULL;
24 }
25
26 test_crypto_client *m_crypto_client;
27};
28
29TEST(TsDemoTests, runTsDemo)
30{
31 int status = run_ts_demo(m_crypto_client, false);
32 CHECK_EQUAL(0, status);
33}