2022-06-30 11:35:31 +03:00
|
|
|
# Boring Backup
|
|
|
|
|
|
|
|
Bash powered backup tool.
|
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
# Testing
|
2022-05-14 00:20:02 +03:00
|
|
|
|
2022-06-30 11:35:31 +03:00
|
|
|
BB uses amazing test suite: https://bats-core.readthedocs.io/
|
2022-05-14 00:20:02 +03:00
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
Install Bats:
|
2022-05-14 00:20:02 +03:00
|
|
|
|
|
|
|
git clone https://github.com/bats-core/bats-core.git
|
|
|
|
bash bats-core/install.sh ~/.local
|
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
Add some Bats extensions:
|
2022-05-14 00:20:02 +03:00
|
|
|
|
|
|
|
git clone https://github.com/bats-core/bats-assert.git tests/helpers/bats-assert
|
|
|
|
git clone https://github.com/bats-core/bats-support.git tests/helpers/bats-support
|
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
Run tests:
|
2022-05-14 00:20:02 +03:00
|
|
|
|
2022-08-13 19:35:11 +03:00
|
|
|
make test
|
2022-05-14 00:20:02 +03:00
|
|
|
|
2022-06-30 11:35:31 +03:00
|
|
|
# Linting
|
|
|
|
|
|
|
|
Run shellcheck:
|
|
|
|
|
|
|
|
make lint
|
|
|
|
|
2022-06-07 21:34:35 +03:00
|
|
|
# Building
|
2022-05-14 00:20:02 +03:00
|
|
|
|
2022-08-13 19:35:11 +03:00
|
|
|
Build manpages:
|
2022-05-14 00:20:02 +03:00
|
|
|
|
2022-08-13 19:35:11 +03:00
|
|
|
make man
|