The recommended way is:
# Clone the repository: git clone 'https://gitlab.com/caosdb/caosdb-advanced-user-tools'
Dependencies will be installed automatically if you use the below described procedure.
If you want to use the optional h5-crawler the following dependencies will be installed additionally:
pip install . --user
pip install tox --user
pip install .[h5-crawler] --user
Run Unit Tests
Run Integration Tests Locally
Change directory to
extrootto the folder that will be used as extroot. E.g.
sudo mount -o bind extroot ../../caosdb-deploy/profiles/debug/paths/extroot(or whatever path the extroot of the empty profile to be used is located at).
Start (or restart) an empty (!) CaosDB instance (with the mounted extroot). The database will be cleared during testing, so it’s important to use an empty instance. Make sure your configuration for the python caosdb module is correct and allows to connect to the server.
test.sh. Note that this may modify content of the