A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
ascii-test.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012 University of Washington
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mitch Watrous (watrous@u.washington.edu)
7
*
8
* This file is based on pcap-test.h by Craig Dowell (craigdo@ee.washington.edu)
9
*/
10
11
#ifndef ASCII_TEST_H
12
#define ASCII_TEST_H
13
14
#include "
ascii-file.h
"
15
#include "
test.h
"
16
17
#include <stdint.h>
18
19
/**
20
* \brief Test that a pair of new/reference ascii files are equal
21
*
22
* \param gotFilename The name of the new file to read in including
23
* its path
24
* \param expectedFilename The name of the reference file to read in
25
* including its path
26
*/
27
#define NS_ASCII_TEST_EXPECT_EQ(gotFilename, expectedFilename) \
28
do \
29
{ \
30
uint64_t line(0); \
31
bool diff = AsciiFile::Diff(gotFilename, expectedFilename, line); \
32
NS_TEST_EXPECT_MSG_EQ(diff, \
33
false, \
34
"ASCII traces " << gotFilename << " and " << expectedFilename \
35
<< " differ starting from line " << line); \
36
} while (false)
37
38
#endif
/* ASCII_TEST_H */
ascii-file.h
test.h
ns3::TestCase, ns3::TestSuite, ns3::TestRunner declarations, and NS_TEST_ASSERT macro definitions.
src
core
model
ascii-test.h
Generated on Wed Oct 9 2024 01:03:22 for ns-3 by
1.11.0