Long CLI flags

This commit is contained in:
southerntofu 2020-09-22 15:39:49 +02:00
parent 3cef9d4501
commit 84b707c97c
1 changed files with 9 additions and 0 deletions

View File

@ -250,6 +250,15 @@ function setup_submodule {
[ -f /tmp/forgebuild-time ]
}
@test "can use long CLI flags" {
$FORGEBUILD -b $FORGEBUILDDIR time
[ -f /tmp/forgebuild-time ]
TIME="$(cat /tmp/forgebuild-time)"
$FORGEBUILD --force --basedir $FORGEBUILDDIR time
NEWTIME="$(cat /tmp/forgebuild-time)"
[[ "$TIME" != "$NEWTIME" ]]
}
@test "tasks are run in alphanumeric order" {
# Run in background
$FORGEBUILD -b $FORGEBUILDDIR &