copyright notices: Add many missing notices
PATCH 1/5 copyright notices: Add many missing notices
Signed-off-by Ian Jackson <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 2/5 mg-schema-update: improve an error message
Signed-off-by Ian Jackson <[email protected]>
--- mg-schema-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mg-schema-update +1 -1
@@ -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
PATCH 3/5 mg-schema-test-database: Fix an error message
In reply to Ian JacksonSigned-off-by Ian Jackson <[email protected]>
--- mg-schema-test-database | 1 + 1 file changed, 1 insertion(+)
mg-schema-test-database +1 -0
@@ -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
PATCH 4/5 mg-schema-test-database: Add a missing backslash
In reply to Ian JacksonSigned-off-by Ian Jackson <[email protected]>
--- mg-schema-test-database | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mg-schema-test-database +1 -1
@@ -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
PATCH 5/5 db: Replace ExecutiveDbOwningRoleRegexp with ExecutiveDbOwningRoleMap
In reply to Ian JacksonAnd use SET ROLE.
Signed-off-by Ian Jackson <[email protected]>
--- 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
@@ -115,7 +115,7 @@ augmentconfigdefaults( QueuePlanUpdateInterval => 300, # seconds Repos => "$ENV{'HOME'}/repos", BisectionRevisonGraphSize => '600x300', - ExecutiveDbOwningRoleRegexp => 'osstest', + ExecutiveDbOwningRoleMap => '=', MaxUmask => '007', );
README +13 -4
@@ -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
@@ -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