Commit Graph

170 Commits

Author SHA1 Message Date
Jared Dulmage
643378b816 Removed extended-attribute-helper.h
This file should be part of another merge request.
2020-09-20 14:52:02 -07:00
Jared Dulmage
4f4c893e52 STL container and pair attributes
This commit adds the ability to read / write attributes corresponding
to STL containers or pair structures.  Testcases are included and
demonstrate how to add container or pair member variables as
attributes to your class.
2020-09-20 14:52:02 -07:00
Mathew Bielejeski
5d13b2b80c build: Create version.cache file with dummy data when git tags are absent
* Change version tag and ClosestTag values to be ns-3.xx
* Fix string values to have the proper format
* Allow check-version to proceed even if git task is not present
* Remove git package requirement from Docker containers
* Create git_ns3_version_info task only when HAVE_NS3_REPO is defined
* Change tag glob from ns-3* to ns-3.[0-9]*
* Use version tag to make output consistent with waf --check-version
2020-08-18 15:39:34 -07:00
Mathew Bielejeski
32e95f8228 Make build information accessible by programs by extracting data from the local git repository (or a standalone file if a git repository is not present).
Changes

* Adds a new class named Version to the core module
* Adds a template file to the core module named version-defines.h.in
* Adds --PrintVersion and --version arguments to the CommandLine class.
* Creates a new waf tool which queries the local git repository and extracts build information from itCreate a waf task to extract version information from git repository
2020-08-11 20:20:05 +00:00
Steven Smith
dded72e02e build: (fixes #217) Guard compilation of example used as a test
* Added documentation to ExampleAsTestSuite on the need for this guarding
* Updated with Peter's patch for examples-as-test placeholders in wscripts
2020-06-08 09:35:50 -07:00
Peter Barnes
0c4ace3b18 ShowProgress burnin 2020-06-02 15:50:09 +00:00
Steven Smith
3a15ad78b8 core: Add test suite support for running examples as tests with comparison of output for regression testing 2020-05-26 21:42:16 +00:00
Alexander Krotov
82b555582e core: PriorityQueueScheduler based on std::priority_queue
This has a stub for Remove, which just cancels the event.

In turn this causes the simulator test case to fail, because of
the sanity check at the end of DefaultSimulatorImpl::Run.
2020-05-01 23:50:34 +00:00
Peter D. Barnes, Jr
e070724fe4 core: regularize usage of getenv 2020-04-27 16:20:09 -07:00
Peter D. Barnes, Jr.
1edcd5ecd4 core: periodically show progress by elapsed simulation time, executed event count 2018-10-19 01:09:56 -04:00
Peter D. Barnes, Jr.
4ed3987151 core: refactor LogTimePrinter, LogNodePrinter 2018-10-19 00:48:53 -04:00
Steve Smith
12a3af0e02 build: Updating Waf 1.8.19 to 2.0.9
*) Platform was no longer recognized as a attribute of Options.  Used waf
Utils call to obtain unversioned platform name.

*) Task classes renamed from <taskname>_task to <taskname>.

Waf was not finding the classes when named with _task suffix.

*) Waf removed check option for 'type_name' check.

Added explicit embedded code snippet based on previous Waf versions to perform uint128 checks.

*) Waf source attribute is now strings, need to convert to nodes to retrieve parent node.

# Orig 1.8.19 testdir = self.source[-1].parent.path_from(self.bld.srcnode)
testdir = self.to_nodes(self.source[-1])[0].parent.path_from(self.bld.srcnode)
2018-08-24 18:02:14 -07:00
Peter D. Barnes, Jr.
8d7160380e DES Metrics implementation. 2016-09-02 22:40:07 -04:00
Siddharth Santurkar
b5fde4107c port wscripts, test.py, and waf-tools to Python3 2015-09-03 21:14:55 -07:00
Peter D. Barnes, Jr.
f7311ec17a Build profile macros 2015-07-28 16:33:35 -07:00
Peter D. Barnes, Jr.
aa14800121 Add NonCopyable, refactor Singleton. 2015-07-21 16:21:49 -07:00
Tom Henderson
41b83c9851 remove deprecated RandomVariable class 2014-10-13 16:09:59 -07:00
Andrey Mazo
210aefc777 Bug 1170: Formulate best practices for dealing with unused debug variables.
Fixed clang-3.4 unused function warnings in optimized builds like the following:
"""
../examples/energy/energy-model-example.cc:39:1: error: unused function
'PrintReceivedPacket' [-Werror,-Wunused-function]
PrintReceivedPacket (Address& from)
^
1 error generated.
"""

Implemented "if (false)" trick inside NS_LOG* macros for optimized builds.

"sizeof()" trick might be a little better but it produces the following
warning with clang-3.4:
"""
../examples/energy/energy-model-example.cc:39:1: error: function
'PrintReceivedPacket' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
PrintReceivedPacket (Address& from)
^
1 error generated.
"""


Macros from log.h, that depend on NS3_LOG_ENABLE, were moved to log-macros-enabled.h and log-macros-disabled.h to make log.h smaller.
2014-03-23 19:08:54 +04: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.
022f3ad024 Enable selection of high precision int64x64 implementation at configure time. 2014-01-28 12:51:47 -08:00
Gustavo Carneiro
b2d76a1887 Add waf option to disable threads in build. 2013-10-13 18:20:40 +01: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.
705906ef5e Refactor namespaces 2012-11-13 16:38:48 -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.
a2019b566f Add FNV1a, manual documentation. 2012-11-13 16:30:38 -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
Tom Henderson
201f7e084a move event-garbage-collector from tools module to core/helper 2013-06-18 10:05:15 -07:00
Tom Henderson
eb8227f290 make core/helper directory; move random-stream helper code there 2013-06-18 09:46:32 -07:00
Vedran Miletić
bbdb4231b3 Upgrade waf to 1.7.10 and fix included wscripts
This is a massive upgrade removing almost all pre-waf 1.6 script code. In addition, this does away with custom pkgconfig.py script for making .pc files and replaces it with waf's builtin mechanism.

Massive thanks to Alex Afanasyev for ideas and bugfixing, to Alina Quereilhac for bugfixing and testing, and to Tom Henderson for thorough testing.
2013-04-01 22:33:46 +02:00
Mitch Watrous
5ef163d11a Bug 1284 - ./test.py performance tests do not exist 2012-09-10 17:15:07 -07:00
Vedran Miletić
71e380b55e Bug 1237 - code cleanups related to includes 2012-09-01 20:57:21 +02:00
Mitch Watrous
3c3123dc4a update wscript 2012-07-10 21:51:44 -07:00
Mathieu Lacage
7fa5a5d5d8 initial patch to fix rng variability 2012-07-10 21:31:47 -07:00
Tom Henderson
4789d43a7a Remove Ns2CalendarScheduler event scheduler 2012-04-18 10:21:35 -07:00
Tom Henderson
7bebe48f82 only test threaded-simulator cases appropriate for the configuration 2012-04-10 16:07:39 -07:00
Alina Quereilhac
efe4c2ed68 Finally enable a thread-safe ScheduleWithContext 2012-03-22 18:05:13 +01:00
Mathieu Lacage
87309ec7f0 remove abstraction that is going to be broken 2012-03-22 15:27:50 +01:00
Andrey Mazo
cec21ade43 Bug 1170: Formulate best practices for dealing with unused debug variables. 2012-02-10 19:02:12 +04:00
Gustavo Carneiro / Vedran Miletić
ff86ca198d Bug 1327 - Version installed ns-3 files 2012-01-11 14:34:14 +00:00
Alexander Afanasyev
30e6359e85 Adding required PTHREAD dependency to RT library check. Adding missing include to ipv6-address.cc 2011-10-06 10:42:21 -07:00
Gustavo J. A. M. Carneiro
05b726cc71 Fix modules wscript usage of 'use' parameter 2011-09-22 13:03:25 +01:00
frederic.
5f040a5727 Export system-path include. 2011-09-19 09:29:55 +02:00
Gustavo J. A. M. Carneiro
0536f2416f More waf 1.6.7 build fixes 2011-09-12 14:54:27 +01:00
Gustavo J. A. M. Carneiro
c3059b6e68 Upgrade to waf-1.6.7, work in progress 2011-09-08 16:13:40 +01:00
Mathieu Lacage
c3618453d2 refactor ObjectVector generic code into a separate file and introduce ObjectMap. 2011-08-10 11:48:19 -04:00
Mathieu Lacage
f2d7c8f05a introduce Config::Reset 2011-08-03 13:58:10 -04:00
Mathieu Lacage
8a38290eb8 add support for --update-data to test.py, move test runner code to library for modular build, add support for hierarchical tests beyond the previous two-level hierarchy. 2011-07-29 03:38:59 -04:00
Mitch Watrous
1717d90e90 Add manual chapter for adding new modules 2011-05-12 14:13:48 -07:00
Mathieu Lacage
1ea256f802 forgot ns3 postfix 2011-04-19 14:11:12 +02:00