Julian Hall | 38c729b | 2020-11-23 18:23:03 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 11 | TEST_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 | |
| 29 | TEST(TsDemoTests, runTsDemo) |
| 30 | { |
| 31 | int status = run_ts_demo(m_crypto_client, false); |
| 32 | CHECK_EQUAL(0, status); |
| 33 | } |