1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (C) 2019 ARM Limited 4 * 5 * Generic test wrapper for arm64 signal tests. 6 * 7 * Each test provides its own tde struct tdescr descriptor to link with 8 * this wrapper. Framework provides common helpers. 9 */ 10 #include <kselftest.h> 11 12 #include "test_signals.h" 13 #include "test_signals_utils.h" 14 15 struct tdescr *current; 16 17 int main(int argc, char *argv[]) 18 { 19 current = &tde; 20 21 ksft_print_msg("%s :: %s\n", current->name, current->descr); 22 if (test_setup(current) && test_init(current)) { 23 test_run(current); 24 test_cleanup(current); 25 } 26 test_result(current); 27 28 return current->result; 29 } 30