Commit Graph

96 Commits

Author SHA1 Message Date
Peter D. Barnes, Jr.
c16d0b97ac Correct misspelled class names: TimeIntputOutputTestCase, TimesWithSignsTestCase 2015-02-20 14:23:09 -08:00
Peter D. Barnes, Jr.
69e4cc6139 Attribute test vectors assume ns Time resolution.
Since these are tests of Attributes per se, not Time, forcing the
resolution should not hide other issues with Attributes.
2015-02-20 14:20:35 -08:00
Peter D. Barnes, Jr.
5545a7f224 Remove extraneous ' ' around :: 2015-02-04 13:40:57 -08:00
Rubén Martínez
2c53e2289a bug 2082: Empirical RV fails if the value provided in the CDF member function is negative 2015-04-03 16:36:13 -07:00
Peter D. Barnes, Jr.
40eb448c95 [Doxygen] Remove extraneous docs for derivatives of AttributeValue. 2015-01-16 12:12:46 -08:00
Peter D. Barnes, Jr.
a790246c4b [Doxygen] specialized data types 2014-11-17 15:51:36 -08:00
Peter D. Barnes, Jr.
692bf472e6 TracedCallback function signatures, the rest. 2014-12-04 10:02:01 -08:00
Peter D. Barnes, Jr.
cccfc167dd [Doxygen] Attribute implementations. 2014-10-21 16:14:35 -07:00
Tom Henderson
41b83c9851 remove deprecated RandomVariable class 2014-10-13 16:09:59 -07:00
Tom Henderson
d00ccf814c add missing GPLs 2014-10-06 10:24:56 -07:00
Peter D. Barnes, Jr.
cc56e83767 TracedValue callback function signatures. 2014-10-02 21:17:48 -07:00
Tom Henderson
45b1b3daa1 silence compiler warning 2014-09-12 18:19:47 -07:00
Tom Henderson
161c703a1f test case for config path attribute search on parent classes (bug 1673) 2014-09-12 17:42:12 -07:00
Tom Henderson
3048ebcced regression test for bug 1964 2014-09-12 12:55:00 -07:00
Peter D. Barnes, Jr.
45530120f2 Simplify output of Times in a specific unit; see Time::As () 2014-04-02 18:47:04 -07:00
mmiozzo
efccb54a60 Add back forgotten rng testsuite (attibution: Peter Barnes noticed it) 2014-03-20 23:37:16 +01:00
Peter D. Barnes, Jr.
72cea610f0 [Bug 1882] int64x64 tests trigger valgrind bug 2014-03-14 15:31:15 -07:00
Peter D. Barnes, Jr.
a274c8ea37 [doxygen] Make introspected lists more visible, various other doxy 2014-03-10 10:57:50 -07:00
Peter D. Barnes, Jr.
cd3da7143d [doxygen] Revert r10410, r10411, r10412 2014-03-05 17:06:59 -08:00
Peter D. Barnes, Jr.
b43ee31622 [Bug 1856] int64x64_t double conversions 2014-03-02 01:02:23 -08:00
Peter D. Barnes, Jr.
eba6d81509 [Bug 1786] Fix undeclared identifiers cairo_impl64 and cairo_impl128 in int128 builds. 2014-02-05 10:58:19 -08:00
Peter D. Barnes, Jr.
1a54ac7031 [Bug 1786] Make cairo implementation type accessible. 2014-02-04 16:09:23 -08:00
Peter D. Barnes, Jr.
03fe7f5b3a Extend overeager signed comparison optimization to gcc-4.6 2014-02-04 09:38:42 -08:00
Peter D. Barnes, Jr.
a6eea770e2 Fix overeager signed comparison optimization in gcc-4.4 2014-01-30 12:18:29 -08:00
Tommaso Pecorella
7ed263378e Fix int64x64 test (clang errors) 2014-01-30 18:23:54 +01:00
Peter D. Barnes, Jr.
8f6bcf630c [Bug 1786] Fix for os << (int64x64_t) and fractional arithmetic
Arithmetic with fractions was never tested and it had lots of bugs.
This patch set:

- Defines many more tests, giving complete coverage of all operations
  (signed/unsigned, integer, fractions, mixed)

- Replaces over-generous #define creation of functions with minimal
  set of C++ functions.

- Minimizes differences between implementations.

- Documents all functions.

int128 and cairo implementations agree exactly on all int64x64 tests,
and pass all ns-3 tests.

long double implementation agrees with the other two on most int64x64
tests; failures have to do with less precision in long doubles.
The prior double implementation failed five ns-3 tests:
	devices-mesh-dot11s-regression
	devices-mesh-flame-regression
	int64x64
	routing-aodv-regression
	routing-olsr-regression
This implementation fails routing-olsr-regression because of single
bit differences in the pcap files.
2014-01-29 19:09:35 -08:00
Peter D. Barnes, Jr.
f593f652a1 [Bug 1786] os << int64x64_t prints un-normalized fractional values 2014-01-10 17:24:06 -08:00
Vedran Miletić
6acf41814e Move tests outside ns3 namespace 2014-01-02 18:34:30 +01:00
Vedran Miletić
df005f262e Introduce additional Time units (Year, Day, Hour, Minute) 2013-12-06 19:42:02 +01:00
Nicola Baldo
639d8a219f fixed integer constant too large compilation error with gcc 4.3.2 2013-11-18 15:51:51 +01:00
Peter D. Barnes, Jr.
d75ff3559e doxygen] Suppress "warning: Member NS_OBJECT_ENSURE_REGISTERED is not documented" 2013-11-14 16:58:28 -08:00
Vedran Miletić
32b19bd983 Bug 1779 - NS_UNUSED_GLOBAL not working in attribute test class declaration 2013-10-21 10:38:06 +02:00
Vedran Miletić
f781366d2e Fix compilation with Clang 3.2 and newer versions, including Apple Clang 5.0
Clang 3.2 requires all class members to be used in the code; this patch either removes class members that are not used or adds NS_UNUSED/NS_UNUSED_GLOBAL around them. Thanks to Andrey Mazo and Tommaso Pecorella for review.
2013-10-20 12:46:27 +02:00
Peter D. Barnes, Jr.
41500833ab Fix aliasing bug in optimized static builds with gcc-4.4. 2013-08-30 12:33:03 -07:00
Tom Henderson
f4939928e0 bug 1755: hash test failure for gcc-4.4.3 (workaround) 2013-08-23 14:27:32 -07:00
Peter D. Barnes, Jr.
85e9ba3b48 bug 954: Changing the simulation time resolution does not work well with attributes
v.3 Responding to code review comments

https://codereview.appspot.com/6821106/
2013-08-14 16:52:06 -07:00
Tom Henderson
d006cf014f align command-line test suite to recent changes 2013-08-16 08:28:39 -07:00
Peter D. Barnes, Jr.
8695d856a1 Link to bug num in bug database with \bugid{num} 2013-08-15 12:01:57 -07:00
Peter D. Barnes, Jr.
54f181a609 Label type-id-test-suite TestCases with TestDuration value 2013-07-23 14:08:00 -07:00
Peter D. Barnes, Jr.
4eda3b7ea1 Hashed TypeId
Speed LookupByName with std::map, add LookupByHash
Hash chaining, alphabetized
TypeId test suite
2013-07-18 12:01:05 -07:00
Peter D. Barnes, Jr.
0bdefa312e Hash example program which hashes the dictionary. 2013-07-10 18:22:58 -07:00
Peter D. Barnes, Jr.
efe21f7763 Use uint32/64/_t instead of Hash32/64_t 2012-11-13 16:41:46 -08:00
Peter D. Barnes, Jr.
6a6b5699b8 Incremental hashing, fix hash function ptr, additional test cases, check-style. 2012-11-13 16:40:29 -08:00
Peter D. Barnes, Jr.
705906ef5e Refactor namespaces 2012-11-13 16:38:48 -08:00
Peter D. Barnes, Jr.
00ae7f99a0 Change clear() to return Hash & instead of Hash * 2012-11-13 16:35:51 -08:00
Peter D. Barnes, Jr.
94d417c60f Refactor to make include order explicit, without guards. 2012-11-13 16:34:34 -08:00
Peter D. Barnes, Jr.
62fd21d15a Fix Hash (Ptr<HashFunc>) implementation, check for null m_impl, add test cases 2012-11-13 16:32:31 -08:00
Peter D. Barnes, Jr.
1b09cf3092 General hash interface, with replaceable hash functions, defaults to murmur3. 2012-11-13 16:24:59 -08:00
Peter D. Barnes, Jr.
12ea93c5a1 Disambiguate test asserts 2013-07-03 14:45:39 -07:00
Peter D. Barnes, Jr.
e3611c4078 Doxygenate todo's 2013-07-03 14:43:10 -07:00