Skip to content

Common tools for main telescope hexapod and rotator controllers in C

Notifications You must be signed in to change notification settings

lsst-ts/ts_hexrotpxicom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common Code of the Main Telescope Rotator and Hexapod Controllers

Needed Package

  • libyaml: v0.2.5
  • googletest: v1.10.0 (optional)
  • gcovr (optional)
  • clang-format (optional)
  • glib-devel
  • glib2-devel.x86_64

Code Format

The C/C++ code is automatically formatted by clang-format.

To enable this with a git pre-commit hook:

  • Install the clang-format C++ package.
  • Run git config core.hooksPath .githooks once in this repository.

Setup the Environment

Set the path variable by:

export PXI_CNTLR_HOME=$path_to_this_module

Unit Test and Code Coverage

  1. Do the following to do the unit tests in docker container:
cd tests/
make
../bin/test
  1. To get the code coverage, do:
cd build/tests/
gcovr -r ../../src/ .

If the Cobertura xml report is needed, do the following instead:

gcovr -r ../../src/ . --xml-pretty > coverageReport.xml
  1. To clean the test data, do make clean in tests/ directory.

Command Status

The details can follow commandStatus.

About

Common tools for main telescope hexapod and rotator controllers in C

Resources

Stars

Watchers

Forks

Packages

No packages published