diff options
Diffstat (limited to 'test/cases/librestage.bats')
-rw-r--r-- | test/cases/librestage.bats | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/cases/librestage.bats b/test/cases/librestage.bats index 1bc5c25..4551d1e 100644 --- a/test/cases/librestage.bats +++ b/test/cases/librestage.bats @@ -1,5 +1,7 @@ load ../lib/common +shopt -s extglob + @test "librestage displays usage text" { rm -rf "$XDG_CONFIG_HOME" LC_ALL=C librestage -h >$tmpdir/stdout 2>$tmpdir/stderr @@ -38,8 +40,8 @@ load ../lib/common librestage find "$tmpdir" -not -type d -exec ls -ld -- {} + - globfile $tmpdir/workdir/staging/reponame/libretools-hello-1.0-1-any.pkg.tar.?z - $nochroot || globfile $tmpdir/workdir/staging/sources/parabola/libretools-hello-1.0-1-any.src.tar.?z + globfile $tmpdir/workdir/staging/reponame/libretools-hello-1.0-1-any.pkg.tar?(.!(sig|*.*)) + $nochroot || globfile $tmpdir/workdir/staging/sources/parabola/libretools-hello-1.0-1-any.src.tar?(.!(sig|*.*)) } @test "librestage stages packages without PKGDEST" { @@ -61,6 +63,6 @@ load ../lib/common librestage repo1 find "$tmpdir" -not -type d -exec ls -ld -- {} + - globfile $tmpdir/workdir/staging/repo1/libretools-hello-1.0-1-any.pkg.tar.?z - $nochroot || globfile $tmpdir/workdir/staging/sources/parabola/libretools-hello-1.0-1-any.src.tar.?z + globfile $tmpdir/workdir/staging/repo1/libretools-hello-1.0-1-any.pkg.tar?(.!(sig|*.*)) + $nochroot || globfile $tmpdir/workdir/staging/sources/parabola/libretools-hello-1.0-1-any.src.tar?(.!(sig|*.*)) } |