From 91325080d96f721b290223420d224135cda40358 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 11 Jun 2024 10:37:07 +0200 Subject: move files (keep history for pbdrv/main.cpp) --- test/CMakeLists.txt | 4 ++-- test/pbdrv/main.cpp | 18 ------------------ test/pbdrv/write.cpp | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 test/pbdrv/main.cpp create mode 100644 test/pbdrv/write.cpp (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d5d6e0d..311bbfb 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -7,8 +7,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS 1) project(pbtest C CXX ASM) add_executable(test - i2ctcp/main.cpp - pbdrv/main.cpp + # i2ctcp/main.cpp + pbdrv/write.cpp ) add_subdirectory(lib/googletest) diff --git a/test/pbdrv/main.cpp b/test/pbdrv/main.cpp deleted file mode 100644 index de7e88a..0000000 --- a/test/pbdrv/main.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include - -#include "pb-write.h" - -TEST(pbdrv, write) { - - pbdrv_buf_t buf = pbdrv_write_cmd_req_set_state({ - .header = { .sender = 0xf0, }, - .state = PB_GS_PLAYING, - }); - for (size_t i = 0; i < buf.size; i++) { - printf("%02x ", buf.data[i] & 0xff); - } - printf("\n"); - - ASSERT_TRUE(true); -} - diff --git a/test/pbdrv/write.cpp b/test/pbdrv/write.cpp new file mode 100644 index 0000000..de7e88a --- /dev/null +++ b/test/pbdrv/write.cpp @@ -0,0 +1,18 @@ +#include + +#include "pb-write.h" + +TEST(pbdrv, write) { + + pbdrv_buf_t buf = pbdrv_write_cmd_req_set_state({ + .header = { .sender = 0xf0, }, + .state = PB_GS_PLAYING, + }); + for (size_t i = 0; i < buf.size; i++) { + printf("%02x ", buf.data[i] & 0xff); + } + printf("\n"); + + ASSERT_TRUE(true); +} + -- cgit v1.2.3