From: Kamalesh Babulal Date: Tue, 15 Mar 2022 11:08:28 +0000 (+0530) Subject: ftests: Adopt SPDX License tag X-Git-Tag: v3.1.0~308^2~2^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afab76b9237334a5694bf7d0086e4d59ca9a74a4;p=thirdparty%2Flibcgroup.git ftests: Adopt SPDX License tag Adopt SPDX license tag for all the source files, those already have LGPL 2.1 boilerplate in them and those missing license information. All the files in the project fall under project license, hence explicitly adding LGPL-2.1-only identifier to the files missing license information. Adopting SPDX license helps the compliance tools to determine the license and also helps in reducing the repetitive license boilerplate across source files. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/ftests/001-cgget-basic_cgget_v1.py b/ftests/001-cgget-basic_cgget_v1.py index bd709c56..c7b3a34f 100755 --- a/ftests/001-cgget-basic_cgget_v1.py +++ b/ftests/001-cgget-basic_cgget_v1.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Basic cgget functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/002-cgdelete-recursive_delete.py b/ftests/002-cgdelete-recursive_delete.py index 31b5bc74..37328db0 100755 --- a/ftests/002-cgdelete-recursive_delete.py +++ b/ftests/002-cgdelete-recursive_delete.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Cgroup recursive cgdelete functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/003-cgget-basic_cgget_v2.py b/ftests/003-cgget-basic_cgget_v2.py index fd81b384..f5fe7666 100755 --- a/ftests/003-cgget-basic_cgget_v2.py +++ b/ftests/003-cgget-basic_cgget_v2.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Basic cgget functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/004-cgsnapshot-basic_snapshot_v1.py b/ftests/004-cgsnapshot-basic_snapshot_v1.py index 6eb49119..42d65e68 100755 --- a/ftests/004-cgsnapshot-basic_snapshot_v1.py +++ b/ftests/004-cgsnapshot-basic_snapshot_v1.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Basic cgsnapshot functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion from run import RunError import consts diff --git a/ftests/005-cgsnapshot-basic_snapshot_v2.py b/ftests/005-cgsnapshot-basic_snapshot_v2.py index d52e99f5..006a4b70 100755 --- a/ftests/005-cgsnapshot-basic_snapshot_v2.py +++ b/ftests/005-cgsnapshot-basic_snapshot_v2.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Basic cgsnapshot functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/006-cgrules-basic_cgrules_v1.py b/ftests/006-cgrules-basic_cgrules_v1.py index e18186ad..ea34a97d 100755 --- a/ftests/006-cgrules-basic_cgrules_v1.py +++ b/ftests/006-cgrules-basic_cgrules_v1.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Basic cgrules functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion from process import Process import consts diff --git a/ftests/007-cgrules-basic_cgrules_v2.py b/ftests/007-cgrules-basic_cgrules_v2.py index 097ea752..ad09c304 100755 --- a/ftests/007-cgrules-basic_cgrules_v2.py +++ b/ftests/007-cgrules-basic_cgrules_v2.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Basic cgrules functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion from process import Process import consts diff --git a/ftests/008-cgget-multiple_r_flags.py b/ftests/008-cgget-multiple_r_flags.py index 761da71e..7d387e3a 100755 --- a/ftests/008-cgget-multiple_r_flags.py +++ b/ftests/008-cgget-multiple_r_flags.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - multiple '-r' flags # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/009-cgget-g_flag_controller_only.py b/ftests/009-cgget-g_flag_controller_only.py index 05add0a0..ab4f2862 100755 --- a/ftests/009-cgget-g_flag_controller_only.py +++ b/ftests/009-cgget-g_flag_controller_only.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - '-g' # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/010-cgget-g_flag_controller_and_cgroup.py b/ftests/010-cgget-g_flag_controller_and_cgroup.py index cc138600..e27e0a2a 100755 --- a/ftests/010-cgget-g_flag_controller_and_cgroup.py +++ b/ftests/010-cgget-g_flag_controller_and_cgroup.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - '-g' : # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/011-cgget-r_flag_two_cgroups.py b/ftests/011-cgget-r_flag_two_cgroups.py index 0643da0b..128bab8d 100755 --- a/ftests/011-cgget-r_flag_two_cgroups.py +++ b/ftests/011-cgget-r_flag_two_cgroups.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - '-r' # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/012-cgget-multiple_r_flags2.py b/ftests/012-cgget-multiple_r_flags2.py index 2d8ed1ba..493769f9 100755 --- a/ftests/012-cgget-multiple_r_flags2.py +++ b/ftests/012-cgget-multiple_r_flags2.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - multiple '-r' flags and multiple cgroups # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/013-cgget-multiple_g_flags.py b/ftests/013-cgget-multiple_g_flags.py index 3e71718b..4d1b69fa 100755 --- a/ftests/013-cgget-multiple_g_flags.py +++ b/ftests/013-cgget-multiple_g_flags.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - multiple '-g' flags # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/014-cgget-a_flag.py b/ftests/014-cgget-a_flag.py index 1dab5549..6e97820a 100755 --- a/ftests/014-cgget-a_flag.py +++ b/ftests/014-cgget-a_flag.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - exercise the '-a' flag # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/015-cgget-multiline_r_flag.py b/ftests/015-cgget-multiline_r_flag.py index f1745469..fc9f3c66 100755 --- a/ftests/015-cgget-multiline_r_flag.py +++ b/ftests/015-cgget-multiline_r_flag.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - get a multiline value via the '-r' flag # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup import consts import ftests diff --git a/ftests/016-cgget-invalid_options.py b/ftests/016-cgget-invalid_options.py index fefe2eff..709844bb 100755 --- a/ftests/016-cgget-invalid_options.py +++ b/ftests/016-cgget-invalid_options.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - multiple '-g' flags # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup from run import RunError import consts diff --git a/ftests/017-cgconfig-load_file.py b/ftests/017-cgconfig-load_file.py index 5f27a4ea..53490b76 100755 --- a/ftests/017-cgconfig-load_file.py +++ b/ftests/017-cgconfig-load_file.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgconfigparser functionality test using a configuration file # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/018-cgconfig-load_dir.py b/ftests/018-cgconfig-load_dir.py index 6245788e..fe5e1174 100755 --- a/ftests/018-cgconfig-load_dir.py +++ b/ftests/018-cgconfig-load_dir.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgconfigparser functionality test using a configuration directory # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/019-cgconfig-uidgid_dperm_fperm.py b/ftests/019-cgconfig-uidgid_dperm_fperm.py index 7eccff46..cb32156f 100755 --- a/ftests/019-cgconfig-uidgid_dperm_fperm.py +++ b/ftests/019-cgconfig-uidgid_dperm_fperm.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgconfigparser functionality test - '-a', '-d', '-f' flags # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from container import ContainerError from run import Run, RunError from cgroup import Cgroup diff --git a/ftests/020-cgconfig-tasks_perms_owner.py b/ftests/020-cgconfig-tasks_perms_owner.py index 673e2bc4..41106fa0 100755 --- a/ftests/020-cgconfig-tasks_perms_owner.py +++ b/ftests/020-cgconfig-tasks_perms_owner.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgconfigparser functionality test - '-s', '-t', flags # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion from container import ContainerError from run import Run, RunError diff --git a/ftests/021-cgconfig-invalid_options.py b/ftests/021-cgconfig-invalid_options.py index 3ab4c49f..09e83a96 100755 --- a/ftests/021-cgconfig-invalid_options.py +++ b/ftests/021-cgconfig-invalid_options.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgconfigparser functionality test - invalid and help options # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup from run import RunError import consts diff --git a/ftests/022-cgset-multiple_r_flag.py b/ftests/022-cgset-multiple_r_flag.py index 3656b2ef..07b9527d 100755 --- a/ftests/022-cgset-multiple_r_flag.py +++ b/ftests/022-cgset-multiple_r_flag.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgset functionality test - set multiple values via the '-r' flag # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/023-cgset-copy_from.py b/ftests/023-cgset-copy_from.py index d3f22de9..33c4f416 100755 --- a/ftests/023-cgset-copy_from.py +++ b/ftests/023-cgset-copy_from.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgset functionality test - test the '--copy-from' option # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/025-cgset-multiple_cgroups.py b/ftests/025-cgset-multiple_cgroups.py index 9d3583cf..3c1ae63f 100755 --- a/ftests/025-cgset-multiple_cgroups.py +++ b/ftests/025-cgset-multiple_cgroups.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgset functionality test - set multiple cgroups' values # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/026-cgset-multiple_r_multiple_cgroup.py b/ftests/026-cgset-multiple_r_multiple_cgroup.py index 12cfaaf6..fcd5d32c 100755 --- a/ftests/026-cgset-multiple_r_multiple_cgroup.py +++ b/ftests/026-cgset-multiple_r_multiple_cgroup.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgset functionality test - set multiple values in multiple cgroups # via the '-r' flag @@ -7,20 +8,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/027-cgset-invalid_options.py b/ftests/027-cgset-invalid_options.py index 001822dc..64a23128 100755 --- a/ftests/027-cgset-invalid_options.py +++ b/ftests/027-cgset-invalid_options.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgset functionality test - invalid options # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup from run import RunError import consts diff --git a/ftests/029-lssubsys-basic_lssubsys.py b/ftests/029-lssubsys-basic_lssubsys.py index 185df5ea..973f8ce5 100755 --- a/ftests/029-lssubsys-basic_lssubsys.py +++ b/ftests/029-lssubsys-basic_lssubsys.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Basic lssubsys functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/030-lssubsys-lssubsys_all.py b/ftests/030-lssubsys-lssubsys_all.py index 90112317..ec9a3b71 100755 --- a/ftests/030-lssubsys-lssubsys_all.py +++ b/ftests/030-lssubsys-lssubsys_all.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # 'lssubsys -a' test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup import consts import ftests diff --git a/ftests/031-lscgroup-g_flag.py b/ftests/031-lscgroup-g_flag.py index 993597ed..23348ee6 100755 --- a/ftests/031-lscgroup-g_flag.py +++ b/ftests/031-lscgroup-g_flag.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # lscgroup functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/032-lscgroup-multiple_g_flags.py b/ftests/032-lscgroup-multiple_g_flags.py index 6fa80fac..2502d9cd 100755 --- a/ftests/032-lscgroup-multiple_g_flags.py +++ b/ftests/032-lscgroup-multiple_g_flags.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # lscgroup functionality test - multiple '-g' flags # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/033-cgget-no_flags.py b/ftests/033-cgget-no_flags.py index 14c4e757..d8d5e8de 100755 --- a/ftests/033-cgget-no_flags.py +++ b/ftests/033-cgget-no_flags.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgget functionality test - no flags, only a cgroup # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup import consts import ftests diff --git a/ftests/034-cgexec-basic_cgexec.py b/ftests/034-cgexec-basic_cgexec.py index b16e7f10..79255a86 100755 --- a/ftests/034-cgexec-basic_cgexec.py +++ b/ftests/034-cgexec-basic_cgexec.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Cgroup cgexec test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup from run import Run import consts diff --git a/ftests/035-cgset-set_cgroup_type.py b/ftests/035-cgset-set_cgroup_type.py index 3570e1d5..d91fa2e4 100755 --- a/ftests/035-cgset-set_cgroup_type.py +++ b/ftests/035-cgset-set_cgroup_type.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgget/cgset cgroup.type functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/036-cgset-multi_thread.py b/ftests/036-cgset-multi_thread.py index a38b6647..b2c38b9c 100755 --- a/ftests/036-cgset-multi_thread.py +++ b/ftests/036-cgset-multi_thread.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Multithreaded cgroup v2 test # @@ -6,20 +7,6 @@ # Author: Kamalesh Babulal # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion from run import Run import consts diff --git a/ftests/037-cgxget-cpu_settings.py b/ftests/037-cgxget-cpu_settings.py index 5a927a8c..80329021 100755 --- a/ftests/037-cgxget-cpu_settings.py +++ b/ftests/037-cgxget-cpu_settings.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgxget functionality test - various cpu settings # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/038-cgxget-cpuset_settings.py b/ftests/038-cgxget-cpuset_settings.py index 8e59c327..720e1791 100755 --- a/ftests/038-cgxget-cpuset_settings.py +++ b/ftests/038-cgxget-cpuset_settings.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgxget functionality test - various cpuset settings # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion from run import Run import consts diff --git a/ftests/039-pybindings-cgxget.py b/ftests/039-pybindings-cgxget.py index 8e24d21c..4539c385 100755 --- a/ftests/039-pybindings-cgxget.py +++ b/ftests/039-pybindings-cgxget.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgxget functionality test using the python bindings # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup as CgroupCli from libcgroup import Cgroup, Version from cgroup import CgroupVersion diff --git a/ftests/040-pybindings-cgxset.py b/ftests/040-pybindings-cgxset.py index 9f2cf3d0..e562093d 100755 --- a/ftests/040-pybindings-cgxset.py +++ b/ftests/040-pybindings-cgxset.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgxset functionality test using the python bindings # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import CgroupVersion as CgroupCliVersion from cgroup import Cgroup as CgroupCli from libcgroup import Cgroup, Version diff --git a/ftests/041-pybindings-library_version.py b/ftests/041-pybindings-library_version.py index f71de2be..1205799a 100755 --- a/ftests/041-pybindings-library_version.py +++ b/ftests/041-pybindings-library_version.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # get the library version using the python bindings # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from libcgroup import Cgroup import consts import ftests diff --git a/ftests/042-cgxget-unmappable.py b/ftests/042-cgxget-unmappable.py index c252efc0..c558e925 100755 --- a/ftests/042-cgxget-unmappable.py +++ b/ftests/042-cgxget-unmappable.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Cgxget test with no mappable settings # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/043-cgcreate-empty_controller.py b/ftests/043-cgcreate-empty_controller.py index 5d5e79fc..ddb4afe0 100755 --- a/ftests/043-cgcreate-empty_controller.py +++ b/ftests/043-cgcreate-empty_controller.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # cgcreate with no controller specified functionality test # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup, CgroupVersion import consts import ftests diff --git a/ftests/044-pybindings-cgcreate_empty_controller.py b/ftests/044-pybindings-cgcreate_empty_controller.py index 7ac11a5b..1edc95c6 100755 --- a/ftests/044-pybindings-cgcreate_empty_controller.py +++ b/ftests/044-pybindings-cgcreate_empty_controller.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # empty cgcreate functionality test using the python bindings # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from cgroup import Cgroup as CgroupCli from libcgroup import Cgroup, Version from cgroup import CgroupVersion diff --git a/ftests/Makefile.am b/ftests/Makefile.am index 18a52b6b..86b65f95 100644 --- a/ftests/Makefile.am +++ b/ftests/Makefile.am @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # libcgroup functional tests Makefile.am # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - TESTS = ftests.sh ftests-nocontainer.sh EXTRA_DIST = *.py README.md ftests.sh ftests-nocontainer.sh diff --git a/ftests/cgroup.py b/ftests/cgroup.py index 30fdf588..c252d8b5 100644 --- a/ftests/cgroup.py +++ b/ftests/cgroup.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Cgroup class for the libcgroup functional tests # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from container import ContainerError from controller import Controller from run import Run, RunError diff --git a/ftests/config.py b/ftests/config.py index d141ab91..b65d31c7 100644 --- a/ftests/config.py +++ b/ftests/config.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Config class for the libcgroup functional tests # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from container import Container from process import Process import consts diff --git a/ftests/consts.py b/ftests/consts.py index e6a275ac..8d5b6745 100644 --- a/ftests/consts.py +++ b/ftests/consts.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Constants for the libcgroup functional tests # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - import os DEFAULT_LOG_FILE = 'libcgroup-ftests.log' diff --git a/ftests/container.py b/ftests/container.py index f9b899d6..a3f1e5a9 100644 --- a/ftests/container.py +++ b/ftests/container.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Container class for the libcgroup functional tests # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from run import Run import consts import os diff --git a/ftests/controller.py b/ftests/controller.py index 9d1b6d26..b80b7c5c 100644 --- a/ftests/controller.py +++ b/ftests/controller.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Cgroup class for the libcgroup functional tests # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from log import Log diff --git a/ftests/ftests-nocontainer.sh b/ftests/ftests-nocontainer.sh index 70d27e16..ec35eeca 100755 --- a/ftests/ftests-nocontainer.sh +++ b/ftests/ftests-nocontainer.sh @@ -1,2 +1,4 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-only + ./ftests.py -l 10 -L ftests-nocontainer.log --no-container diff --git a/ftests/ftests.py b/ftests/ftests.py index b2177bfd..ee8faba0 100755 --- a/ftests/ftests.py +++ b/ftests/ftests.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-only # # Main entry point for the libcgroup functional tests # @@ -6,20 +7,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from config import Config from run import Run import datetime diff --git a/ftests/ftests.sh b/ftests/ftests.sh index ce754fb7..2ff86a36 100755 --- a/ftests/ftests.sh +++ b/ftests/ftests.sh @@ -1,2 +1,4 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-only + ./ftests.py -l 10 -L ftests.log diff --git a/ftests/log.py b/ftests/log.py index 6f9c9134..b1763c17 100644 --- a/ftests/log.py +++ b/ftests/log.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Log class for the libcgroup functional tests # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - import datetime import consts diff --git a/ftests/process.py b/ftests/process.py index 5aa0fefc..c4530d22 100644 --- a/ftests/process.py +++ b/ftests/process.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Cgroup class for the libcgroup functional tests # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from container import ContainerError from cgroup import CgroupVersion import multiprocessing as mp diff --git a/ftests/run.py b/ftests/run.py index 1144986a..4ca7ee7b 100644 --- a/ftests/run.py +++ b/ftests/run.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Run class for the libcgroup functional tests # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from log import Log import subprocess diff --git a/ftests/utils.py b/ftests/utils.py index 8b986053..61e4df6e 100644 --- a/ftests/utils.py +++ b/ftests/utils.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Utility functions for the libcgroup functional tests # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# This library 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 Lesser General Public License -# for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this library; if not, see . -# - from run import Run