aboutsummaryrefslogtreecommitdiff
path: root/tests/load
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-11 15:51:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-11 16:51:21 +0300
commit6a41864fdb57c75be3db87b357063b0c828dbc18 (patch)
treeb2f9a56555cd7b642529842013528c95072cd606 /tests/load
parent21033565488f6c63b4c40962cccfdc8b6ca32b2a (diff)
Add support for package project manifest value
Diffstat (limited to 'tests/load')
-rw-r--r--tests/load/1/math/libexp-+2-1.2+1.tar.gzbin351 -> 367 bytes
-rw-r--r--tests/load/1/math/packages.manifest5
-rw-r--r--tests/load/driver.cxx6
3 files changed, 7 insertions, 4 deletions
diff --git a/tests/load/1/math/libexp-+2-1.2+1.tar.gz b/tests/load/1/math/libexp-+2-1.2+1.tar.gz
index 084de3f..56f877e 100644
--- a/tests/load/1/math/libexp-+2-1.2+1.tar.gz
+++ b/tests/load/1/math/libexp-+2-1.2+1.tar.gz
Binary files differ
diff --git a/tests/load/1/math/packages.manifest b/tests/load/1/math/packages.manifest
index 9b39555..3ac5efd 100644
--- a/tests/load/1/math/packages.manifest
+++ b/tests/load/1/math/packages.manifest
@@ -3,9 +3,10 @@ sha256sum: b85ba3a0ba45b98e1fbb2507f199bc4b218a4a413ec6ba4094e214a7507490a2
:
name: libexp
version: +2-1.2+1
+project: mathLab
summary: The exponent
license: MIT
-tags: c++, exponent
+tags: mathlab, c++, exponent
description: The exponent math function.
url: http://www.exp.com
email: users@exp.com
@@ -15,7 +16,7 @@ depends: libpq >= 9.0.0
build-exclude: *; Only supported on Linux.
build-include: linux*
location: libexp-+2-1.2+1.tar.gz
-sha256sum: 040b3817418121e8e922ac3a6d3752378f78239faad7d257de87019557fdd245
+sha256sum: bc68940a1b3b7e345cbceac35d308b4e04b304f49ff2087340949f2879709967
:
name: libfoo
version: +0-X.Y
diff --git a/tests/load/driver.cxx b/tests/load/driver.cxx
index f6a4268..8e7c86e 100644
--- a/tests/load/driver.cxx
+++ b/tests/load/driver.cxx
@@ -196,6 +196,7 @@ main (int argc, char* argv[])
db.load<package> (
package_id (package_name ("libfoo"), version ("+0-X.Y"))));
+ assert (fpvxy->project == package_name ("libfoo"));
assert (fpvxy->summary == "The Foo Library");
assert (fpvxy->tags.empty ());
assert (!fpvxy->description);
@@ -662,8 +663,9 @@ main (int argc, char* argv[])
db.load<package> (
package_id (package_name ("libexp"), version ("+2-1.2+1"))));
+ assert (epv->project == "mathLab");
assert (epv->summary == "The exponent");
- assert (epv->tags == strings ({"c++", "exponent"}));
+ assert (epv->tags == strings ({"mathlab", "c++", "exponent"}));
assert (epv->description && *epv->description ==
"The exponent math function.");
assert (epv->url && *epv->url == "http://www.exp.com");
@@ -704,7 +706,7 @@ main (int argc, char* argv[])
assert (check_location (epv));
assert (epv->sha256sum && *epv->sha256sum ==
- "040b3817418121e8e922ac3a6d3752378f78239faad7d257de87019557fdd245");
+ "bc68940a1b3b7e345cbceac35d308b4e04b304f49ff2087340949f2879709967");
// Verify libpq package version.
//