Skip to contentSkip to conversation

copyright notices: Add many missing notices

PATCH New Ian Jackson 1 participant 5 messages Sep 13, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 copyright notices: Add many missing notices

---
 mg-adjust-flight-makexrefs          | 16 ++++++++++++++++
 mg-blockage                         | 16 ++++++++++++++++
 mg-branch-setup                     | 16 ++++++++++++++++
 mg-crontab-install                  | 16 ++++++++++++++++
 mg-debug-fail                       | 16 ++++++++++++++++
 mg-force-push                       | 16 ++++++++++++++++
 mg-hostalloc-starvation-demo        | 16 ++++++++++++++++
 mg-list-all-branches                | 16 ++++++++++++++++
 mg-report-host-usage-tuples         | 16 ++++++++++++++++
 mg-schema-test-database             | 18 +++++++++++++++++-
 ms-flights-summary                  | 16 ++++++++++++++++
 schema/drop-old-resource-log.sql    | 16 ++++++++++++++++
 schema/flights-started-index.sql    | 16 ++++++++++++++++
 schema/host-lifecycle.sql           | 16 ++++++++++++++++
 schema/initial.sql                  | 16 ++++++++++++++++
 schema/runvars-built-index.sql      | 16 ++++++++++++++++
 schema/runvars-host-index.sql       | 16 ++++++++++++++++
 schema/runvars-revision-index.sql   | 16 ++++++++++++++++
 schema/schema-updates.sql           | 16 ++++++++++++++++
 schema/steps-broken-index.sql       | 16 ++++++++++++++++
 schema/steps-job-index.sql          | 16 ++++++++++++++++
 schema/steps-logfile-add.sql        | 16 ++++++++++++++++
 schema/steps-logfile-constraint.sql | 16 ++++++++++++++++
 schema/testid-constraint.sql        | 16 ++++++++++++++++
 standalone                          | 16 ++++++++++++++++
 ts-repeat-test                      | 16 ++++++++++++++++
 ts-xen-build-rump                   | 16 ++++++++++++++++
 27 files changed, 433 insertions(+), 1 deletion(-)
mg-adjust-flight-makexrefs +16 -0
index e3716c4c..73f3ed4e 100755
@@ -23,6 +23,22 @@
 #             passing --debug in REF-CONDS too)
 #   -n      Dry run: do not actually run cs-adjust-flight
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 set -e -o posix
 
 exec 3>/dev/null
mg-blockage +16 -0
index dbec6df5..a61cba38 100755
@@ -2,6 +2,22 @@
 #
 # usage: ./mg-blockage <date-from> <date-to> <hostflag> [<extra-xinfo>]
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 use strict qw(vars refs);
 use DBI;
 use Data::Dumper;
mg-branch-setup +16 -0
index de61cc5d..ec48aee1 100755
@@ -15,6 +15,22 @@
 #  - create any input/output tree on xenbits
 #  - run any test flights (obviously)
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 set -e -o posix
 
 fail () { echo >&2 "$*"; exit 1; }
mg-crontab-install +16 -0
index 4df8e6e8..49184dfb 100755
@@ -4,6 +4,22 @@
 # where CRONTAB is a file containing a line
 #  #@@ USER@HOSTFQDN
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 set -e -o posix
 
 case "$#.$1" in
mg-debug-fail +16 -0
index 47ad68ab..89e98b30 100755
@@ -4,6 +4,22 @@
 # wanted.  It prints its arguments, and its stdin, to its stderr, and
 # then exits nonzero.
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 if tty >/dev/null 2>&1; then
 	exec </dev/null
 fi
mg-force-push +16 -0
index 9c3cc786..286c1442 100755
@@ -7,6 +7,22 @@
 #  valid for ap-fetch and ap-print-url
 #  the branch of flight FLIGHT
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 use strict;
 use warnings;
 
mg-hostalloc-starvation-demo +16 -0
index 7944cc24..f9441822 100755
@@ -1,5 +1,21 @@
 #!/usr/bin/perl -w
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 use strict;
 BEGIN { unshift @INC, qw(.); }
 
mg-list-all-branches +16 -0
index 989b5ae7..1a04f617 100755
@@ -2,6 +2,22 @@
 # prints on stdout a list of all the "branches"
 # mentioned in cr-daily-branch or crontab
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 use strict;
 use Sort::Versions;
 
mg-report-host-usage-tuples +16 -0
index 375da888..0837cdab 100755
@@ -1,5 +1,21 @@
 #!/usr/bin/python3
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 import re as regexp
 import sys
 import json
mg-schema-test-database +17 -1
index 357646bb..eae5d97e 100755
@@ -1,5 +1,21 @@
 #!/bin/bash
-#
+
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 # usages:
 #
 #
ms-flights-summary +16 -0
index 8293d4f6..a2507249 100755
@@ -1,5 +1,21 @@
 #!/usr/bin/perl -w
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 use strict qw(vars refs);
 
 BEGIN { unshift @INC, qw(.); }
schema/drop-old-resource-log.sql +16 -0
index 9494e1b9..f3dd9ce6 100644
@@ -4,5 +4,21 @@
 -- aborted attempt at resource logging.  Nothing actually reads or
 -- writes it.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 DROP TABLE resource_log;
 DROP SEQUENCE resource_log_evid_seq;
schema/flights-started-index.sql +16 -0
index c230d9d8..b26fc641 100644
@@ -3,5 +3,21 @@
 -- This index helps ts-hosts-allocate-Executive find recent instances
 -- of the same job.  It may be useful for other things too.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 CREATE INDEX flights_blessing_started_idx
     ON flights (blessing, started);
schema/host-lifecycle.sql +16 -0
index 7e4fc2aa..6a7b2546 100644
@@ -5,6 +5,22 @@
 -- reinitialised.  The information is persisted by being copied
 -- into a runvar for each job.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 CREATE SEQUENCE host_lifecycle_lcseq_seq
     NO CYCLE;
 
schema/initial.sql +16 -0
index 4feeeb20..f9d120ae 100644
@@ -2,6 +2,22 @@
 -- PostgreSQL database dump
 --
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 SET statement_timeout = 0;
 SET client_encoding = 'UTF8';
 SET standard_conforming_strings = off;
schema/runvars-built-index.sql +16 -0
index 128e69e9..8d1eadc9 100644
@@ -2,6 +2,22 @@
 --
 -- This index helps sg-report-flight find relevant flights.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 CREATE INDEX runvars_built_revision_idx
     ON runvars (val)
  WHERE name LIKE 'built\_revision\_%';
schema/runvars-host-index.sql +16 -0
index 6a3ef377..0760b219 100644
@@ -2,6 +2,22 @@
 --
 -- This index helps sg-report-host-history find relevant flights.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 CREATE INDEX runvars_host_idx
     ON runvars (val, flight)
  WHERE name ='host'
schema/runvars-revision-index.sql +16 -0
index 25306354..4224b644 100644
@@ -2,6 +2,22 @@
 --
 -- This index helps Executive::report__find_test find relevant flights.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 CREATE INDEX runvars_revision_idx
     ON runvars (val)
  WHERE name LIKE 'revision\_%';
schema/schema-updates.sql +16 -0
index cd8dc0ca..9b932a81 100644
@@ -1,5 +1,21 @@
 -- ##OSSTEST## 001 Harmless
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 CREATE TABLE schema_updates (
     updatename TEXT PRIMARY KEY,
     applytime integer NOT NULL
schema/steps-broken-index.sql +16 -0
index 770747cc..d2e18d73 100644
@@ -2,6 +2,22 @@
 --
 -- This index helps cs-bisection-flight check if flighss are broken.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 CREATE INDEX steps_broken_idx
     ON steps (flight)
  WHERE status='broken';
schema/steps-job-index.sql +16 -0
index 2c33af72..21a6cf20 100644
@@ -2,6 +2,22 @@
 --
 -- This index helps sg-report-flight find if a test ever passed.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 CREATE INDEX steps_job_testid_status_idx
     ON steps (job, testid, status);
 
schema/steps-logfile-add.sql +16 -0
index abc89b9e..8be5469e 100644
@@ -5,4 +5,20 @@
 --
 -- This change is compatible with old code.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 ALTER TABLE steps ADD COLUMN logfile TEXT;
schema/steps-logfile-constraint.sql +16 -0
index f6f8a744..3d8b556d 100644
@@ -3,6 +3,22 @@
 -- Previously, the logfile name was inferred from "stepno" and
 -- "testid".  Newer code will need it to be set explicitly.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 UPDATE steps
    SET logfile = stepno || '.' || step || '.log'
  WHERE logfile IS NULL;
schema/testid-constraint.sql +16 -0
index 541f26e6..d1c3421e 100644
@@ -5,6 +5,22 @@
 --
 -- The time_t value is Tue Jul  3 17:09:12 BST 2012, 5 years ago.
 
+-- This is part of "osstest", an automated testing framework for Xen.
+-- Copyright (C) 2009-2020 Citrix Inc.
+-- 
+-- This program is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU Affero General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+-- 
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-- GNU Affero General Public License for more details.
+-- 
+-- You should have received a copy of the GNU Affero General Public License
+-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 WITH cutoff AS
    (SELECT 1341331754)
 UPDATE steps
standalone +16 -0
index 4d1f3513..bc4e8ba8 100755
@@ -1,5 +1,21 @@
 #!/bin/bash
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 set -e -o posix
 
 usage() {
ts-repeat-test +16 -0
index 5e17c335..619c0359 100755
@@ -10,6 +10,22 @@
 # -          before script name means to ignore errors
 # \          at the start of any ARGSPEC is removed (after the checks above)
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 use strict;
 BEGIN { unshift @INC, qw(.); }
 use Osstest::TestSupport;
ts-xen-build-rump +16 -0
index 9ea595b9..8b31a44b 100755
@@ -1,6 +1,22 @@
 #!/bin/sh
 set -ex
 
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2020 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
 exec ./ts-xen-build "$@"						\
 	--disable-ovmf --disable-seabios --disable-blktap2		\
 	--disable-rombios --disable-qemu-traditional			\
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/5 mg-schema-update: improve an error message

---
 mg-schema-update | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mg-schema-update +1 -1
index f22ed63a..fb754bed 100755
@@ -268,5 +268,5 @@ die "need operation\n" unless @ARGV;
 my $subcmd= shift @ARGV;
 $subcmd =~ s/-/_/g;
 my $subcmdproc = ${*::}{"cmd_$subcmd"};
-die "unknown subcommand" unless $subcmdproc;
+die "unknown subcommand $subcmd" unless $subcmdproc;
 $subcmdproc->();
Signature · 1 line
2.20.1
#2 lore raw

PATCH 3/5 mg-schema-test-database: Fix an error message

In reply to Ian Jackson
---
 mg-schema-test-database | 1 +
 1 file changed, 1 insertion(+)
mg-schema-test-database +1 -0
index eae5d97e..052a3577 100755
@@ -283,6 +283,7 @@ create)
 	done
 
 	if [ "x$tasks" = x ]; then
+		arg='<based on username>'
 		moretasks error					\
 			"WHERE type = 'static'
 			   AND refkey = :'refkey'"		\
Signature · 1 line
2.20.1
#3 lore raw

PATCH 4/5 mg-schema-test-database: Add a missing backslash

In reply to Ian Jackson
---
 mg-schema-test-database | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mg-schema-test-database +1 -1
index 052a3577..b185e8b9 100755
@@ -285,7 +285,7 @@ create)
 	if [ "x$tasks" = x ]; then
 		arg='<based on username>'
 		moretasks error					\
-			"WHERE type = 'static'
+			"WHERE type = 'static'			\
 			   AND refkey = :'refkey'"		\
 			-v refkey="${username}@$(uname -n)"
 	fi
Signature · 1 line
2.20.1
#4 lore raw

PATCH 5/5 db: Replace ExecutiveDbOwningRoleRegexp with ExecutiveDbOwningRoleMap

In reply to Ian Jackson

And use SET ROLE.

---
 Osstest/Executive.pm    |  2 +-
 README                  | 17 ++++++++---
 mg-schema-test-database |  2 +-
 mg-schema-update        | 68 ++++++++++++++++++++++++++++++++---------
 4 files changed, 68 insertions(+), 21 deletions(-)
Osstest/Executive.pm +1 -1
index d95d848d..ec592ed5 100644
@@ -115,7 +115,7 @@ augmentconfigdefaults(
     QueuePlanUpdateInterval => 300, # seconds
     Repos => "$ENV{'HOME'}/repos",
     BisectionRevisonGraphSize => '600x300',
-    ExecutiveDbOwningRoleRegexp => 'osstest',
+    ExecutiveDbOwningRoleMap => '=',
     MaxUmask => '007',
 );
 
README +13 -4
index 20d9802a..aa611f23 100644
@@ -770,10 +770,19 @@ ExecutiveDbname_<DB>
    PostgreSQL dbname string for the database <DB>.  Default is to use
    ExecutiveDbnamePat.
 
-ExecutiveDbOwningRoleRegexp
-   Regexp which is supposed to match the database user used for schema
-   changes - because, that role will end up owning the database objects.
-   Defaults to `osstest'.
+ExecutiveDbOwningRoleMap
+   Adjust roles used for schema changes.  osstest uses the following
+   nominal roles
+      osstest        Main db runner, owns most tables, etc.
+      webflights     More privileged, can see webflights tokens
+   The syntaxes for ExecutiveDbOwningRoleMap are
+      =              use the built-in nominal role, literally (default)
+      -              always use the default role for the user
+      <NEW-ROLE>     always use NEW-ROLE for everything
+   or a list like this
+      <NOM-ROLE>=<NEW-ROLE>,...
+   where <NEW-ROLE> can be `-' (default user role); unspecified
+   roles are not mapped.
 
 Flights for by-hand testing
 ===========================
mg-schema-test-database +1 -1
index b185e8b9..33b644f5 100755
@@ -361,7 +361,7 @@ OwnerDaemonHost $ctrlhost
 QueueDaemonHost $ctrlhost
 OwnerDaemonPort ${ctrlports%,*}
 QueueDaemonPort ${ctrlports#*,}
-ExecutiveDbOwningRoleRegexp .*
+ExecutiveDbOwningRoleMap -
 QueueDaemonHoldoff 3
 QueueDaemonRetry 5
 Logs $PWD/logs
mg-schema-update +53 -15

104 lines not on this page · raw message

Signature · 1 line
2.20.1