diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-21 18:08:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-21 18:08:39 +0200 |
commit | 221f0250fcd7cba4fa4b5e4fd6c0d410eb6e5811 (patch) | |
tree | 3ea5eca558f612fcc9b27db2778d4bfa47e38556 /bpkg/test.sh | |
parent | 9792fc9d137b4dd702360ac0242f9a7a26e675c2 (diff) |
Implement rep-add command
Diffstat (limited to 'bpkg/test.sh')
-rwxr-xr-x | bpkg/test.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bpkg/test.sh b/bpkg/test.sh index 3ab76df..e25d2bb 100755 --- a/bpkg/test.sh +++ b/bpkg/test.sh @@ -71,9 +71,34 @@ test cfg-create --wipe config.cxx=g++-4.9 cxx config.install.root=/tmp/install stat unknown ## +## rep-add +## + +fail rep-add # repository location expected +fail rep-add stable # invalid location +fail rep-add http:// # invalid location + +# relative path +# +test rep-add ./1/math/stable +fail rep-add ./1/../1/math/stable # duplicate + +# absolute path +# +test rep-add /tmp/1/misc/stable +fail rep-add /tmp/1/../1/misc/stable # duplicate + +# remote URL +# +test rep-add http://pkg.example.org/1/testing +fail rep-add http://www.example.org/1/testing # duplicate + + +## ## pkg-fetch ## + # fetch existing archive # stat unknown |