Gabriel Ferreira
dddc5740ee
core, test: Add --only-fullness option to execute only test cases with the specified duration
...
Allows for tiered execution of progressively slower/faster tests
./test.py -of QUICK
./test.py -of EXTENSIVE
./test.py -of TAKES_FOREVER
2025-09-15 18:18:01 +00:00
Tom Henderson
3ec58a20d1
test: Fix off-by-one reporting of test number
2025-08-13 22:17:09 +00:00
Gabriel Ferreira
cdbb632c6a
core, test: Print example-as-test as example-as-test, instead of examples
...
Avoids confusion regarding manually passing a test as a test-suite name (-s) or an actual example names (-e)
2025-07-02 09:56:45 +02:00
Gabriel Ferreira
b8f5dbcab1
test: Filter examples-to-run.py examples by name, and allow custom arguments
2025-07-02 09:56:45 +02:00
Surya
991c772198
doc: ( fixes #1215 ) clarify test.py PASS message (testing Vs doc generation)
2025-04-28 16:40:04 +00:00
Ivey
04e605554f
build: Handle Python path with whitespaces on Windows
2025-01-24 08:04:05 +00:00
Gabriel Ferreira
e7c52a4f4f
build: Scan for modules in the external contrib directory ../ns-3-external-contrib
2024-12-21 18:45:28 +00:00
Gabriel Ferreira
9281078dd2
tests: Run test.py with full logging in the presence of TEST_LOGS environment variable
2024-09-15 14:05:12 +00:00
André Apitzsch
8bc94a1cc3
Use SPDX license identifiers
2024-09-06 19:32:31 +00:00
Nakayama Kenjiro
3c4019304a
build: Enable BSD support
2024-06-02 07:46:55 +00:00
Gabriel Ferreira
4676dcdb8a
tests: Add test fullness option for test.py when running examples
2024-04-27 21:30:05 +00:00
Gabriel Ferreira
73b33bdf1a
tests: Try-catch opening of possibly non-existent output file
2024-04-21 17:02:07 +00:00
Tommaso Pecorella
ec8b9a57b1
test: add valgrind suppression for libucs used by MPI
2024-02-23 19:46:15 -06:00
Gabriel Ferreira
8f6a3413a4
style: apply black and isort
2023-11-20 21:30:01 -03:00
Gabriel Ferreira
b99875e866
build: remove leftovers from 5e551a21
2023-11-19 12:30:12 -03:00
André Apitzsch
00604f18e1
test: Remove Python2 fallback
2023-10-08 01:57:46 +00:00
André Apitzsch
f426a0749a
test: use early return
2023-10-08 01:57:46 +00:00
Gabriel Ferreira
73ab46ea5e
test: add option to rerun failed tests only
2023-09-21 11:59:07 -03:00
Eduardo Almeida
39c625c9ef
python: Multiple fixes to Python scripts
...
- Remove unused imports.
- Fix indentation.
- Remove redundant return.
- Remove ; at the end of the lines.
2023-08-18 11:21:47 +00:00
Eduardo Almeida
4023d05b99
python: Open files using "with"
2023-08-18 11:21:47 +00:00
Eduardo Almeida
20ae6fb2d0
python: Explicitly specify the encoding when opening files
2023-08-18 11:21:47 +00:00
Eduardo Almeida
42d6eea6de
Remove emacs lines from Python and C++ files
2023-05-23 16:20:52 +00:00
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