From 6a41864fdb57c75be3db87b357063b0c828dbc18 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 11 Jul 2018 15:51:59 +0300 Subject: Add support for package project manifest value --- tests/load/1/math/libexp-+2-1.2+1.tar.gz | Bin 351 -> 367 bytes tests/load/1/math/packages.manifest | 5 +++-- tests/load/driver.cxx | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'tests') 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 Binary files a/tests/load/1/math/libexp-+2-1.2+1.tar.gz and b/tests/load/1/math/libexp-+2-1.2+1.tar.gz 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_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_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. // -- cgit v1.1