Clone this repo:
  1. 3714c5c [VOL-3797] : Set default g++ and gcc version to 4.9 in openolt-test docker image by Girish Gowdra · 3 years, 2 months ago master 2.1.1
  2. 0b14f6e Add PcapPlusPlus library for packet parsing Bump version to 2.1.0 by Girish Gowdra · 3 years, 5 months ago 2.1.0
  3. a21ac2a Bump minor version libssl-dev package as older version is obsoelte now. by Girish Gowdra · 3 years, 6 months ago 2.0.1
  4. fddb175 VOL-3419: Update the tools image to use grpc c++ 1.31.1. by Girish Gowdra · 3 years, 7 months ago 2.0.0
  5. 46aec6c Integrate lcov tool for generating unit test code coverage report. by Girish Gowdra · 4 years ago 1.0.1

openolt-test : Docker container with prereqs for running openolt agent unit tests

This repo contains Dockerfile used to generate docker container with prerequisite software for running openolt agent unit tests.

Versioning

Final docker images are tagged with the image version from the VERSION file.

The VERSION file should be changed using these rules:

  • Bump Patch version if:
    • Patch version of a tool has changed.
    • This repo's supporting files have changed (Makefile, readme, etc.) This rule assumes that the containers generated are backwards-compatible; if they are not, bump the major version instead.
  • Bump Minor version if:
    • Minor version of a tool has changed.
    • A new tool has been added.
  • Bump Major version if:
    • Major version of a tool has changed.
  • Bump patch/minor/major version according to semver rules if a Dockerfile is changed.
  • Reset lesser versions if greater versions change.
  • Do not use -dev versions.

Tool Usage

Only use containers tagged with <VERSION>.

Once you are the root folder of the openolt agent repo, execute the below command to build and run the unit tests. Replace VERSION to use a specific version of the container.

docker run --rm -v $PWD:/app voltha/openolt-test:<VERSION> make test

Details:

  • -v bind-mounts the local folder into the container.

Key Commands

  • make build to build container
  • make docker-push to push built container to a registry
  • make lint to lint the Dockerfiles