mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
15 lines
437 B
Bash
Executable File
15 lines
437 B
Bash
Executable File
#!/bin/bash
|
|
dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
# install bats
|
|
git clone https://github.com/bats-core/bats-core.git $dir/bats
|
|
git clone https://github.com/bats-core/bats-support.git $dir/bats-support
|
|
git clone https://github.com/bats-core/bats-assert.git $dir/bats-assert
|
|
PATH=$PATH:$dir/bats/bin
|
|
# run tests
|
|
bats $dir
|
|
# clean up
|
|
rm -rf $dir/bats
|
|
rm -rf $dir/bats-support
|
|
rm -rf $dir/bats-assert
|
|
|