Skip to content

Commit 0e28b45

Browse files
committed
Tools: Testbench: Rename common_test C source files to utils
The utils is a better description of the purpose of the functions in these files. There's no change to functionality. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 520519f commit 0e28b45

10 files changed

Lines changed: 14 additions & 14 deletions

File tree

tools/testbench/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ set(default_asoc_h "/usr/include/alsa/sound/uapi/asoc.h")
1212
add_executable(testbench
1313
testbench.c
1414
file.c
15-
common_test.c
16-
common_test_ipc3.c
17-
common_test_ipc4.c
15+
utils.c
16+
utils_ipc3.c
17+
utils_ipc4.c
1818
topology_ipc3.c
1919
topology_ipc4.c
2020
)

tools/testbench/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <stdint.h>
2323
#include <stdio.h>
2424
#include <stdlib.h>
25-
#include "testbench/common_test.h"
25+
#include "testbench/utils.h"
2626
#include "testbench/file.h"
2727
#include "testbench/file_ipc4.h"
2828
#include "../../src/audio/copier/copier.h"

tools/testbench/include/testbench/topology_ipc4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define _TESTBENCH_TOPOLOGY_IPC4_H
88

99
#include <module/ipc4/base-config.h>
10-
#include "testbench/common_test.h"
10+
#include "testbench/utils.h"
1111

1212
#define TB_IPC4_MAX_TPLG_OBJECT_SIZE 4096
1313
#define TB_IPC4_MAX_MSG_SIZE 384

tools/testbench/include/testbench/common_test.h renamed to tools/testbench/include/testbench/utils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Copyright(c) 2018 Intel Corporation. All rights reserved.
44
*/
55

6-
#ifndef _TESTBENCH_COMMON_TEST_H
7-
#define _TESTBENCH_COMMON_TEST_H
6+
#ifndef _TESTBENCH_UTILS_H
7+
#define _TESTBENCH_UTILS_H
88

99
#include <tplg_parser/topology.h>
1010
#include <stdint.h>
@@ -140,4 +140,4 @@ void tb_getcycles(uint64_t *cycles);
140140
void tb_gettime(struct timespec *td);
141141
void tb_show_file_stats(struct testbench_prm *tp, int pipeline_id);
142142

143-
#endif /* _TESTBENCH_COMMON_TEST_H */
143+
#endif /* _TESTBENCH_UTILS_H */

tools/testbench/testbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "testbench/trace.h"
1515
#include "testbench/file.h"
16-
#include "testbench/common_test.h"
16+
#include "testbench/utils.h"
1717

1818
#include <getopt.h>
1919
#include <limits.h>

tools/testbench/topology_ipc3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <tplg_parser/tokens.h>
1919
#include <tplg_parser/topology.h>
2020

21-
#include "testbench/common_test.h"
21+
#include "testbench/utils.h"
2222
#include "testbench/file.h"
2323

2424
#include <errno.h>

tools/testbench/topology_ipc4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <stdio.h>
1515
#include <stdlib.h>
1616

17-
#include "testbench/common_test.h"
17+
#include "testbench/utils.h"
1818
#include "testbench/topology_ipc4.h"
1919
#include "testbench/file.h"
2020
#include "testbench/file_ipc4.h"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <stdlib.h>
1414
#include <time.h>
1515

16-
#include "testbench/common_test.h"
16+
#include "testbench/utils.h"
1717
#include "testbench/trace.h"
1818
#include "testbench/file.h"
1919

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <stdio.h>
1515
#include <stdlib.h>
1616

17-
#include "testbench/common_test.h"
17+
#include "testbench/utils.h"
1818
#include "testbench/file.h"
1919

2020
/* testbench helper functions for pipeline setup and trigger */
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <stdio.h>
1818
#include <stdlib.h>
1919

20-
#include "testbench/common_test.h"
20+
#include "testbench/utils.h"
2121
#include "testbench/file.h"
2222
#include "testbench/topology_ipc4.h"
2323

0 commit comments

Comments
 (0)