Add Fedora bats setup instructions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
3wc
2025-08-12 12:30:10 +01:00
committed by 3wordchant
parent 4dea3ac3ca
commit d1efcb06cc

View File

@ -91,6 +91,26 @@ Please ask `@decentral1se` or on the Matrix channels for SSH access to the machi
We use [`bats`](https://bats-core.readthedocs.io/en/stable/) to run the tests. You can install the required dependencies with the following. You also need a working installation of Docker and Go >= 1.16 (not covered in this section).
##### Fedora
```
sudo dnf install bats
```
Unfortunately, the Fedora `bats` package doesn't include the libraries we need, so we need to clone those manually:
```
mkdir -p ~/.local/share/bats/
cd ~/.local/share/bats
git clone https://github.com/bats-core/bats-assert.git
git clone https://github.com/bats-core/bats-file.git
git clone https://github.com/bats-core/bats-support.git
```
Then, before running tests, set `export BATS_LIB_PATH=~/.local/share/bats/`
##### Debian
```
apt install bats-file bats-assert bats-support jq make git
```
@ -111,7 +131,7 @@ For some tests an actual server is needed, where apps can be deployed. You can e
##### Remote swarm
```
export ABRA_TEST_DOMAIN="test.example.com"
export ABRA_SERVER="test.example.com"
export ABRA_DIR="$HOME/.abra_test"
```