diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-10 09:30:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-10 09:30:37 +0200 |
commit | ec931aa6550b47461e92062a703e6ef9f4c24b17 (patch) | |
tree | 711af30ebf02f7484dcc931d6b50fc148cd72983 /bpkg/test.sh | |
parent | 4e3faacbc3c27e1d01ca95697b34db82cdecdb9d (diff) |
Implement --replace|-r mode for pkg-unpack; improve in pkg-fetch
Diffstat (limited to 'bpkg/test.sh')
-rwxr-xr-x | bpkg/test.sh | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/bpkg/test.sh b/bpkg/test.sh index f787baa..4a99347 100755 --- a/bpkg/test.sh +++ b/bpkg/test.sh @@ -212,9 +212,11 @@ test pkg-purge libfoo test pkg-fetch -e ../tests/repository/1/fetch/t1/libfoo-1.0.0.tar.gz stat libfoo/1.0.0 fetched test pkg-unpack libfoo -fail pkg-fetch -r libfoo/1.0.0 -fail pkg-fetch -r -e ../tests/repository/1/fetch/t1/libfoo-1.0.0.tar.gz -test pkg-purge -k libfoo +test pkg-fetch -r libfoo/1.1.0 +stat libfoo/1.1.0 fetched +test pkg-unpack libfoo +test pkg-fetch -r -e ../tests/repository/1/fetch/t1/libfoo-1.0.0.tar.gz +stat libfoo/1.0.0 fetched test pkg-fetch -r libfoo/1.1.0 stat libfoo/1.1.0 fetched test pkg-fetch -r -e ../tests/repository/1/fetch/t1/libfoo-1.0.0.tar.gz @@ -231,6 +233,7 @@ test pkg-fetch libhello/1.0.0 test pkg-unpack libhello test pkg-purge libhello + ## @@ ## ## @@ -246,6 +249,29 @@ stat fetched test pkg-purge $pkg stat unknown +## +## pkg-unpack +## + +# @@ TODO + +# replace +# +test cfg-create --wipe +test rep-add ../tests/repository/1/fetch/t1 +test rep-fetch +test pkg-fetch libfoo/1.0.0 +fail pkg-unpack -e ../tests/repository/1/fetch/libfoo-1.1.0 +test pkg-unpack -r -e ../tests/repository/1/fetch/libfoo-1.1.0 +stat libfoo/1.1.0 unpacked +test pkg-purge libfoo +test pkg-fetch libfoo/1.0.0 +test pkg-unpack libfoo +fail pkg-unpack -e ../tests/repository/1/fetch/libfoo-1.1.0 +test pkg-unpack -r -e ../tests/repository/1/fetch/libfoo-1.1.0 +stat libfoo/1.1.0 unpacked +test pkg-purge libfoo + ## ## pkg-purge |