aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamas Ban <tamas.ban@arm.com>2020-01-07 14:57:37 +0000
committerTamas Ban <tamas.ban@arm.com>2020-01-23 13:33:03 +0000
commit132c42f691b5e8b0f5a0c4a2519c8654c93e88e0 (patch)
treeb161c1121a7944670ccf4b1bb0df153b1203f181
parent95e5647d66e47a84e09406e2f574b87bbe7ec79f (diff)
downloadtrusted-firmware-m-132c42f691b5e8b0f5a0c4a2519c8654c93e88e0.tar.gz
COSE: Rename test executor function
In order to avoid name collision among QCBOR and T_COSE test executor function. Change-Id: I9e7d90de37c8c24c0f5e6029aabfee3ed6832603 Signed-off-by: Tamas Ban <tamas.ban@arm.com>
-rw-r--r--lib/ext/t_cose/test/run_tests.c12
-rw-r--r--lib/ext/t_cose/test/run_tests.h14
2 files changed, 13 insertions, 13 deletions
diff --git a/lib/ext/t_cose/test/run_tests.c b/lib/ext/t_cose/test/run_tests.c
index cda62a71f..8f65e0e86 100644
--- a/lib/ext/t_cose/test/run_tests.c
+++ b/lib/ext/t_cose/test/run_tests.c
@@ -1,7 +1,7 @@
/*==============================================================================
run_tests.c -- test aggregator and results reporting
- Copyright (c) 2018-2019, Laurence Lundblade. All rights reserved.
+ Copyright (c) 2018-2020, Laurence Lundblade. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
@@ -126,10 +126,10 @@ static const char *NumToString(int32_t nNum, UsefulBuf StringMem)
/*
Public function. See run_test.h.
*/
-int RunTests(const char *szTestNames[],
- OutputStringCB pfOutput,
- void *poutCtx,
- int *pNumTestsRun)
+int RunTestsTCose(const char *szTestNames[],
+ OutputStringCB pfOutput,
+ void *poutCtx,
+ int *pNumTestsRun)
{
int nTestsFailed = 0;
int nTestsRun = 0;
@@ -271,7 +271,7 @@ static void PrintSize(const char *szWhat,
/*
Public function. See run_test.h.
*/
-void PrintSizes(OutputStringCB pfOutput, void *pOutCtx)
+void PrintSizesTCose(OutputStringCB pfOutput, void *pOutCtx)
{
// Type and size of return from sizeof() varies. These will never be large
// so cast is safe.
diff --git a/lib/ext/t_cose/test/run_tests.h b/lib/ext/t_cose/test/run_tests.h
index ba1b68271..1fa4975f9 100644
--- a/lib/ext/t_cose/test/run_tests.h
+++ b/lib/ext/t_cose/test/run_tests.h
@@ -1,7 +1,7 @@
/*==============================================================================
run_tests.h -- test aggregator and results reporting
- Copyright (c) 2018-2019, Laurence Lundblade. All rights reserved.
+ Copyright (c) 2018-2020, Laurence Lundblade. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
@@ -43,7 +43,7 @@ typedef void (*OutputStringCB)(const char *szString, void *pOutCtx, int bNewline
/**
- @brief Runs the QCBOR tests.
+ @brief Runs the T_COSE tests.
@param[in] szTestNames An argv-style list of test names to run. If
empty, all are run.
@@ -53,10 +53,10 @@ typedef void (*OutputStringCB)(const char *szString, void *pOutCtx, int bNewline
@return The number of tests that failed. Zero means overall success.
*/
-int RunTests(const char *szTestNames[],
- OutputStringCB pfOutput,
- void *pOutCtx,
- int *pNumTestsRun);
+int RunTestsTCose(const char *szTestNames[],
+ OutputStringCB pfOutput,
+ void *pOutCtx,
+ int *pNumTestsRun);
/**
@@ -65,5 +65,5 @@ int RunTests(const char *szTestNames[],
@param[in] pfOutput Function that is called to output text strings.
@param[in] pOutCtx Context pointer passed to output function.
*/
-void PrintSizes(OutputStringCB pfOutput, void *pOutCtx);
+void PrintSizesTCose(OutputStringCB pfOutput, void *pOutCtx);