Make the names of the gpiotools test cases more informative.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
#include <stdio.h>
-static void gpiodetect_good(void)
+static void gpiodetect_simple(void)
{
TEST_CLEANUP(test_free_str) char *pattern0 = NULL;
TEST_CLEANUP(test_free_str) char *pattern1 = NULL;
TEST_ASSERT_STR_CONTAINS(test_tool_stdout(), pattern2);
TEST_ASSERT_NULL(test_tool_stderr());
}
-TEST_DEFINE(gpiodetect_good,
- "tools: gpiodetect - good",
+TEST_DEFINE(gpiodetect_simple,
+ "tools: gpiodetect - simple",
0, { 4, 8, 16 });
#include "gpiod-test.h"
-static void gpiofind_good(void)
+static void gpiofind_found(void)
{
test_gpiotool_run("gpiofind", "gpio-mockup-B-7", (char *)NULL);
test_tool_wait();
TEST_ASSERT_STR_EQ(test_tool_stdout(), "gpiochip1 7\n");
TEST_ASSERT_NULL(test_tool_stderr());
}
-TEST_DEFINE(gpiofind_good,
- "tools: gpiofind - good",
+TEST_DEFINE(gpiofind_found,
+ "tools: gpiofind - found",
TEST_FLAG_NAMED_LINES, { 4, 8 });
static void gpiofind_not_found(void)
TEST_ASSERT_REGEX_MATCH(test_tool_stdout(), ptrn);
}
TEST_DEFINE(gpioinfo_one_exported,
- "tools: gpioinfo - one exported",
+ "tools: gpioinfo - exported line",
0, { 4, 8 });