From 54338bc4e01e29603e9ca15a9622b66aa8c84422 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 5 Jan 2015 15:20:17 -0500 Subject: test to make sure local repo packages aren't cached (issue #435) --- test/libremakepkg-test.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/libremakepkg-test.sh') 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' -- cgit v1.2.3