summaryrefslogtreecommitdiff
path: root/test/libremakepkg-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-10 22:31:02 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-04-11 13:02:28 -0400
commit9d90d48c9d01fa45d1a363fc01d0a1c2ffc9e790 (patch)
tree05bb9b11c18c21ce8182e8ff0936bda8a0714acd /test/libremakepkg-test.sh
parent2a10922b475d5a78e9bdaf8a52768c767404bea0 (diff)
test/: Tidy before()/after() definitions.
Diffstat (limited to 'test/libremakepkg-test.sh')
-rw-r--r--test/libremakepkg-test.sh19
1 files changed, 1 insertions, 18 deletions
diff --git a/test/libremakepkg-test.sh b/test/libremakepkg-test.sh
index 2e918ad..ef4ab6a 100644
--- a/test/libremakepkg-test.sh
+++ b/test/libremakepkg-test.sh
@@ -1,26 +1,9 @@
#!/usr/bin/env roundup
describe libremakepkg
-
. ./test-common.sh
-_setup_chrootdir
-
-before() {
- _before libremakepkg
-
- mkdir -p "$XDG_CONFIG_HOME"/libretools
-
- echo "BLACKLIST=https://git.parabola.nu/blacklist.git/plain/blacklist.txt" >"$XDG_CONFIG_HOME"/libretools/libretools.conf
-
- echo "CHROOTDIR='${chrootdir}'" > "$XDG_CONFIG_HOME"/libretools/chroot.conf
- echo "CHROOT='default'" >> "$XDG_CONFIG_HOME"/libretools/chroot.conf
- echo "CHROOTEXTRAPKG=()" >> "$XDG_CONFIG_HOME"/libretools/chroot.conf
-}
-
-after() {
- _after_sudo
-}
+setup_chrootdir
it_builds_a_trivial_package() {
require network sudo || return 0