Skip to content

Commit

Permalink
Tools: Testbench: Rename common_test C source files to utils
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
singalsu authored and lgirdwood committed Oct 1, 2024
1 parent 4730ac5 commit fbb9d78
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions tools/testbench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ set(default_asoc_h "/usr/include/alsa/sound/uapi/asoc.h")
add_executable(testbench
testbench.c
file.c
common_test.c
common_test_ipc3.c
common_test_ipc4.c
utils.c
utils_ipc3.c
utils_ipc4.c
topology_ipc3.c
topology_ipc4.c
)
Expand Down
2 changes: 1 addition & 1 deletion tools/testbench/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "testbench/common_test.h"
#include "testbench/utils.h"
#include "testbench/file.h"
#include "testbench/file_ipc4.h"
#include "../../src/audio/copier/copier.h"
Expand Down
2 changes: 1 addition & 1 deletion tools/testbench/include/testbench/topology_ipc4.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define _TESTBENCH_TOPOLOGY_IPC4_H

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

#define TB_IPC4_MAX_TPLG_OBJECT_SIZE 4096
#define TB_IPC4_MAX_MSG_SIZE 384
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Copyright(c) 2018 Intel Corporation. All rights reserved.
*/

#ifndef _TESTBENCH_COMMON_TEST_H
#define _TESTBENCH_COMMON_TEST_H
#ifndef _TESTBENCH_UTILS_H
#define _TESTBENCH_UTILS_H

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

#endif /* _TESTBENCH_COMMON_TEST_H */
#endif /* _TESTBENCH_UTILS_H */
2 changes: 1 addition & 1 deletion tools/testbench/testbench.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "testbench/trace.h"
#include "testbench/file.h"
#include "testbench/common_test.h"
#include "testbench/utils.h"

#include <getopt.h>
#include <limits.h>
Expand Down
2 changes: 1 addition & 1 deletion tools/testbench/topology_ipc3.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <tplg_parser/tokens.h>
#include <tplg_parser/topology.h>

#include "testbench/common_test.h"
#include "testbench/utils.h"
#include "testbench/file.h"

#include <errno.h>
Expand Down
2 changes: 1 addition & 1 deletion tools/testbench/topology_ipc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>

#include "testbench/common_test.h"
#include "testbench/utils.h"
#include "testbench/topology_ipc4.h"
#include "testbench/file.h"
#include "testbench/file_ipc4.h"
Expand Down
2 changes: 1 addition & 1 deletion tools/testbench/common_test.c → tools/testbench/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <stdlib.h>
#include <time.h>

#include "testbench/common_test.h"
#include "testbench/utils.h"
#include "testbench/trace.h"
#include "testbench/file.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>

#include "testbench/common_test.h"
#include "testbench/utils.h"
#include "testbench/file.h"

/* testbench helper functions for pipeline setup and trigger */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <stdio.h>
#include <stdlib.h>

#include "testbench/common_test.h"
#include "testbench/utils.h"
#include "testbench/file.h"
#include "testbench/topology_ipc4.h"

Expand Down

0 comments on commit fbb9d78

Please sign in to comment.