summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--report-generators/lib/log.rb10
-rw-r--r--report-generators/lib/report_templates.rb10
-rw-r--r--report-generators/lib/reports.rb10
-rw-r--r--report-generators/lib/schedule_file.rb10
-rw-r--r--report-generators/lib/string-store.rb10
-rw-r--r--report-generators/memcheck.rb10
-rw-r--r--report-generators/test/tc_log.rb10
-rw-r--r--report-generators/test/tc_schedule_file.rb10
-rw-r--r--report-generators/test/tc_string_store.rb10
-rw-r--r--report-generators/test/ts.rb10
-rw-r--r--report-generators/title_page.rb10
-rw-r--r--report-generators/unit_test.rb10
-rw-r--r--test/check.sh10
-rw-r--r--test/harness.c14
-rw-r--r--test/harness.sh10
-rw-r--r--test/not.c14
-rw-r--r--test/t-activate-missing.sh10
-rw-r--r--test/t-activate-partial.sh12
-rw-r--r--test/t-lvconvert-mirror-basic-0.sh10
-rw-r--r--test/t-lvconvert-mirror-basic-1.sh10
-rw-r--r--test/t-lvconvert-mirror-basic-2.sh10
-rw-r--r--test/t-lvconvert-mirror-basic-3.sh10
-rw-r--r--test/t-lvconvert-mirror-basic.sh10
-rw-r--r--test/t-nomda-missing.sh10
-rw-r--r--test/t-snapshots-of-mirrors.sh10
-rw-r--r--test/t-vgsplit-stacked.sh10
-rw-r--r--unit-tests/datastruct/bitset_t.c14
27 files changed, 283 insertions, 1 deletions
diff --git a/report-generators/lib/log.rb b/report-generators/lib/log.rb
index c98b18395..c71d87719 100644
--- a/report-generators/lib/log.rb
+++ b/report-generators/lib/log.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# Merely wraps the logger library with a bit of standard policy.
require 'logger'
diff --git a/report-generators/lib/report_templates.rb b/report-generators/lib/report_templates.rb
index 83e3acbf0..4c0bc78f6 100644
--- a/report-generators/lib/report_templates.rb
+++ b/report-generators/lib/report_templates.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# Policy for the location of report templates
require 'string-store'
diff --git a/report-generators/lib/reports.rb b/report-generators/lib/reports.rb
index 573333243..c61bb206a 100644
--- a/report-generators/lib/reports.rb
+++ b/report-generators/lib/reports.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# Data about the various reports we support
require 'log'
require 'pathname'
diff --git a/report-generators/lib/schedule_file.rb b/report-generators/lib/schedule_file.rb
index 1e164f450..6a339bcba 100644
--- a/report-generators/lib/schedule_file.rb
+++ b/report-generators/lib/schedule_file.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# Parses the simple colon delimited test schedule files.
ScheduledTest = Struct.new(:desc, :command_line, :status, :output)
diff --git a/report-generators/lib/string-store.rb b/report-generators/lib/string-store.rb
index 36d819a95..b3b8cc95a 100644
--- a/report-generators/lib/string-store.rb
+++ b/report-generators/lib/string-store.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# Provides a simple way of accessing the contents of files by a symbol
# name. Useful for erb templates.
diff --git a/report-generators/memcheck.rb b/report-generators/memcheck.rb
index fcc8927e7..e616bc835 100644
--- a/report-generators/memcheck.rb
+++ b/report-generators/memcheck.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# Reads the schedule files given on the command line. Runs them and
# generates the reports.
diff --git a/report-generators/test/tc_log.rb b/report-generators/test/tc_log.rb
index a7e9023c2..96ce7c0f5 100644
--- a/report-generators/test/tc_log.rb
+++ b/report-generators/test/tc_log.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
require 'test/unit'
require 'stringio'
require 'log'
diff --git a/report-generators/test/tc_schedule_file.rb b/report-generators/test/tc_schedule_file.rb
index ec4bc3ea4..70aefdd8a 100644
--- a/report-generators/test/tc_schedule_file.rb
+++ b/report-generators/test/tc_schedule_file.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
require 'test/unit'
require 'pathname'
require 'schedule_file'
diff --git a/report-generators/test/tc_string_store.rb b/report-generators/test/tc_string_store.rb
index 5ff89dd8a..05c6719de 100644
--- a/report-generators/test/tc_string_store.rb
+++ b/report-generators/test/tc_string_store.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
require 'string-store'
require 'test/unit'
diff --git a/report-generators/test/ts.rb b/report-generators/test/ts.rb
index 0a8cc9102..4e99e689c 100644
--- a/report-generators/test/ts.rb
+++ b/report-generators/test/ts.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
require 'tc_log'
require 'tc_string_store'
require 'tc_schedule_file'
diff --git a/report-generators/title_page.rb b/report-generators/title_page.rb
index f6873eb17..1c1cd1dbd 100644
--- a/report-generators/title_page.rb
+++ b/report-generators/title_page.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# This generates the index for the reports, including generation
# times.
diff --git a/report-generators/unit_test.rb b/report-generators/unit_test.rb
index ebc378550..1e590bcc2 100644
--- a/report-generators/unit_test.rb
+++ b/report-generators/unit_test.rb
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# Reads the schedule files given on the command line. Runs them and
# generates the reports.
diff --git a/test/check.sh b/test/check.sh
index f87f751d2..843ce8633 100644
--- a/test/check.sh
+++ b/test/check.sh
@@ -1,5 +1,15 @@
#!/bin/bash
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# check.sh: assert various things about volumes
# USAGE
diff --git a/test/harness.c b/test/harness.c
index cbf7ed3b1..2f924f634 100644
--- a/test/harness.c
+++ b/test/harness.c
@@ -1,3 +1,17 @@
+/*
+ * Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+ *
+ * This file is part of LVM2.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU General Public License v.2.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
diff --git a/test/harness.sh b/test/harness.sh
index 1a0c775ad..b4bdd6922 100644
--- a/test/harness.sh
+++ b/test/harness.sh
@@ -1,5 +1,15 @@
#!/bin/sh
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
tests="$@"
test -z "$tests" && tests=`echo t-*.sh`
diff --git a/test/not.c b/test/not.c
index 6b17e5916..534a35600 100644
--- a/test/not.c
+++ b/test/not.c
@@ -1,3 +1,17 @@
+/*
+ * Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+ *
+ * This file is part of LVM2.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU General Public License v.2.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
diff --git a/test/t-activate-missing.sh b/test/t-activate-missing.sh
index 86fb09ced..4242f2170 100644
--- a/test/t-activate-missing.sh
+++ b/test/t-activate-missing.sh
@@ -1,5 +1,15 @@
#!/bin/bash
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
# Test activation behaviour with devices missing.
# - snapshots and their origins are only activated together; if one fails, both
# fail
diff --git a/test/t-activate-partial.sh b/test/t-activate-partial.sh
index 15f5965f5..b6bf9cbfc 100644
--- a/test/t-activate-partial.sh
+++ b/test/t-activate-partial.sh
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
. ./test-utils.sh
aux prepare_vg 3
@@ -17,4 +27,4 @@ vgchange -a n --partial $vg
vgchange -a y --partial $vg
# check vgremove
-vgremove -f $vg \ No newline at end of file
+vgremove -f $vg
diff --git a/test/t-lvconvert-mirror-basic-0.sh b/test/t-lvconvert-mirror-basic-0.sh
index 2886cf5fd..eec6d5c10 100644
--- a/test/t-lvconvert-mirror-basic-0.sh
+++ b/test/t-lvconvert-mirror-basic-0.sh
@@ -1,2 +1,12 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
. ./t-lvconvert-mirror-basic.sh
test_many 0
diff --git a/test/t-lvconvert-mirror-basic-1.sh b/test/t-lvconvert-mirror-basic-1.sh
index ff516f357..7019dbb37 100644
--- a/test/t-lvconvert-mirror-basic-1.sh
+++ b/test/t-lvconvert-mirror-basic-1.sh
@@ -1,2 +1,12 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
. ./t-lvconvert-mirror-basic.sh
test_many 1
diff --git a/test/t-lvconvert-mirror-basic-2.sh b/test/t-lvconvert-mirror-basic-2.sh
index 2b82cd105..85d54c992 100644
--- a/test/t-lvconvert-mirror-basic-2.sh
+++ b/test/t-lvconvert-mirror-basic-2.sh
@@ -1,2 +1,12 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
. ./t-lvconvert-mirror-basic.sh
test_many 2
diff --git a/test/t-lvconvert-mirror-basic-3.sh b/test/t-lvconvert-mirror-basic-3.sh
index 806ade070..0c5758074 100644
--- a/test/t-lvconvert-mirror-basic-3.sh
+++ b/test/t-lvconvert-mirror-basic-3.sh
@@ -1,2 +1,12 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
. ./t-lvconvert-mirror-basic.sh
test_many 3
diff --git a/test/t-lvconvert-mirror-basic.sh b/test/t-lvconvert-mirror-basic.sh
index 665f34fdb..880bd0958 100644
--- a/test/t-lvconvert-mirror-basic.sh
+++ b/test/t-lvconvert-mirror-basic.sh
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
. ./test-utils.sh
log_name_to_count()
diff --git a/test/t-nomda-missing.sh b/test/t-nomda-missing.sh
index fa4ca494e..fb0b88284 100644
--- a/test/t-nomda-missing.sh
+++ b/test/t-nomda-missing.sh
@@ -1,5 +1,15 @@
#!/bin/bash
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
. ./test-utils.sh
prepare_devs 4
diff --git a/test/t-snapshots-of-mirrors.sh b/test/t-snapshots-of-mirrors.sh
index 7ee8249b8..fbde102ff 100644
--- a/test/t-snapshots-of-mirrors.sh
+++ b/test/t-snapshots-of-mirrors.sh
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
. ./test-utils.sh
prepare_vg 4
diff --git a/test/t-vgsplit-stacked.sh b/test/t-vgsplit-stacked.sh
index 9df19b570..424156fe7 100644
--- a/test/t-vgsplit-stacked.sh
+++ b/test/t-vgsplit-stacked.sh
@@ -1,3 +1,13 @@
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
. ./test-utils.sh
prepare_lvmconf '[ "a/dev\/mirror/", "a/dev\/mapper\/.*$/", "a/dev\/LVMTEST/", "r/.*/" ]'
diff --git a/unit-tests/datastruct/bitset_t.c b/unit-tests/datastruct/bitset_t.c
index 25d19d7c2..83b297be6 100644
--- a/unit-tests/datastruct/bitset_t.c
+++ b/unit-tests/datastruct/bitset_t.c
@@ -1,3 +1,17 @@
+/*
+ * Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+ *
+ * This file is part of LVM2.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU General Public License v.2.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#include "libdevmapper.h"
#include <assert.h>