A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
network
utils
ascii-test.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2012 University of Washington
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Mitch Watrous (watrous@u.washington.edu)
19
*
20
* This file is based on pcap-test.h by Craig Dowell (craigdo@ee.washington.edu)
21
*/
22
23
#ifndef ASCII_TEST_H
24
#define ASCII_TEST_H
25
26
#include <stdint.h>
27
#include "
ascii-file.h
"
28
#include "ns3/test.h"
29
38
#define NS_ASCII_TEST_EXPECT_EQ(gotFilename, expectedFilename) \
39
do { \
40
uint64_t line(0); \
41
bool diff = AsciiFile::Diff (gotFilename, expectedFilename, line); \
42
NS_TEST_EXPECT_MSG_EQ (diff, false, \
43
"ASCII traces " << gotFilename << \
44
" and " << expectedFilename << \
45
" differ starting from line " << line); \
46
} while (false)
47
48
49
#endif
/* ASCII_TEST_H */
ascii-file.h
Generated on Wed Nov 7 2018 10:02:07 for ns-3 by
1.8.14