From 6bb2d508988e9725e41915d430e1feb21fe68534 Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Sat, 10 Apr 2021 08:22:05 -0700 Subject: PCHG: Fuzz PCHG and ctn730 driver This patch adds a fuzz test for PCHG and ctn730 driver. With the given corpus, the test currently reaches all the normal mode states. BUG=b:190841496 BRANCH=trogdor TEST=make run-pchg_fuzz TEST=pchg_fuzz.exe -seed=1 -runs=1000000 -dict=fuzz/pchg_fuzz.corpus Change-Id: I6eedbbbdbf3396dfa2b98ca302e16d142ea251d5 Signed-off-by: Daisuke Nojiri Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2956076 --- fuzz/pchg_fuzz.tasklist | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 fuzz/pchg_fuzz.tasklist (limited to 'fuzz/pchg_fuzz.tasklist') diff --git a/fuzz/pchg_fuzz.tasklist b/fuzz/pchg_fuzz.tasklist new file mode 100644 index 0000000000..5b30e09245 --- /dev/null +++ b/fuzz/pchg_fuzz.tasklist @@ -0,0 +1,12 @@ +/* Copyright 2021 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. + */ + +/** + * See CONFIG_TASK_LIST in config.h for details. + */ +#define CONFIG_TEST_TASK_LIST \ + TASK_TEST(IRQ, irq_task, NULL, TASK_STACK_SIZE) \ + TASK_TEST(PCHG, pchg_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_TEST(CHIPSET, chipset_task, NULL, LARGER_TASK_STACK_SIZE) -- cgit v1.2.1