aboutsummaryrefslogtreecommitdiff
path: root/bpkg/test.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-08 12:47:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-08 12:47:12 +0200
commit9c8ab2b8902e65fb3538e1f93c3b53f92901b0d2 (patch)
tree693f684271ccc3088a94095747794ea47b22f459 /bpkg/test.sh
parent3f348ad66e9836e32e11086fa9b22a92d094d6a8 (diff)
More dependency satisfaction tests and minor fixes
Diffstat (limited to 'bpkg/test.sh')
-rwxr-xr-xbpkg/test.sh23
1 files changed, 19 insertions, 4 deletions
diff --git a/bpkg/test.sh b/bpkg/test.sh
index 815fc89..e882535 100755
--- a/bpkg/test.sh
+++ b/bpkg/test.sh
@@ -91,8 +91,6 @@ function gone ()
fi
}
-if false; then
-
##
## rep-create
##
@@ -613,8 +611,6 @@ test pkg-purge $pkg
## High-level commands.
##
-fi
-
##
## build
##
@@ -671,6 +667,9 @@ test pkg-purge libfoo
#
test rep-create ../tests/repository/1/satisfy/t2
test cfg-create --wipe
+
+fail build ../tests/repository/1/satisfy/libbar-1.0.0.tar.gz
+
test rep-add ../tests/repository/1/satisfy/t2
test rep-fetch
@@ -875,3 +874,19 @@ build libbar 1.1.0
build libbaz 1.1.0
EOF
test pkg-purge libfoo
+
+# dependent prevents upgrade/downgrade
+#
+test pkg-fetch libfoo 1.1.0
+test pkg-unpack libfoo
+test pkg-configure libfoo
+test pkg-fetch libbar 1.1.0
+test pkg-unpack libbar
+test pkg-configure libbar
+fail build -p ../tests/repository/1/satisfy/libfoo-1.2.0.tar.gz
+fail build -p libfoo/1.0.0
+test build -p libfoo/1.1.0 <<< "build libfoo 1.1.0"
+test pkg-disfigure libbar
+test pkg-disfigure libfoo
+test pkg-purge libbar
+test pkg-purge libfoo