xref: /kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/test_signals.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2019 ARM Limited
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Generic test wrapper for arm64 signal tests.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Each test provides its own tde struct tdescr descriptor to link with
88c2ecf20Sopenharmony_ci * this wrapper. Framework provides common helpers.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci#include <kselftest.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include "test_signals.h"
138c2ecf20Sopenharmony_ci#include "test_signals_utils.h"
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistruct tdescr *current;
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciint main(int argc, char *argv[])
188c2ecf20Sopenharmony_ci{
198c2ecf20Sopenharmony_ci	current = &tde;
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci	ksft_print_msg("%s :: %s\n", current->name, current->descr);
228c2ecf20Sopenharmony_ci	if (test_setup(current) && test_init(current)) {
238c2ecf20Sopenharmony_ci		test_run(current);
248c2ecf20Sopenharmony_ci		test_cleanup(current);
258c2ecf20Sopenharmony_ci	}
268c2ecf20Sopenharmony_ci	test_result(current);
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	return current->result;
298c2ecf20Sopenharmony_ci}
30

Indexes created Thu Nov 07 10:32:03 CST 2024