This project contains a collection of Python modules related to Cyber Physical Systems and their analysis. The codebase is set up to be built and tested within a Dockerized environment.
To build and run this project, you will need:
- Docker installed and running on your system (e.g., Docker Desktop or Docker Engine).
A brief overview of the key files and directories:
Dockerfile: Defines the Docker image and environment.*.py(in root): Python source files for the librarytests/: Contains unit testsrequirements.txt: Lists Python dependencies.build_docker.sh: Script to build the Docker image.run_tests.sh: Script to execute unit tests
NOTE: Make scripts executable (if not already):
chmod +x build_docker.sh
chmod +x run_tests.shBuild the Docker image:
Use the build_docker.sh script. You can provide an image name (tag) as an argument. It's recommended to use a descriptive name, for example cps-tools
Example build command:
./build_docker.sh cps-toolsOnce the Docker image is built, you can run the unit tests using the run_tests.sh script executed inside a new Docker container.
Execute the tests:
Replace your_chosen_image_name with the tag you used when building the image.
docker run --rm your_chosen_image_name ./run_tests.sh