[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [test-API 2/3 v3] Add the better copyright statements in scripts



The new copyright statements is:

 Copyright (C) 2010-2012 Red Hat, Inc.

 libvirt-test-API is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as
 published by the Free Software Foundation, either version 2 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 warranties of
 TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.

 You should have received a copy of the GNU General Public License
 along with this program. If not, see <http://www.gnu.org/licenses/>.

% for i in $(git diff --stat HEAD~1 | grep '.py' | awk -F'|' '{print $1}'); do \
    sed -i -e '\|#!/usr/bin/env python|r /tmp/copy' $i; \
  done
---
 activityfilter.py          |   16 ++++++++++++++++
 casecfgcheck.py            |   16 ++++++++++++++++
 dist/redhat/env_inspect.py |   16 ++++++++++++++++
 env_clear.py               |   16 ++++++++++++++++
 exception.py               |   16 ++++++++++++++++
 generator.py               |   16 ++++++++++++++++
 libvirt-test-api.py        |   16 ++++++++++++++++
 logxmlparser.py            |   16 ++++++++++++++++
 mapper.py                  |   16 ++++++++++++++++
 parser.py                  |   16 ++++++++++++++++
 process.py                 |   16 ++++++++++++++++
 proxy.py                   |   16 ++++++++++++++++
 utils/XMLParser.py         |   16 ++++++++++++++++
 utils/check.py             |   16 ++++++++++++++++
 utils/env_parser.py        |   16 ++++++++++++++++
 utils/format.py            |   16 ++++++++++++++++
 utils/log.py               |   16 ++++++++++++++++
 utils/utils.py             |   16 ++++++++++++++++
 utils/xmlbuilder.py        |   16 ++++++++++++++++
 utils/xmlgenerator.py      |   16 ++++++++++++++++
 20 files changed, 320 insertions(+), 0 deletions(-)

diff --git a/activityfilter.py b/activityfilter.py
index 96428f9..7351625 100644
--- a/activityfilter.py
+++ b/activityfilter.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 
 
diff --git a/casecfgcheck.py b/casecfgcheck.py
index 86f6fc5..9f5f88c 100644
--- a/casecfgcheck.py
+++ b/casecfgcheck.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 
 import proxy
diff --git a/dist/redhat/env_inspect.py b/dist/redhat/env_inspect.py
index 21b532a..b3e484f 100644
--- a/dist/redhat/env_inspect.py
+++ b/dist/redhat/env_inspect.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: envinspect.py
 # Description: check the testing environment and state of libvirt as well
diff --git a/env_clear.py b/env_clear.py
index 65ff732..d34c701 100644
--- a/env_clear.py
+++ b/env_clear.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # This module matches the reference of clearing function from each testcase
 # to the corresponding testcase's argument in the order of testcase running
diff --git a/exception.py b/exception.py
index 389925d..4375c59 100644
--- a/exception.py
+++ b/exception.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: exception.py
 # Summary: the exception class
diff --git a/generator.py b/generator.py
index 9a81b33..ea57c41 100644
--- a/generator.py
+++ b/generator.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # This module to initilize log module and match testcase function from
 # proxy with corresponding argument to form a callable function.
diff --git a/libvirt-test-api.py b/libvirt-test-api.py
index e812808..607663a 100644
--- a/libvirt-test-api.py
+++ b/libvirt-test-api.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 
 import os
diff --git a/logxmlparser.py b/logxmlparser.py
index a0a5fa9..a749a00 100644
--- a/logxmlparser.py
+++ b/logxmlparser.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: xmlparser.py
 # Summary: generate xmlfile for log management
diff --git a/mapper.py b/mapper.py
index ffbfc7b..7682e5d 100644
--- a/mapper.py
+++ b/mapper.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # This module help form new lists from original list generated by module parser,
 # the purpose is to get useful information about a testrun.
diff --git a/parser.py b/parser.py
index f4e1e83..6bed096 100644
--- a/parser.py
+++ b/parser.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # This module is for configuration file parsing, to generate a case list.
 #
diff --git a/process.py b/process.py
index e2d2bb8..4bcfcfa 100644
--- a/process.py
+++ b/process.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: process.py
 # Summary: multiprocessing module
diff --git a/proxy.py b/proxy.py
index 799069f..da4d7ba 100644
--- a/proxy.py
+++ b/proxy.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Generate a list of callable function references.
 
diff --git a/utils/XMLParser.py b/utils/XMLParser.py
index d19cfd9..c9000a7 100644
--- a/utils/XMLParser.py
+++ b/utils/XMLParser.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: XMLParser.py
 # Summary: parse and xml document into a python dictionary
diff --git a/utils/check.py b/utils/check.py
index 01e0ed8..7e2abb7 100644
--- a/utils/check.py
+++ b/utils/check.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: check.py
 # Summary: basic check operation needed by test
diff --git a/utils/env_parser.py b/utils/env_parser.py
index 13d80c1..e0ec598 100644
--- a/utils/env_parser.py
+++ b/utils/env_parser.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: env_parser.py
 # Summary: parse the env configuration file
diff --git a/utils/format.py b/utils/format.py
index 3a0d54b..710e681 100644
--- a/utils/format.py
+++ b/utils/format.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: format.py
 # Summary: generate specified kind of format string
diff --git a/utils/log.py b/utils/log.py
index 50f38c2..4d0a037 100644
--- a/utils/log.py
+++ b/utils/log.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: log.py
 # Summary: log file operation
diff --git a/utils/utils.py b/utils/utils.py
index 07a87cf..f1ec6c6 100644
--- a/utils/utils.py
+++ b/utils/utils.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 
 import os
diff --git a/utils/xmlbuilder.py b/utils/xmlbuilder.py
index 5a4101c..3c55375 100644
--- a/utils/xmlbuilder.py
+++ b/utils/xmlbuilder.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: xmlbuilder.py
 # Summary: operation for building domain xml
diff --git a/utils/xmlgenerator.py b/utils/xmlgenerator.py
index 79c802a..24ab85e 100644
--- a/utils/xmlgenerator.py
+++ b/utils/xmlgenerator.py
@@ -1,5 +1,21 @@
 #!/usr/bin/env python
 #
+# Copyright (C) 2010-2012 Red Hat, Inc.
+#
+# libvirt-test-API is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 2 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 warranties of
+# TITLE, NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+#
 #
 # Filename: xmlgenerator.py
 # Summary: generate domain xml
-- 
1.7.7.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]