+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cg_build_path()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include "gtest/gtest.h"
#include "libcgroup-internal.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_parse_rules_options()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include "gtest/gtest.h"
#include "libcgroup-internal.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cg_get_cgroups_from_proc_cgroups()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include "gtest/gtest.h"
#include "libcgroup-internal.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_compare_ignore_rule()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include "gtest/gtest.h"
#include "libcgroup-internal.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_compare_wildcard_procname()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include "gtest/gtest.h"
#include "libcgroup-internal.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_get_cgroup()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <bits/stdc++.h>
#include <string>
#include <vector>
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_process_v1_mnt()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <mntent.h>
#include "gtest/gtest.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_process_v2_mnt()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <ftw.h>
#include <mntent.h>
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_set_values_recursive()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <ftw.h>
#include "gtest/gtest.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_chown_chmod_tasks()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <ftw.h>
#include "gtest/gtest.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroupv2_subtree_control()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <ftw.h>
#include "gtest/gtest.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_create_cgroup()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <dirent.h>
#include <ftw.h>
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroup_build_tasks_procs_path()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include "gtest/gtest.h"
#include "libcgroup-internal.h"
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroupv2_get_subtree_control()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <fcntl.h>
#include <ftw.h>
#include <sys/stat.h>
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for cgroupv2_controller_enabled()
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <ftw.h>
#include <sys/stat.h>
#include <sys/types.h>
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest for parse_r_flag() in cgset
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include <ftw.h>
#include "gtest/gtest.h"
+# SPDX-License-Identifier: LGPL-2.1-only
#
# libcgroup googletests Makefile.am
#
# Author: Tom Hromatka <tom.hromatka@oracle.com>
#
-#
-# 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 <http://www.gnu.org/licenses>.
-#
-
AM_CPPFLAGS = -I$(top_srcdir)/include \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/tools \
+/* SPDX-License-Identifier: LGPL-2.1-only */
/**
* libcgroup googletest main entry point
*
* Author: Tom Hromatka <tom.hromatka@oracle.com>
*/
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
#include "gtest/gtest.h"
int main(int argc, char **argv)