From: Kamalesh Babulal Date: Tue, 15 Mar 2022 11:09:27 +0000 (+0530) Subject: gunit: Adopt SPDX License tag X-Git-Tag: v3.1.0~308^2~2^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b7c6c703a2209dca6b742ef2ab262cd72beabcd;p=thirdparty%2Flibcgroup.git gunit: 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/gunit/001-path.cpp b/gunit/001-path.cpp index 2a8f7777..dc83fe03 100644 --- a/gunit/001-path.cpp +++ b/gunit/001-path.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cg_build_path() * @@ -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 . - */ - #include "gtest/gtest.h" #include "libcgroup-internal.h" diff --git a/gunit/002-cgroup_parse_rules_options.cpp b/gunit/002-cgroup_parse_rules_options.cpp index b9ec477b..63d3c626 100644 --- a/gunit/002-cgroup_parse_rules_options.cpp +++ b/gunit/002-cgroup_parse_rules_options.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_parse_rules_options() * @@ -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 . - */ - #include "gtest/gtest.h" #include "libcgroup-internal.h" diff --git a/gunit/003-cg_get_cgroups_from_proc_cgroups.cpp b/gunit/003-cg_get_cgroups_from_proc_cgroups.cpp index 0b4d2891..e03139f2 100644 --- a/gunit/003-cg_get_cgroups_from_proc_cgroups.cpp +++ b/gunit/003-cg_get_cgroups_from_proc_cgroups.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cg_get_cgroups_from_proc_cgroups() * @@ -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 . - */ - #include "gtest/gtest.h" #include "libcgroup-internal.h" diff --git a/gunit/004-cgroup_compare_ignore_rule.cpp b/gunit/004-cgroup_compare_ignore_rule.cpp index 29341f28..13d6f481 100644 --- a/gunit/004-cgroup_compare_ignore_rule.cpp +++ b/gunit/004-cgroup_compare_ignore_rule.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_compare_ignore_rule() * @@ -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 . - */ - #include "gtest/gtest.h" #include "libcgroup-internal.h" diff --git a/gunit/005-cgroup_compare_wildcard_procname.cpp b/gunit/005-cgroup_compare_wildcard_procname.cpp index 62adf076..cea19eab 100644 --- a/gunit/005-cgroup_compare_wildcard_procname.cpp +++ b/gunit/005-cgroup_compare_wildcard_procname.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_compare_wildcard_procname() * @@ -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 . - */ - #include "gtest/gtest.h" #include "libcgroup-internal.h" diff --git a/gunit/006-cgroup_get_cgroup.cpp b/gunit/006-cgroup_get_cgroup.cpp index e5ee07fb..08fcd46b 100644 --- a/gunit/006-cgroup_get_cgroup.cpp +++ b/gunit/006-cgroup_get_cgroup.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_get_cgroup() * @@ -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 . - */ - #include #include #include diff --git a/gunit/007-cgroup_process_v1_mount.cpp b/gunit/007-cgroup_process_v1_mount.cpp index 84a1f799..f661e70a 100644 --- a/gunit/007-cgroup_process_v1_mount.cpp +++ b/gunit/007-cgroup_process_v1_mount.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_process_v1_mnt() * @@ -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 . - */ - #include #include "gtest/gtest.h" diff --git a/gunit/008-cgroup_process_v2_mount.cpp b/gunit/008-cgroup_process_v2_mount.cpp index bc99db24..84597893 100644 --- a/gunit/008-cgroup_process_v2_mount.cpp +++ b/gunit/008-cgroup_process_v2_mount.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_process_v2_mnt() * @@ -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 . - */ - #include #include diff --git a/gunit/009-cgroup_set_values_recursive.cpp b/gunit/009-cgroup_set_values_recursive.cpp index 64b0169b..91d76fbd 100644 --- a/gunit/009-cgroup_set_values_recursive.cpp +++ b/gunit/009-cgroup_set_values_recursive.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_set_values_recursive() * @@ -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 . - */ - #include #include "gtest/gtest.h" diff --git a/gunit/010-cgroup_chown_chmod_tasks.cpp b/gunit/010-cgroup_chown_chmod_tasks.cpp index 964d99d7..7ad351e3 100644 --- a/gunit/010-cgroup_chown_chmod_tasks.cpp +++ b/gunit/010-cgroup_chown_chmod_tasks.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_chown_chmod_tasks() * @@ -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 . - */ - #include #include "gtest/gtest.h" diff --git a/gunit/011-cgroupv2_subtree_control.cpp b/gunit/011-cgroupv2_subtree_control.cpp index 9edede25..05ab8f5a 100644 --- a/gunit/011-cgroupv2_subtree_control.cpp +++ b/gunit/011-cgroupv2_subtree_control.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroupv2_subtree_control() * @@ -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 . - */ - #include #include "gtest/gtest.h" diff --git a/gunit/012-cgroup_create_cgroup.cpp b/gunit/012-cgroup_create_cgroup.cpp index d3752c23..cb26ca74 100644 --- a/gunit/012-cgroup_create_cgroup.cpp +++ b/gunit/012-cgroup_create_cgroup.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_create_cgroup() * @@ -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 . - */ - #include #include diff --git a/gunit/013-cgroup_build_tasks_procs_path.cpp b/gunit/013-cgroup_build_tasks_procs_path.cpp index b86a68f5..4445048b 100644 --- a/gunit/013-cgroup_build_tasks_procs_path.cpp +++ b/gunit/013-cgroup_build_tasks_procs_path.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroup_build_tasks_procs_path() * @@ -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 . - */ - #include "gtest/gtest.h" #include "libcgroup-internal.h" diff --git a/gunit/014-cgroupv2_get_subtree_control.cpp b/gunit/014-cgroupv2_get_subtree_control.cpp index 66f3c52b..a0b8e226 100644 --- a/gunit/014-cgroupv2_get_subtree_control.cpp +++ b/gunit/014-cgroupv2_get_subtree_control.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroupv2_get_subtree_control() * @@ -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 . - */ - #include #include #include diff --git a/gunit/015-cgroupv2_controller_enabled.cpp b/gunit/015-cgroupv2_controller_enabled.cpp index 3c291e5a..8dd8da69 100644 --- a/gunit/015-cgroupv2_controller_enabled.cpp +++ b/gunit/015-cgroupv2_controller_enabled.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for cgroupv2_controller_enabled() * @@ -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 . - */ - #include #include #include diff --git a/gunit/016-cgset_parse_r_flag.cpp b/gunit/016-cgset_parse_r_flag.cpp index 713535fa..728c98b6 100644 --- a/gunit/016-cgset_parse_r_flag.cpp +++ b/gunit/016-cgset_parse_r_flag.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest for parse_r_flag() in cgset * @@ -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 . - */ - #include #include "gtest/gtest.h" diff --git a/gunit/Makefile.am b/gunit/Makefile.am index 654002cd..1e58a4e0 100644 --- a/gunit/Makefile.am +++ b/gunit/Makefile.am @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # libcgroup googletests 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 . -# - AM_CPPFLAGS = -I$(top_srcdir)/include \ -I$(top_srcdir)/src \ -I$(top_srcdir)/src/tools \ diff --git a/gunit/gtest.cpp b/gunit/gtest.cpp index 1ff88c24..b48200b0 100644 --- a/gunit/gtest.cpp +++ b/gunit/gtest.cpp @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * libcgroup googletest main entry point * @@ -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 . - */ - #include "gtest/gtest.h" int main(int argc, char **argv)