summaryrefslogtreecommitdiff
path: root/cts/gpio/cts.testlist
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2016-07-12 14:32:38 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-15 21:39:18 -0700
commitb783f0b991c43310675ab542c95902b65fffdbc4 (patch)
treee83e2500311225a1524dce9ba019bcfd41e00c47 /cts/gpio/cts.testlist
parent846741eddbb28e6770532ab09fb64dc619c2f6e6 (diff)
downloadchrome-ec-b783f0b991c43310675ab542c95902b65fffdbc4.tar.gz
cts: Use pointers for test functions
Test functions are listed in cts.testlist and shared by th.c and dut.c. This way, we can gurantee the two files are in sync. Also, cts.testlist is used to count the number of tests automatically. This allows us to use a for loop to execute each test. BUG=none BRANCH=none TEST=build buildall Change-Id: I0c811405134fad04f5c6914b1ac38835e212cbd2 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/359619
Diffstat (limited to 'cts/gpio/cts.testlist')
-rw-r--r--cts/gpio/cts.testlist18
1 files changed, 18 insertions, 0 deletions
diff --git a/cts/gpio/cts.testlist b/cts/gpio/cts.testlist
new file mode 100644
index 0000000000..8a6656db1d
--- /dev/null
+++ b/cts/gpio/cts.testlist
@@ -0,0 +1,18 @@
+/* Copyright 2016 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.
+ */
+
+/* Test whether sync completes successfully */
+CTS_TEST(sync_test)
+/* Check if the dut can set a line low */
+CTS_TEST(set_low_test)
+/* Check if the dut can set a line high */
+CTS_TEST(set_high_test)
+/* Check if the dut can read a line that is low */
+CTS_TEST(read_high_test)
+/* Check if the dut can read a line that is high */
+CTS_TEST(read_low_test)
+/* Check if the dut reads its true pin level (success)
+ or its register level when configured as a low open drain output pin */
+CTS_TEST(od_read_high_test)