diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-21 09:28:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-21 09:28:52 +0200 |
commit | 6fed384f9bdc86fa9bb13d87753d14a886f4f87e (patch) | |
tree | 67c10caec6871102551c74956dd9346fa80f234d /tests | |
parent | 108c54f8ae62453a76d05e31ad477efd3559e65a (diff) |
Add support for held packages, package versions
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test.sh | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/test.sh b/tests/test.sh index 08ba9d7..c6c8a79 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -1078,3 +1078,54 @@ test build -p libbaz libfoo/1.0.0 <<EOF build libfoo 1.0.0 build libbaz 1.1.0 EOF + +# hold +# +test cfg-create --wipe +test build -y repository/1/satisfy/libfoo-1.0.0.tar.gz +stat libfoo "configured 1.0.0 hold_package hold_version" +test build -y repository/1/satisfy/libfoo-1.1.0 +stat libfoo "configured 1.1.0 hold_package hold_version" + +test cfg-create --wipe +test rep-add $rep/satisfy/t4c +test rep-fetch +test build -y libfoo +stat libfoo "configured 1.0.0 hold_package" +test build -y libfoo/1.0.0 +stat libfoo "configured 1.0.0 hold_package hold_version" + +test cfg-create --wipe +test rep-add $rep/satisfy/t4c +test rep-fetch +test build -y libfoo/1.0.0 +stat libfoo "configured 1.0.0 hold_package hold_version" + +test cfg-create --wipe +test pkg-fetch -e repository/1/satisfy/libfoo-1.0.0.tar.gz +test pkg-unpack libfoo +test pkg-configure libfoo +stat libfoo "configured 1.0.0" +test build -y libfoo +stat libfoo "configured 1.0.0 hold_package" + +test cfg-create --wipe +test rep-add $rep/satisfy/t4c +test rep-fetch +test build -y libfoo +stat libfoo "configured 1.0.0 hold_package" +test build -y libbaz +stat libfoo "configured 1.1.0 hold_package" + +test cfg-create --wipe +test rep-add $rep/satisfy/t4c +test rep-fetch +test build -y libfoo/1.0.0 +stat libfoo "configured 1.0.0 hold_package hold_version" +fail build -y libbaz + +test cfg-create --wipe +test rep-add $rep/satisfy/t4c +test rep-fetch +test build -y libbaz +stat libfoo "configured 1.1.0" |