test runs with different basedir (relative, trailing slash)

This commit is contained in:
southerntofu 2020-09-16 15:51:41 +02:00
parent 65b3f6995f
commit c436c62224
1 changed files with 12 additions and 0 deletions

View File

@ -237,3 +237,15 @@ function setup_submodule {
NEWTIME="$(cat /tmp/forgebuild-time)"
[[ "$TIME" != "$NEWTIME" ]]
}
@test "can run with relative basedir" {
cd $FORGEBUILDDIR
$FORGEBUILD -b . time
[ -f /tmp/forgebuild-time ]
}
@test "can run with trailing slash in basedir" {
cd $FORGEBUILDDIR
$FORGEBUILD -b ./ time
[ -f /tmp/forgebuild-time ]
}