diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-02-09 20:42:54 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-02-09 20:42:54 -0500 |
commit | 696c05516039b7b93381811451d393b16a8653d1 (patch) | |
tree | 2c91eeb9ec8402c3e438e309a0f6bf41c661d265 /test/libremakepkg-test.sh | |
parent | 5065c3b8cda743decc6d1c8bf963640a7ed49018 (diff) |
add a test for the last commit (enabling networking during prepare())v20140210
Diffstat (limited to 'test/libremakepkg-test.sh')
-rw-r--r-- | test/libremakepkg-test.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libremakepkg-test.sh b/test/libremakepkg-test.sh index 811c8ed..4d8a7c5 100644 --- a/test/libremakepkg-test.sh +++ b/test/libremakepkg-test.sh @@ -33,6 +33,15 @@ it_builds_a_trivial_package() { [[ -f $(echo libretools-hello-1.0-1-any.pkg.tar.?z) ]] } +it_enables_networking_during_prepare() { + require network sudo || return 0 + cp libremakepkg.d/PKGBUILD-netprepare "$tmpdir/PKGBUILD" + cd "$tmpdir" + + libremessages msg 'Creating a chroot, may take a few minutes' &>/dev/tty + testsudo libremakepkg -l "$roundup_test_name" + [[ -f $(echo libretools-netprepare-1.0-1-any.pkg.tar.?z) ]] +} it_disables_networking_during_build() { require network sudo || return 0 |