The following have been tested on an Ubuntu 16.04 LTS VM.
- Clone the repository.
git clone https://github.com/caproto/caproto
cd caproto
- Install the EPICS build dependencies.
sudo apt-get install curl libreadline6-dev libncurses5-dev perl re2c tmux strace
- Set environment variables.
source setup_local_dev_env.sh
- Install EPICS dependencies.
bash .ci/install-epics-base.sh
bash .ci/install-epics-modules.sh
bash .ci/install-epics-modules.sh
bash .ci/install-epics-iocs.sh
- Run the IOCs that the tests will communicate with.
bash .ci/run-epics-iocs.sh
- Create a Python 3 conda environment and install the test requirements.
conda create -n caproto python=3 numpy
source activate caproto
pip install -r requirements-test.txt
- Run the pyepics 'simulator' and continually updates some test PVs to be monitored.
bash .ci/run-pyepics-simulator.sh
- Run tests.
python run_tests.py -v