aboutsummaryrefslogtreecommitdiff
path: root/bpkg/test.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-25 07:12:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-25 07:12:49 +0200
commit0143c3ff25a753df6f73d6319f7fb4a62a4d53c6 (patch)
tree82e8e799b6479cd17d646955e7b469f56b2117e4 /bpkg/test.sh
parent287c71ddc00f0db1436d557042b69c03dc448b13 (diff)
Implement rep-info command
Diffstat (limited to 'bpkg/test.sh')
-rwxr-xr-xbpkg/test.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/bpkg/test.sh b/bpkg/test.sh
index 75555f8..d1ab6f2 100755
--- a/bpkg/test.sh
+++ b/bpkg/test.sh
@@ -23,7 +23,7 @@ function test ()
local cmd=$1; shift
local ops=
- if [ "$cmd" != "rep-create" ]; then
+ if [ "$cmd" != "rep-create" -a "$cmd" != "rep-info" ]; then
ops="-d $cfg"
fi
@@ -39,7 +39,7 @@ function fail ()
local cmd=$1; shift
local ops=
- if [ "$cmd" != "rep-create" ]; then
+ if [ "$cmd" != "rep-create" -a "$cmd" != "rep-info" ]; then
ops="-d $cfg"
fi
@@ -86,6 +86,16 @@ test rep-create ../tests/repository/1/math/testing
test rep-create ../tests/repository/1/math/unstable
##
+## rep-info
+##
+
+fail rep-info # repository location expected
+
+test rep-info ../tests/repository/1/misc/testing
+test rep-info -m ../tests/repository/1/math/unstable
+test rep-info http://pkg.cppget.org/1/hello
+
+##
## cfg-create
##