Move test.bats to test/git-check-assertions.bats

This commit is contained in:
Sven van Heugten 2026-03-02 19:57:44 +01:00
parent a82e98d775
commit 653a1b67bc
No known key found for this signature in database
GPG key ID: D612F88666F4F660
2 changed files with 4 additions and 4 deletions

View file

@ -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
''; '';

View file

@ -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" {