diff options
author | Jett Rink <jettrink@chromium.org> | 2020-11-11 12:22:01 -0700 |
---|---|---|
committer | Rajat Jain <rajatja@google.com> | 2020-11-11 19:30:15 +0000 |
commit | 90caed85bc8f2c0d2b05b1977e1dd02db614a41b (patch) | |
tree | 2239a1e67de38c4eb27b0b2a3838ef9ed1a70a09 /zephyr/test | |
parent | 013740e2ec6e4452602f63bd873f53dfaa6d1edb (diff) | |
download | chrome-ec-90caed85bc8f2c0d2b05b1977e1dd02db614a41b.tar.gz |
Revert "zephyr: forward cros_crc8 to zephyrs crc8 impl"
Something slipped through CQ coverage. Need to figure out, but in the
mean time, revert the 3 CLs that seemed to have caused the issue.
BRANCH=none
BUG=chromium:1147953
TEST=none
This reverts commit 22ee9a346718a9a07955fd81b0d03c4dde5b2ec8.
Change-Id: I5617e39204a7c05001363d5780fa2f52e3e1ea05
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2533355
Diffstat (limited to 'zephyr/test')
-rw-r--r-- | zephyr/test/crc/CMakeLists.txt | 17 | ||||
-rw-r--r-- | zephyr/test/crc/main.c | 27 | ||||
-rw-r--r-- | zephyr/test/crc/prj.conf | 5 |
3 files changed, 0 insertions, 49 deletions
diff --git a/zephyr/test/crc/CMakeLists.txt b/zephyr/test/crc/CMakeLists.txt deleted file mode 100644 index d8b4d9fadc..0000000000 --- a/zephyr/test/crc/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. -# SPDX-License-Identifier: Apache-2.0 - -cmake_minimum_required(VERSION 3.13.1) -set(BOARD native_posix) -project(tasks) -find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) - -# We need to include the EC include directory and this local test directory -# for the task defines -zephyr_include_directories("${PLATFORM_EC}/include") - -# Include the test source and the file under test -target_sources(app PRIVATE main.c) -target_sources(app PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../../shim/src/crc.c") diff --git a/zephyr/test/crc/main.c b/zephyr/test/crc/main.c deleted file mode 100644 index 34fec7199a..0000000000 --- a/zephyr/test/crc/main.c +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright 2020 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include <kernel.h> -#include <ztest.h> - -#include "crc8.h" - -/* Note this test makes the pure platform/ec test that uses the same value */ -static void test_crc8_known_data(void) -{ - uint8_t buffer[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 8 }; - - int crc = cros_crc8(buffer, 10); - - /* Verifies polynomial values of 0x07 representing x^8 + x^2 + x + 1 */ - zassert_equal(crc, 170, "CRC8 hash did not match"); -} - -void test_main(void) -{ - ztest_test_suite(test_task_shim, - ztest_unit_test(test_crc8_known_data)); - ztest_run_test_suite(test_task_shim); -} diff --git a/zephyr/test/crc/prj.conf b/zephyr/test/crc/prj.conf deleted file mode 100644 index 3940ec99eb..0000000000 --- a/zephyr/test/crc/prj.conf +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -CONFIG_ZTEST=y |