aboutsummaryrefslogtreecommitdiff
path: root/libbrep
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-02-01 14:13:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-02-01 14:16:01 +0300
commitcdbd2f8b36b555cb56b510fccf29fb5a12d66f80 (patch)
tree89b3860cc9e6ac562832e231a1d107a2ab23e2ab /libbrep
parentccb8a1c22726d15da6f823785e9f9afef751811f (diff)
Add support for enable clause in tests package manifest value
Diffstat (limited to 'libbrep')
-rw-r--r--libbrep/build-extra.sql1
-rw-r--r--libbrep/build-package.hxx1
-rw-r--r--libbrep/build.hxx2
-rw-r--r--libbrep/build.xml2
-rw-r--r--libbrep/package.hxx5
-rw-r--r--libbrep/package.xml6
6 files changed, 15 insertions, 2 deletions
diff --git a/libbrep/build-extra.sql b/libbrep/build-extra.sql
index 9ffbac1..23015f4 100644
--- a/libbrep/build-extra.sql
+++ b/libbrep/build-extra.sql
@@ -147,6 +147,7 @@ CREATE FOREIGN TABLE build_package_tests (
test_package_version_revision INTEGER NULL,
test_type TEXT NOT NULL,
test_buildtime BOOLEAN NOT NULL,
+ test_enable TEXT NULL,
test_reflect TEXT NULL)
SERVER package_server OPTIONS (table_name 'package_tests');
diff --git a/libbrep/build-package.hxx b/libbrep/build-package.hxx
index 94ffb08..6d7fb14 100644
--- a/libbrep/build-package.hxx
+++ b/libbrep/build-package.hxx
@@ -98,6 +98,7 @@ namespace brep
{
test_dependency_type type;
bool buildtime;
+ optional<string> enable;
optional<string> reflect;
};
diff --git a/libbrep/build.hxx b/libbrep/build.hxx
index b64b28a..adad535 100644
--- a/libbrep/build.hxx
+++ b/libbrep/build.hxx
@@ -28,7 +28,7 @@
//
#define LIBBREP_BUILD_SCHEMA_VERSION_BASE 20
-#pragma db model version(LIBBREP_BUILD_SCHEMA_VERSION_BASE, 22, closed)
+#pragma db model version(LIBBREP_BUILD_SCHEMA_VERSION_BASE, 23, closed)
// We have to keep these mappings at the global scope instead of inside the
// brep namespace because they need to be also effective in the bbot namespace
diff --git a/libbrep/build.xml b/libbrep/build.xml
index 2ac0002..0a25488 100644
--- a/libbrep/build.xml
+++ b/libbrep/build.xml
@@ -1,4 +1,6 @@
<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="pgsql" schema-name="build" version="1">
+ <changeset version="23"/>
+
<changeset version="22"/>
<changeset version="21"/>
diff --git a/libbrep/package.hxx b/libbrep/package.hxx
index e189339..06e6335 100644
--- a/libbrep/package.hxx
+++ b/libbrep/package.hxx
@@ -20,7 +20,7 @@
//
#define LIBBREP_PACKAGE_SCHEMA_VERSION_BASE 27
-#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 28, closed)
+#pragma db model version(LIBBREP_PACKAGE_SCHEMA_VERSION_BASE, 29, closed)
namespace brep
{
@@ -198,6 +198,7 @@ namespace brep
{
test_dependency_type type;
bool buildtime;
+ optional<string> enable;
optional<string> reflect;
test_dependency () = default;
@@ -205,10 +206,12 @@ namespace brep
test_dependency_type t,
bool b,
optional<version_constraint> c,
+ optional<string> e,
optional<string> r)
: dependency {move (n), move (c), nullptr /* package */},
type (t),
buildtime (b),
+ enable (move (e)),
reflect (move (r))
{
}
diff --git a/libbrep/package.xml b/libbrep/package.xml
index 073fbb6..bf7915e 100644
--- a/libbrep/package.xml
+++ b/libbrep/package.xml
@@ -1,4 +1,10 @@
<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="pgsql" schema-name="package" version="1">
+ <changeset version="29">
+ <alter-table name="package_tests">
+ <add-column name="test_enable" type="TEXT" null="true"/>
+ </alter-table>
+ </changeset>
+
<changeset version="28">
<alter-table name="package_build_configs">
<add-column name="config_email" type="TEXT" null="true"/>