aboutsummaryrefslogtreecommitdiff
path: root/tests/loader
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-16 12:08:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-16 16:42:40 +0200
commit6eca8a647c79e9a5b100672b55f5d02273a28772 (patch)
tree5361b9007cace2dfdf95c55b009abdcaab1ad60e /tests/loader
parentba283a252267e0365408db3d6b7cf410edccac1b (diff)
Implement 'about' web page
Diffstat (limited to 'tests/loader')
-rw-r--r--tests/loader/driver.cxx20
-rw-r--r--tests/loader/internal/1/math/repositories6
-rw-r--r--tests/loader/internal/1/stable/repositories3
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/loader/driver.cxx b/tests/loader/driver.cxx
index cf81dca..0d361ab 100644
--- a/tests/loader/driver.cxx
+++ b/tests/loader/driver.cxx
@@ -118,6 +118,12 @@ main (int argc, char* argv[])
"http://pkg.cppget.org/internal/1/stable");
assert (sr->display_name == "stable");
assert (!sr->url);
+ assert (sr->email && *sr->email == "repoman@cppget.org");
+ assert (sr->summary &&
+ *sr->summary == "General C++ package stable repository");
+ assert (sr->description && *sr->description ==
+ "This is the awesome C++ package repository full of exciting "
+ "stuff.");
dir_path srp (cp.directory () / dir_path ("internal/1/stable"));
assert (sr->local_path == srp.normalize ());
@@ -283,6 +289,11 @@ main (int argc, char* argv[])
"http://pkg.cppget.org/internal/1/math");
assert (mr->display_name == "math");
assert (!mr->url);
+ assert (mr->email && *mr->email == "repoman@cppget.org");
+ assert (mr->summary && *mr->summary == "Math C++ package repository");
+ assert (mr->description && *mr->description ==
+ "This is the awesome C++ package repository full of remarkable "
+ "algorithms and\nAPIs.");
dir_path mrp (cp.directory () / dir_path ("internal/1/math"));
assert (mr->local_path == mrp.normalize ());
@@ -480,6 +491,9 @@ main (int argc, char* argv[])
"http://pkg.cppget.org/external/1/misc");
assert (cr->display_name.empty ());
assert (cr->url && *cr->url == "http://misc.cppget.org/");
+ assert (!cr->email);
+ assert (!cr->summary);
+ assert (!cr->description);
dir_path crp (cp.directory () / dir_path ("external/1/misc"));
assert (cr->local_path == crp.normalize ());
@@ -535,6 +549,9 @@ main (int argc, char* argv[])
"http://pkg.cppget.org/external/1/testing");
assert (tr->display_name.empty ());
assert (tr->url && *tr->url == "http://test.cppget.org/hello/");
+ assert (!tr->email);
+ assert (!tr->summary);
+ assert (!tr->description);
dir_path trp (cp.directory () / dir_path ("external/1/testing"));
assert (tr->local_path == trp.normalize ());
@@ -568,6 +585,9 @@ main (int argc, char* argv[])
"http://pkg.cppget.org/external/1/staging");
assert (gr->display_name.empty ());
assert (gr->url && *gr->url == "http://stage.cppget.org/");
+ assert (!gr->email);
+ assert (!gr->summary);
+ assert (!gr->description);
dir_path grp (cp.directory () / dir_path ("external/1/staging"));
assert (gr->local_path == grp.normalize ());
diff --git a/tests/loader/internal/1/math/repositories b/tests/loader/internal/1/math/repositories
index 814d1db..c2df027 100644
--- a/tests/loader/internal/1/math/repositories
+++ b/tests/loader/internal/1/math/repositories
@@ -5,3 +5,9 @@ location: ../../../external/1/misc
:
# Local repository manifest (this repository).
#
+email: repoman@cppget.org
+summary: Math C++ package repository
+description: \
+This is the awesome C++ package repository full of remarkable algorithms and
+APIs.
+\
diff --git a/tests/loader/internal/1/stable/repositories b/tests/loader/internal/1/stable/repositories
index 38fdd72..c06f731 100644
--- a/tests/loader/internal/1/stable/repositories
+++ b/tests/loader/internal/1/stable/repositories
@@ -9,3 +9,6 @@ location: ../math
:
# Local repository manifest (this repository).
#
+email: repoman@cppget.org
+summary: General C++ package stable repository
+description: This is the awesome C++ package repository full of exciting stuff.