RKH
test_rkhtrc_filter_runner.c
Go to the documentation of this file.
1 /*
2  * --------------------------------------------------------------------------
3  *
4  * Framework RKH
5  * -------------
6  *
7  * State-machine framework for reactive embedded systems
8  *
9  * Copyright (C) 2010 Leandro Francucci.
10  * All rights reserved. Protected by international copyright laws.
11  *
12  *
13  * RKH is free software: you can redistribute it and/or modify it under the
14  * terms of the GNU General Public License as published by the Free Software
15  * Foundation, either version 3 of the License, or (at your option) any
16  * later version.
17  *
18  * RKH is distributed in the hope that it will be useful, but WITHOUT ANY
19  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
21  * more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with RKH, see copying.txt file.
25  *
26  * Contact information:
27  * RKH web site: http://sourceforge.net/projects/rkh-reactivesys/
28  * e-mail: francuccilea@gmail.com
29  * ---------------------------------------------------------------------------
30  */
31 
39 /* -------------------------- Development history -------------------------- */
40 /*
41  * 2017.20.04 LeFr v2.4.05 ---
42  */
43 
44 /* -------------------------------- Authors -------------------------------- */
45 /*
46  * LeFr Leandro Francucci francuccilea@gmail.com
47  */
48 
49 /* --------------------------------- Notes --------------------------------- */
50 /* ----------------------------- Include files ----------------------------- */
51 #include "unity_fixture.h"
52 
53 /* ----------------------------- Local macros ------------------------------ */
54 /* ------------------------------- Constants ------------------------------- */
55 /* ---------------------------- Local data types --------------------------- */
56 /* ---------------------------- Global variables --------------------------- */
57 /* ---------------------------- Local variables ---------------------------- */
58 /* ----------------------- Local function prototypes ----------------------- */
59 /* ---------------------------- Local functions ---------------------------- */
60 /* ---------------------------- Global functions --------------------------- */
61 TEST_GROUP_RUNNER(toolForTest)
62 {
63  RUN_TEST_CASE(toolForTest, getBitIndex0);
64  RUN_TEST_CASE(toolForTest, getBitIndexX);
65  RUN_TEST_CASE(toolForTest, setBitIndex0);
66  RUN_TEST_CASE(toolForTest, resetBitIndex0);
67  RUN_TEST_CASE(toolForTest, setBitIndexX);
68  RUN_TEST_CASE(toolForTest, resetBitIndexX);
69 }
70 
71 TEST_GROUP_RUNNER(filter)
72 {
73  RUN_TEST_CASE(filter, filEventsAreOnAfterInit);
74  RUN_TEST_CASE(filter, turnOffOneFilEvent);
75  RUN_TEST_CASE(filter, turnOnOneFilEvent);
76  RUN_TEST_CASE(filter, turnOffMultipleFilEvent);
77  RUN_TEST_CASE(filter, allOffFilEvent);
78  RUN_TEST_CASE(filter, allOnFilEvent);
79  RUN_TEST_CASE(filter, isOnOffFilEvent);
80  RUN_TEST_CASE(filter, setAllEventsFromOneGroup);
81  RUN_TEST_CASE(filter, upperAndLowerBoundsFilEvent);
82  RUN_TEST_CASE(filter, outOfBoundsProducesRuntimeError);
83 
84  RUN_TEST_CASE(filter, turnOffOneGroup);
85  RUN_TEST_CASE(filter, turnOnOneGroup);
86  RUN_TEST_CASE(filter, allOnOffGroup);
87  RUN_TEST_CASE(filter, turnOnOffMultipleGroups);
88  RUN_TEST_CASE(filter, turnOffOneGroupChangedItsEventFilters);
89 
90  RUN_TEST_CASE(filter, turnOffOneSymFil);
91  RUN_TEST_CASE(filter, turnOnOneSymFil);
92  RUN_TEST_CASE(filter, turnOnOffMultipleSymFil);
93  RUN_TEST_CASE(filter, allOffOnSymFil);
94  RUN_TEST_CASE(filter, isOnOffSymFil);
95  RUN_TEST_CASE(filter, upperAndLowerBoundsSymFil);
96  RUN_TEST_CASE(filter, outOfBoundsProducesRuntimeErrorSymFil);
97 }
98 
99 /* ------------------------------ End of file ------------------------------ */