aboutsummaryrefslogtreecommitdiff
path: root/tests/loader
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-12 17:25:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-16 16:41:50 +0200
commit96281a6c4f818311a6df90c0d8b8f537a61e1090 (patch)
treed0c0ccacda5ccfb94b98d018abb273b554eb2f77 /tests/loader
parente80ebd1c1a6fe7749c1565c4a9e2fccaa07d5d95 (diff)
Add url, email, summary, description members to the repository class
Diffstat (limited to 'tests/loader')
-rw-r--r--tests/loader/driver.cxx5
-rw-r--r--tests/loader/external/1/basics/repositories1
-rw-r--r--tests/loader/external/1/misc/repositories1
-rw-r--r--tests/loader/external/1/staging/repositories1
-rw-r--r--tests/loader/external/1/testing/repositories1
5 files changed, 9 insertions, 0 deletions
diff --git a/tests/loader/driver.cxx b/tests/loader/driver.cxx
index 881a2db..f996ab7 100644
--- a/tests/loader/driver.cxx
+++ b/tests/loader/driver.cxx
@@ -117,6 +117,7 @@ main (int argc, char* argv[])
assert (sr->location.string () ==
"http://pkg.cppget.org/internal/1/stable");
assert (sr->display_name == "stable");
+ assert (!sr->url);
dir_path srp (cp.directory () / dir_path ("internal/1/stable"));
assert (sr->local_path == srp.normalize ());
@@ -281,6 +282,7 @@ main (int argc, char* argv[])
assert (mr->location.string () ==
"http://pkg.cppget.org/internal/1/math");
assert (mr->display_name == "math");
+ assert (!mr->url);
dir_path mrp (cp.directory () / dir_path ("internal/1/math"));
assert (mr->local_path == mrp.normalize ());
@@ -477,6 +479,7 @@ main (int argc, char* argv[])
assert (cr->location.string () ==
"http://pkg.cppget.org/external/1/misc");
assert (cr->display_name.empty ());
+ assert (cr->url && *cr->url == "http://misc.cppget.org");
dir_path crp (cp.directory () / dir_path ("external/1/misc"));
assert (cr->local_path == crp.normalize ());
@@ -531,6 +534,7 @@ main (int argc, char* argv[])
assert (tr->location.string () ==
"http://pkg.cppget.org/external/1/testing");
assert (tr->display_name.empty ());
+ assert (tr->url && *tr->url == "http://test.cppget.org");
dir_path trp (cp.directory () / dir_path ("external/1/testing"));
assert (tr->local_path == trp.normalize ());
@@ -563,6 +567,7 @@ main (int argc, char* argv[])
assert (gr->location.string () ==
"http://pkg.cppget.org/external/1/staging");
assert (gr->display_name.empty ());
+ assert (gr->url && *gr->url == "http://stage.cppget.org");
dir_path grp (cp.directory () / dir_path ("external/1/staging"));
assert (gr->local_path == grp.normalize ());
diff --git a/tests/loader/external/1/basics/repositories b/tests/loader/external/1/basics/repositories
index 9a15f2b..57a1c7a 100644
--- a/tests/loader/external/1/basics/repositories
+++ b/tests/loader/external/1/basics/repositories
@@ -1,3 +1,4 @@
: 1
# Local repository manifest (this repository).
#
+url: http://basics.org
diff --git a/tests/loader/external/1/misc/repositories b/tests/loader/external/1/misc/repositories
index 93acdb3..1b98ebc 100644
--- a/tests/loader/external/1/misc/repositories
+++ b/tests/loader/external/1/misc/repositories
@@ -10,3 +10,4 @@ role: complement
:
# Local repository manifest (this repository).
#
+url: http://misc.cppget.org
diff --git a/tests/loader/external/1/staging/repositories b/tests/loader/external/1/staging/repositories
index 9a15f2b..8443ab8 100644
--- a/tests/loader/external/1/staging/repositories
+++ b/tests/loader/external/1/staging/repositories
@@ -1,3 +1,4 @@
: 1
# Local repository manifest (this repository).
#
+url: http://stage.cppget.org
diff --git a/tests/loader/external/1/testing/repositories b/tests/loader/external/1/testing/repositories
index 5f7246c..227d5ac 100644
--- a/tests/loader/external/1/testing/repositories
+++ b/tests/loader/external/1/testing/repositories
@@ -6,3 +6,4 @@ role: complement
:
# Local repository manifest (this repository).
#
+url: http://test.cppget.org