Commit Graph

149 Commits

Author SHA1 Message Date
André Apitzsch
53ce443f79 test: Replace deprecated optparse 2023-04-03 13:43:19 +00:00
Gabriel Ferreira
6f076416e7 Fix typos 2023-02-21 22:29:29 -03:00
Gabriel Ferreira
3d67f736cd tests: make test.py print lines containing non-decodable characters 2023-02-13 23:19:14 +00:00
Gabriel Ferreira
fff36424f2 test: (fixes #118) list Python tests with ./test.py -l 2022-10-17 23:04:49 -03:00
Gabriel Ferreira
c34abb4ccc build: initial Windows support patches 2022-09-24 15:16:52 -03:00
Gabriel Ferreira
9058a2c422 bindings, test: fix for python tests and Cppyy test case (fixes #724) 2022-08-16 22:54:49 +00:00
Gabriel Ferreira
8bb412d44c test: remove examples enablement check for python examples 2022-08-05 01:17:00 -03:00
Tom Henderson
ac77e0afcd test: Remove stale suppressions file 2022-06-18 17:31:19 -07:00
Eduardo Almeida
e5e58ebdbc build: Update CMake to use system threads
With the help of Gabriel Ferreira and Tommaso Pecorella.
2022-05-04 19:47:39 +01:00
Gabriel Ferreira
4aedba2f00 build: CMake refactoring and fixes
Includes:
- fix int64x64 parsing order, remove cached entries in macros-and-definitions and in the docs
- update launch.json scratch names
- add a ctest entry per executable
- forward POSIX signal in ns3 (to get segmentation fault)
- prioritize Ninja generator instead of Makefiles
- add tests for unused utils source files
- remove dummy file and add tests to check for unused source files
- add missing examples and clean up unnecessary definitions
- missing feature entry for LTE used by pybindgen
- refactor CMake related filenames
- fix python libraries and include directories bindings
- fix brite example name
- Keep C++ compiler and flags when refreshing
- Disable precompiled headers when Ccache is found
- Mark find_external_library headers as advanced
- consolidate auxiliary files: build-status.py, _cache.py and .lock-waf_sys.platform_build files are merged into .lock-ns3_sys.platform_build
- scan .cc sources used in bindings and update docs
2022-02-21 22:18:42 -03:00
Gabriel Ferreira
e32c177e45 build: remove waf files, tests and references 2022-02-21 22:08:45 -03:00
Tommaso Pecorella
e1e07f2ffd core: skip results checking when introspecting the command line 2022-01-27 17:28:38 -03:00
Gabriel Ferreira
9342082c53 bindings, build: fix bindings and visualizer build
Includes:
- scan python scripts
- run python scripts from ns3
- replace visualizer file copy with configure_file to prevent cmake refreshes
- replace ns__init__.py file copy with configure_file to prevent cmake refreshes
- fix bindings scanning with cmake
- pass include directories to modulegen for castxml consumption
- add missing parameters of Recv in python-unit-tests.py
- change apiscan targets from apiscan-module to libmodule-apiscan
- change bindings targets from module-bingings to libmodule-bindings
- scanning and bindings build tests
- scan scratch python scripts
- replace FindPython3 with FindPython to be compatible with CMake 3.10
- do not export private visual-simulator-impl.h
- do not export udp-socket-impl.h
- use .so suffix for bindings on Mac instead of .dylib
2022-01-26 01:53:28 -03:00
Gabriel Ferreira
046fa968de test: build required tests with ns3 2022-01-23 17:31:18 -03:00
Gabriel Ferreira
7a95fb87be test: Replace nowaf option with no-build option 2022-01-09 00:59:19 -03:00
Gabriel Ferreira
65347519ed test: Return 0 during command-line introspection 2022-01-09 00:57:27 -03:00
Tom Henderson
2c19b5b453 internet: Remove Network Simulation Cradle (NSC) 2021-12-10 09:07:03 -08:00
Eduardo Almeida
6aa2d3238e Update Python scripts to the safer "with open() as" Python syntax 2021-05-11 23:38:30 +00:00
Ryan Mast
f0e34da5eb test.py: (merges !321) Distinguish between test suites and cases in output 2020-09-27 21:06:38 -07:00
Peter D. Barnes, Jr
5a11a33b10 test: add options --jobs to limit the number of worker threads in test.py 2020-03-24 14:57:39 -07:00
Peter D. Barnes, Jr
c8c1275852 Make test.py respect NOCOLOR like waf 2020-03-23 13:11:14 -07:00
SaiMyGuy (GCI 2019)
6a2d9d1bed test.py: Show progress of tests in numbers 2020-03-04 18:20:10 +05:30
Tommaso Pecorella
1c7378d13e test.py: partial revert of changes - python examples can not be used
with wildcards.
2020-01-19 02:23:40 +01:00
Tom Henderson
c5369c722b Fix python example invocation in test.py 2020-01-18 12:42:29 -08:00
Tommaso Pecorella
e0816d6397 Add --nocolor option to test.py 2020-01-18 10:28:47 +01:00
Tommaso Pecorella
e43e74d63b Add color output to tests 2020-01-09 14:05:40 +01:00
Tommaso Pecorella
664e58a968 Fix print of test kinds 2020-01-09 14:04:35 +01:00
Tommaso Pecorella
cf8ad56ced Add file name pattern matching to tests 2020-01-09 14:03:13 +01:00
Tom Henderson
0258405cc6 build: Upgrade scripts to Python 3 (many changes due to Ankit Deepak) 2019-08-12 16:55:34 -07:00
Alexander Krotov
6f54f2c347 test.py: style fixes 2018-12-27 12:59:23 +03:00
Alexander Krotov
4cd771c0c4 test.py: remove trailing whitespace 2018-12-27 12:24:03 +03:00
Peter D. Barnes, Jr.
91a5fa510a test: show reason a test/example was skipped 2018-11-06 12:30:43 -08:00
Manuel Requena
40d380b2b1 test: (fixes #2949) Exit test.py if incorrect fullness option used 2018-08-15 14:02:21 -07:00
Alexander Krotov
00bb6fe7f6 Spellcheck 2018-06-27 10:50:27 +03:00
Robert Ammon
5d5f67faa3 test: (fixes #2829) test.py produces malformed XML results 2018-01-04 13:28:16 -08:00
Alexander Krotov
4bbf7c5e1b test.py: (fixes #2743) Treat memory leaks as errors without parsing valgrind output
Valgrinds prints LEAK SUMMARY even if leak is suppressed.  Instead of
parsing valgrind output, which is error prone, it is possible to make
valgrind treat leaks as errors by passing "--show-leak-kinds=all"
argument.
2017-05-24 18:41:21 +03:00
Lauri Sormunen
54b20047fd build: (fixes #2630) Add contrib directory in parallel to src 2017-04-06 20:32:04 -07:00
Peter D. Barnes, Jr.
f19ad59e7c [test.py] Always run a single test suite specified with --suite=
We normally don't run performance tests unless explicitly requested with
"--constrain=performance", but this had the effect of ignoring a test
suite given explicitly with "--suite=..."

This patch runs a performance test without requiring an explicit
performance constraint.
2016-08-02 14:17:01 -07:00
Tom Henderson
9be85824a6 click: Fix detection of Waf configuration variable 2016-02-08 22:43:32 -08:00
Tom Henderson
b4a2ad6d11 bug 2199 postfix: make unicode decode() more robust 2015-10-30 14:58:58 -07:00
Natale Patriciello
03f1e6e7db bug 2199: Python 3 fix for test.py with valgrind option 2015-10-27 12:50:42 -07: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.
eb4138894f test.py list formatting 2015-02-04 12:34:24 -08:00
Peter D. Barnes, Jr.
81f6d0c1c9 Sort and pretty-print result lists of SKIPped, FAILed, CRASHed and VALGR tests from ./test.py 2014-10-15 11:29:30 -07:00
Tom Henderson
4af772ceaa print error message when test.py list printing fails 2014-06-30 11:09:35 -07:00
Tom Henderson
ff1f9f9c5f append list of skipped/failed/crashed/valgrined tests to end of test.py output 2014-04-30 13:06:17 -07:00
Peter D. Barnes, Jr.
926f89eea2 Strip NS3_BUILDDIR from Example path. 2014-01-10 17:20:26 -08:00
Mitch Watrous
96fe3c2132 Bug 1710 - Examples crash when run like this: ./test.py -e example-name 2013-06-20 10:23:10 -07:00
Mitch Watrous
b11234bba3 Make examples again work for nonrelease builds 2013-06-19 13:55:49 -07:00
Mitch Watrous
5f1a54818f Bug 1707 - test.py doesn't work with the release profile 2013-06-19 11:17:17 -07:00