Move test.bats to test/git-check-assertions.bats
This commit is contained in:
parent
a82e98d775
commit
653a1b67bc
2 changed files with 4 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ resholve.mkDerivation {
|
||||||
root = ./.;
|
root = ./.;
|
||||||
fileset = fs.unions [
|
fileset = fs.unions [
|
||||||
./bin/git-check-assertions
|
./bin/git-check-assertions
|
||||||
./test.bats
|
./test/git-check-assertions.bats
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -37,13 +37,13 @@ resholve.mkDerivation {
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
shellcheck bin/git-check-assertions test.bats
|
shellcheck bin/git-check-assertions test/git-check-assertions.bats
|
||||||
git init
|
git init
|
||||||
git config user.email test
|
git config user.email test
|
||||||
git config user.name test
|
git config user.name test
|
||||||
git checkout -b main
|
git checkout -b main
|
||||||
git commit --allow-empty -m "initial"
|
git commit --allow-empty -m "initial"
|
||||||
./test.bats
|
./test/git-check-assertions.bats
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
|
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
|
||||||
PATH="$DIR/bin:$PATH"
|
PATH="$DIR/../bin:$PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "can run" {
|
@test "can run" {
|
||||||
Loading…
Add table
Add a link
Reference in a new issue