Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
dbe5c5ee
Commit
dbe5c5ee
authored
Aug 16, 2024
by
Guido Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor additions to UnitTests.md
parent
57644223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
doc/UnitTests.md
doc/UnitTests.md
+6
-2
No files found.
doc/UnitTests.md
View file @
dbe5c5ee
...
...
@@ -25,7 +25,8 @@ ninja tests
```
Then, you can run
`ctest`
to run all tests:
```
```
bash
$
ctest
Test project /home/richie/w/ctest/build
Start 1: nr_rlc_tests
...
...
@@ -36,6 +37,8 @@ Test project /home/richie/w/ctest/build
Total Test
time
(
real
)
=
0.06 sec
```
The user can see all available tests by typing
`ctest -N`
and then run a specific with
`ctest -R <test_name>`
, e.g.
`ctest -R nr_rlc_tests`
.
A couple of interesting variables are
`--verbose`
,
`--output-on-failure`
.
# How to add a new test
...
...
@@ -59,7 +62,8 @@ process is
In the simplest case, in an existing
`CMakeLists.txt`
, you might add the
following:
```
```
bash
if
(
ENABLE_TESTS
)
add_executable
(
my_test mytest.c
)
add_dependencies
(
tests my_test
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment