mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-11-11 01:48:58 -05:00
41 lines
897 B
Text
41 lines
897 B
Text
|
#!/usr/bin/env bats
|
||
|
|
||
|
load test_helper
|
||
|
|
||
|
setup() {
|
||
|
f test/var/db/repos/gentoo/app-backup/mkstage4/ebuild
|
||
|
f test/var/cache/distfiles/mkstage4.tar.gz
|
||
|
f test/usr/portage/Manifest
|
||
|
mkstage4.sh -q -t test test
|
||
|
}
|
||
|
|
||
|
teardown() {
|
||
|
rm -rf test test.tar.bz2
|
||
|
}
|
||
|
|
||
|
@test "/var/db/repos/gentoo/app-backup is excluded" {
|
||
|
assert_tar_excludes test/var/db/repos/gentoo/app-backup
|
||
|
}
|
||
|
|
||
|
@test "/var/db/repos/gentoo/ is included" {
|
||
|
assert_tar_includes test/var/db/repos/gentoo/
|
||
|
}
|
||
|
|
||
|
@test "/var/cache/distfiles/mkstage4.tar.gz is excluded" {
|
||
|
assert_tar_excludes test/var/cache/distfiles/mkstage4.tar.gz
|
||
|
}
|
||
|
|
||
|
@test "/var/cache/distfiles/ is included" {
|
||
|
assert_tar_includes test/var/cache/distfiles/
|
||
|
}
|
||
|
|
||
|
@test "/usr/portage/Manifest is excluded" {
|
||
|
assert_tar_excludes test/usr/portage/Manifest
|
||
|
}
|
||
|
|
||
|
@test "/usr/portage/ is included" {
|
||
|
assert_tar_includes test/usr/portage/
|
||
|
}
|
||
|
|
||
|
# vim: ft=bash
|