Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Torenvliet
eos
Commits
6133e96d
Commit
6133e96d
authored
8 years ago
by
Richard Torenvliet
Browse files
Options
Downloads
Patches
Plain Diff
Add a readme to explain a bit how run tests
parent
ddcce250
Branches
tests
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/README.md
+37
-0
37 additions, 0 deletions
tests/README.md
with
37 additions
and
0 deletions
tests/README.md
0 → 100644
+
37
−
0
View file @
6133e96d
# Tests with Catch
The tests are written by utilizing the Catch framework, a header-only test
framework. The main test file includes all test header files to be able to use
the command line tool that is added with the
```#define CATCH_CONFIG_MAIN```
.
See the Catch framework on github for more information about this.
## How to run
Until a script is added to run these test aumatically upon make, the tests can
be executed by:
~~~
Shell
$ <eos_root_install_dir>/tests/main-tests
~~~
Note that we execute all tests with this command. For help, pass
``-h``` to the
main-test binary file.
~~~Shell
$ <eos_root_install_dir>/tests/main-tests -h
~~~
For example if the root install dir is right in this folder (as the main README
suggests with ```-DCMAKE_INSTALL_PREFIX``
`
), then do:
~~~
Shell
$ ./install/tests/main-tests'
~~~
If you are using the docker files from the docker branch, the command looks
like this:
~~~
Shell
$ CMD='cd build/tests; make -j4 && make install && cd ../../ && ./install/tests/main-tests' make run-bash-cmd
~~~
## References
*
Catch on github
[
Catch framework
](
https://github.com/philsquared/Catch
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment