Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Copyright (C) 2019 ARM Limited
0004  *
0005  * Generic test wrapper for arm64 signal tests.
0006  *
0007  * Each test provides its own tde struct tdescr descriptor to link with
0008  * this wrapper. Framework provides common helpers.
0009  */
0010 #include <kselftest.h>
0011 
0012 #include "test_signals.h"
0013 #include "test_signals_utils.h"
0014 
0015 struct tdescr *current;
0016 
0017 int main(int argc, char *argv[])
0018 {
0019     current = &tde;
0020 
0021     ksft_print_msg("%s :: %s\n", current->name, current->descr);
0022     if (test_setup(current) && test_init(current)) {
0023         test_run(current);
0024         test_cleanup(current);
0025     }
0026     test_result(current);
0027 
0028     return current->result;
0029 }