summaryrefslogtreecommitdiff
path: root/test/libremakepkg-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-01-05 15:20:17 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-01-05 15:20:17 -0500
commit54338bc4e01e29603e9ca15a9622b66aa8c84422 (patch)
tree08772bd5e7a1d0a4031b974462564f82c33f65ee /test/libremakepkg-test.sh
parent53f09df2ff4810a6f5efe44f2fef1bea30b784c6 (diff)
test to make sure local repo packages aren't cached (issue #435)
Diffstat (limited to 'test/libremakepkg-test.sh')
-rw-r--r--test/libremakepkg-test.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libremakepkg-test.sh b/test/libremakepkg-test.sh
index 4e613a2..ddccab0 100644
--- a/test/libremakepkg-test.sh
+++ b/test/libremakepkg-test.sh
@@ -85,11 +85,18 @@ it_cleans_the_chroot_before_building() {
cp libremakepkg.d/PKGBUILD-hello "$tmpdir/3/PKGBUILD"
libremessages msg 'Creating a chroot, may take a few minutes' &>/dev/tty
+
cd "$tmpdir/1"
testsudo libremakepkg -l "$roundup_test_name" &> "$tmpdir/out" || { r=$?; tail "$tmpdir/out"|cat -v; return $r; }
+
cd "$tmpdir/2"
testsudo libremakepkg -l "$roundup_test_name" &> "$tmpdir/out" || { r=$?; tail "$tmpdir/out"|cat -v; return $r; }
testsudo librechroot -l "$roundup_test_name" run libretools-testpkg1 'first time, pass'
+
+ # This next line is actually a separate test, but it fits in well with this test, and chroot tests are slow..
+ # it_doesnt_cache_local_packages() {
+ not testsudo librechroot -l "$roundup_test_name" run test -e /var/cache/pacman/pkg/libretools-testpkg1-1.0-1-any.pkg.tar.?z
+
cd "$tmpdir/3"
testsudo libremakepkg -l "$roundup_test_name" &> "$tmpdir/out" || { r=$?; tail "$tmpdir/out"|cat -v; return $r; }
not testsudo librechroot -l "$roundup_test_name" run libretools-testpkg1 'second time, fail'