Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
6133e96d
Commit
6133e96d
authored
Jan 25, 2017
by
Richard Torenvliet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a readme to explain a bit how run tests
parent
ddcce250
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
tests/README.md
tests/README.md
+37
-0
No files found.
tests/README.md
0 → 100644
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
)
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