Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.54 KB

COMPATIBILITY_SUITE.md

File metadata and controls

49 lines (31 loc) · 1.54 KB

Servirtium Compatibility Suite Runner

The compatibility suite allows us to check this Python version of Servirtium against other language implementations. Regular users of Servirtium are unlikely to deploy Servirtium in this configuration. People contributing to Servirtium development will be interested in this.

You'll need to have Docker, and Python3 installed

Running this from a cloned/checked out directory

git clone [email protected]:servirtium/compatibility-suite-runner.git
git clone [email protected]:servirtium/servirtium-python.git
cd servirtium-python
docker-compose build
python3 ../compatibility-suite-runner/compatibility-suite.py record -p 61417

That records 16 interactions with our test suite - you'll need to be online

python3 path/to/compatibility-suite-runner/compatibility-suite.py playback -p 61417

That replays the 16 records interactions with our test suite - you can be offline and this will still work

Running this GitHub without cloning

Mac & Linux

As above but the above Python3 line should be

curl -s https://raw.githubusercontent.com/servirtium/compatibility-suite-runner/main/compatibility-suite.py \
  | python3 /dev/stdin record -p 61417  

Windows

TODO

Repeat the above with 'playback' instead of the 'record'

Comparing the output to the reference recording

bash path/to/compatibility-suite-runner/compare_recording_with_reference_case.sh .compatibility_suite_recording.md 

This script will tell you whether the recoding you just made is the same as the reference recording.