aboutsummaryrefslogtreecommitdiff
path: root/tests/loader/driver.cxx
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/driver.cxx
parente80ebd1c1a6fe7749c1565c4a9e2fccaa07d5d95 (diff)
Add url, email, summary, description members to the repository class
Diffstat (limited to 'tests/loader/driver.cxx')
-rw-r--r--tests/loader/driver.cxx5
1 files changed, 5 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 ());