3 # Run the epan unit tests
7 # Wireshark - Network traffic analyzer
8 # By Gerald Combs <gerald@wireshark.org>
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 unittests_step_test() {
26 make -C `dirname $DUT` `basename $DUT` >testout.txt 2>&1
30 test_step_failed "make $DUT failed"
34 $DUT > testout.txt 2>&1
36 if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
39 test_step_failed "exit status of $DUT: $RETURNVALUE"
46 unittests_step_exntest() {
51 unittests_step_reassemble_test() {
52 DUT=../epan/reassemble_test
56 unittests_step_tvbtest() {
61 unittests_cleanup_step() {
66 test_step_set_pre unittests_cleanup_step
67 test_step_set_post unittests_cleanup_step
68 test_step_add "exntest" unittests_step_exntest
69 test_step_add "reassemble_test" unittests_step_reassemble_test
70 test_step_add "tvbtest" unittests_step_tvbtest