Add Fedora bats setup instructions #282

Merged
3wordchant merged 1 commits from tweak-abra-test-setup into main 2025-08-12 12:07:30 +00:00

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"
decentral1se marked this conversation as resolved
Review

@decentral1se does this semi-unrelated change I snuck in look legit?

@decentral1se does this semi-unrelated change I snuck in look legit?
Review

@3wordchant yeh 100%, I think that is an old way to target the test server which never made it out of code review and we settled on TEST_SERVER. Can also be removed from

# export ABRA_TEST_DOMAIN=test.example.com
👀

@3wordchant yeh 100%, I think that is an old way to target the test server which never made it out of code review and we settled on `TEST_SERVER`. Can also be removed from https://git.coopcloud.tech/toolshed/abra/src/commit/56a68dfa9163d1ab73245f7abaa48edb072e93d3/.envrc.sample#L3 👀
Review

Awesome, mergèd

Awesome, mergèd
Review

Ah fuck but it's TEST_SERVER not ABRA_SERVER. Brown-paper-bag commit incoming

Ah fuck but it's `TEST_SERVER` not `ABRA_SERVER`. Brown-paper-bag commit incoming
export ABRA_DIR="$HOME/.abra_test"
```