From: Tom Hromatka Date: Thu, 15 Sep 2022 20:06:02 +0000 (+0000) Subject: tests: Merge libcgroup-tests repo back into libcgroup repo X-Git-Tag: v3.1.0~308^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70351f24dc2b9630e1d52765d7ddaf08db9db624;p=thirdparty%2Flibcgroup.git tests: Merge libcgroup-tests repo back into libcgroup repo Merge the libcgroup-tests repo back into the main libcgroup repo. The submodules logic has been deleted and the tests are now directly hosted within the libcgroup repo. Signed-off-by: Tom Hromatka --- 70351f24dc2b9630e1d52765d7ddaf08db9db624 diff --cc tests/.github/actions/setup-libcgroup/action.yml index 00000000,00000000..26c62192 new file mode 100644 --- /dev/null +++ b/tests/.github/actions/setup-libcgroup/action.yml @@@ -1,0 -1,0 +1,70 @@@ ++# ++# Action to setup the libcgroup directory ++# ++# Copyright (c) 2022 Oracle and/or its affiliates. ++# 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 . ++# ++ ++name: Setup the libcgroup directory ++description: "Install dependencies, git clone, bootstrap, configure, and make libcgroup" ++runs: ++ using: "composite" ++ steps: ++ - run: sudo apt-get update ++ shell: bash ++ - run: sudo apt-get install libpam-dev lcov python3-pip python3-dev ++ shell: bash ++ - run: sudo pip install cython ++ shell: bash ++ - run: rm -fr tests/ ++ shell: bash ++ - run: | ++ mkdir -p tests ++ mv Makefile.am tests/ ++ mv ftests/ tests/ ++ mv gunit/ tests/ ++ mv .gitmodules tests/ ++ mv .git tests/ ++ shell: bash ++ - run: git clone https://github.com/libcgroup/libcgroup libcg ++ shell: bash ++ - run: | ++ rm -rf libcg/.github ++ rm -fr libcg/tests ++ mv libcg/* ./ ++ mv libcg/.gitmodules ./ ++ mv libcg/.git ./ ++ shell: bash ++ - run: | ++ git submodule update --init --recursive -- googletest ++ pushd googletest/googletest ++ git checkout release-1.8.0 ++ cmake -DBUILD_SHARED_LIBS=ON . ++ make ++ popd ++ shell: bash ++ - run: | ++ test -d m4 || mkdir m4 ++ autoreconf -fi ++ rm -fr autom4te.cache ++ shell: bash ++ - run: CFLAGS="$CFLAGS -g -O0 -Werror" ./configure --sysconfdir=/etc --localstatedir=/var --enable-code-coverage --enable-opaque-hierarchy="name=systemd" --enable-python ++ shell: bash ++ - run: make ++ shell: bash ++ - run: lcov -i -d . -c -o lcov.base ++ shell: bash diff --cc tests/.github/workflows/continuous-integration.yml index 00000000,00000000..b92d5b19 new file mode 100644 --- /dev/null +++ b/tests/.github/workflows/continuous-integration.yml @@@ -1,0 -1,0 +1,166 @@@ ++# ++# Continuous Integration Workflow for libcgroup-tests ++# ++# Copyright (c) 2022 Oracle and/or its affiliates. ++# 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 . ++# ++ ++name: Continuous Integration ++on: ["push", "pull_request"] ++ ++jobs: ++ flake8-lint: ++ name: Lint ++ runs-on: ubuntu-latest ++ steps: ++ - name: Check out source repository ++ uses: actions/checkout@v2 ++ - name: Set up Python environment ++ uses: actions/setup-python@v2 ++ with: ++ python-version: "3.8" ++ - name: flake8 Lint ++ uses: reviewdog/action-flake8@v3 ++ with: ++ github_token: ${{ secrets.GITHUB_TOKEN }} ++ ++ # Thanks to github user @martyrs ++ # https://github.community/t/how-to-properly-clean-up-self-hosted-runners/128909/3 ++ cleaner: ++ name: Delete Self-Hosted Runner Workspaces ++ runs-on: self-hosted ++ steps: ++ - name: Delete workspace path ++ run: | ++ echo "Cleaning up previous run" ++ rm -rf "${{ github.workspace }}" ++ ++ unittests: ++ name: Unit Tests ++ runs-on: ubuntu-latest ++ ++ steps: ++ - uses: actions/checkout@v2 ++ with: ++ submodules: false ++ - name: Initialize the directory ++ uses: ./.github/actions/setup-libcgroup ++ - name: Run unit tests ++ run: | ++ pushd tests/gunit ++ make check ++ popd ++ - name: Display test logs ++ if: ${{ always() }} ++ run: cat tests/gunit/test-suite.log ++ ++ functionaltestsv1: ++ name: Cgroup v1 Functional Tests ++ runs-on: ubuntu-latest ++ ++ steps: ++ - name: Install container dependencies ++ run: sudo apt-get install lxc lxd ++ - uses: actions/checkout@v2 ++ with: ++ submodules: false ++ - name: Initialize the directory ++ uses: ./.github/actions/setup-libcgroup ++ - name: Run functional tests ++ run: | ++ # The cgroup v1 runner hosted by Github Actions doesn't allow ++ # for exclusive cpusets. Thus, skip the cpuset automated test ++ pushd src/python/build/lib.* ++ export PYTHONPATH=$PYTHONPATH:$(pwd) ++ popd ++ pushd tests/ftests ++ ./ftests.py -l 10 -L ftests.log ++ ./ftests.py -l 10 -L ftests-nocontainer.log --skip 38 --no-container ++ popd ++ ++ functionaltestsv1v2: ++ name: Cgroup v1/v2 Functional Tests ++ runs-on: ubuntu-20.04 ++ ++ steps: ++ - name: Mount cpuset cgroup v2 controller ++ run: | ++ # unmount the cpuset v1 controller. This should make it available ++ # in the v2 hierarchy after all references have been freed ++ sudo umount /sys/fs/cgroup/cpuset ++ # wait for the references to the cpuset controller to go away ++ sleep 30 ++ cat /sys/fs/cgroup/unified/cgroup.controllers ++ sudo su -c "echo +cpuset > /sys/fs/cgroup/unified/cgroup.subtree_control" ++ cat /sys/fs/cgroup/unified/cgroup.subtree_control ++ - name: Install container dependencies ++ run: sudo apt-get install lxc lxd ++ - uses: actions/checkout@v2 ++ with: ++ submodules: false ++ - name: Initialize the directory ++ uses: ./.github/actions/setup-libcgroup ++ - name: Run functional tests ++ run: | ++ pushd src/python/build/lib.* ++ export PYTHONPATH=$PYTHONPATH:$(pwd) ++ popd ++ pushd tests/ftests ++ make check ++ popd ++ - name: Display test logs ++ if: ${{ always() }} ++ run: | ++ cat tests/ftests/ftests.sh.log ++ cat tests/ftests/ftests-nocontainer.sh.log ++ - name: Archive test logs ++ if: ${{ always() }} ++ uses: actions/upload-artifact@v2 ++ with: ++ name: Cgroup v1v2 test logs ++ path: tests/ftests/*.log ++ ++ functionaltestsv2: ++ name: Cgroup v2 Functional Tests ++ needs: [cleaner] ++ runs-on: self-hosted ++ ++ steps: ++ - uses: actions/checkout@v2 ++ with: ++ submodules: false ++ - name: Initialize the directory ++ uses: ./.github/actions/setup-libcgroup ++ - name: Run functional tests ++ run: | ++ pushd src/python/build/lib.* ++ export PYTHONPATH=$PYTHONPATH:$(pwd) ++ popd ++ pushd tests/ftests ++ make check ++ popd ++ - name: Display test logs ++ if: ${{ always() }} ++ run: | ++ cat tests/ftests/ftests.sh.log ++ cat tests/ftests/ftests-nocontainer.sh.log ++ - name: Archive test logs ++ if: ${{ always() }} ++ uses: actions/upload-artifact@v2 ++ with: ++ name: Cgroup v2 test logs ++ path: tests/ftests/*.log diff --cc tests/.gitignore index 00000000,00000000..803c49ac new file mode 100644 --- /dev/null +++ b/tests/.gitignore @@@ -1,0 -1,0 +1,15 @@@ ++get_all_controller ++get_controller ++get_mount_point ++get_procs ++get_variable_names ++libcg_ba ++libcgrouptest01 ++pathtest ++proctest ++read_stats ++setuid ++test_named_hierarchy ++walk_task ++walk_test ++wrapper_test diff --cc tests/.gitmodules index 00000000,e69de29b..e69de29b mode 000000,100644..100644 --- a/tests/.gitmodules +++ b/tests/.gitmodules diff --cc tests/Makefile.am index 00000000,00000000..b23ba5d8 new file mode 100644 --- /dev/null +++ b/tests/Makefile.am @@@ -1,0 -1,0 +1,1 @@@ ++SUBDIRS = ftests gunit diff --cc tests/README.md index 00000000,00000000..05449ee7 new file mode 100644 --- /dev/null +++ b/tests/README.md @@@ -1,0 -1,0 +1,5 @@@ ++[![Build Status](https://github.com/libcgroup/libcgroup-tests/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/libcgroup/libcgroup-tests/actions) ++[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/libcgroup/libcgroup-tests.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/libcgroup/libcgroup-tests/alerts/?mode=list) ++ ++The libcgroup-tests repository contains the automated tests for the ++[libcgroup](https://github.com/libcgroup/libcgroup) project. diff --cc tests/ftests/.gitignore index 00000000,9a54287b..9a54287b mode 000000,100644..100644 --- a/tests/ftests/.gitignore +++ b/tests/ftests/.gitignore diff --cc tests/ftests/001-cgget-basic_cgget_v1.py index 00000000,c7b3a34f..c7b3a34f mode 000000,100755..100755 --- a/tests/ftests/001-cgget-basic_cgget_v1.py +++ b/tests/ftests/001-cgget-basic_cgget_v1.py diff --cc tests/ftests/002-cgdelete-recursive_delete.py index 00000000,37328db0..37328db0 mode 000000,100755..100755 --- a/tests/ftests/002-cgdelete-recursive_delete.py +++ b/tests/ftests/002-cgdelete-recursive_delete.py diff --cc tests/ftests/003-cgget-basic_cgget_v2.py index 00000000,f5fe7666..f5fe7666 mode 000000,100755..100755 --- a/tests/ftests/003-cgget-basic_cgget_v2.py +++ b/tests/ftests/003-cgget-basic_cgget_v2.py diff --cc tests/ftests/004-cgsnapshot-basic_snapshot_v1.py index 00000000,42d65e68..42d65e68 mode 000000,100755..100755 --- a/tests/ftests/004-cgsnapshot-basic_snapshot_v1.py +++ b/tests/ftests/004-cgsnapshot-basic_snapshot_v1.py diff --cc tests/ftests/005-cgsnapshot-basic_snapshot_v2.py index 00000000,006a4b70..006a4b70 mode 000000,100755..100755 --- a/tests/ftests/005-cgsnapshot-basic_snapshot_v2.py +++ b/tests/ftests/005-cgsnapshot-basic_snapshot_v2.py diff --cc tests/ftests/006-cgrules-basic_cgrules_v1.py index 00000000,ea34a97d..ea34a97d mode 000000,100755..100755 --- a/tests/ftests/006-cgrules-basic_cgrules_v1.py +++ b/tests/ftests/006-cgrules-basic_cgrules_v1.py diff --cc tests/ftests/007-cgrules-basic_cgrules_v2.py index 00000000,ad09c304..ad09c304 mode 000000,100755..100755 --- a/tests/ftests/007-cgrules-basic_cgrules_v2.py +++ b/tests/ftests/007-cgrules-basic_cgrules_v2.py diff --cc tests/ftests/008-cgget-multiple_r_flags.py index 00000000,7d387e3a..7d387e3a mode 000000,100755..100755 --- a/tests/ftests/008-cgget-multiple_r_flags.py +++ b/tests/ftests/008-cgget-multiple_r_flags.py diff --cc tests/ftests/009-cgget-g_flag_controller_only.py index 00000000,c9344c84..c9344c84 mode 000000,100755..100755 --- a/tests/ftests/009-cgget-g_flag_controller_only.py +++ b/tests/ftests/009-cgget-g_flag_controller_only.py diff --cc tests/ftests/010-cgget-g_flag_controller_and_cgroup.py index 00000000,9059cd4b..9059cd4b mode 000000,100755..100755 --- a/tests/ftests/010-cgget-g_flag_controller_and_cgroup.py +++ b/tests/ftests/010-cgget-g_flag_controller_and_cgroup.py diff --cc tests/ftests/011-cgget-r_flag_two_cgroups.py index 00000000,128bab8d..128bab8d mode 000000,100755..100755 --- a/tests/ftests/011-cgget-r_flag_two_cgroups.py +++ b/tests/ftests/011-cgget-r_flag_two_cgroups.py diff --cc tests/ftests/012-cgget-multiple_r_flags2.py index 00000000,493769f9..493769f9 mode 000000,100755..100755 --- a/tests/ftests/012-cgget-multiple_r_flags2.py +++ b/tests/ftests/012-cgget-multiple_r_flags2.py diff --cc tests/ftests/013-cgget-multiple_g_flags.py index 00000000,96ba15a3..96ba15a3 mode 000000,100755..100755 --- a/tests/ftests/013-cgget-multiple_g_flags.py +++ b/tests/ftests/013-cgget-multiple_g_flags.py diff --cc tests/ftests/014-cgget-a_flag.py index 00000000,6e97820a..6e97820a mode 000000,100755..100755 --- a/tests/ftests/014-cgget-a_flag.py +++ b/tests/ftests/014-cgget-a_flag.py diff --cc tests/ftests/015-cgget-multiline_r_flag.py index 00000000,fc9f3c66..fc9f3c66 mode 000000,100755..100755 --- a/tests/ftests/015-cgget-multiline_r_flag.py +++ b/tests/ftests/015-cgget-multiline_r_flag.py diff --cc tests/ftests/016-cgget-invalid_options.py index 00000000,55d36633..55d36633 mode 000000,100755..100755 --- a/tests/ftests/016-cgget-invalid_options.py +++ b/tests/ftests/016-cgget-invalid_options.py diff --cc tests/ftests/017-cgconfig-load_file.py index 00000000,53490b76..53490b76 mode 000000,100755..100755 --- a/tests/ftests/017-cgconfig-load_file.py +++ b/tests/ftests/017-cgconfig-load_file.py diff --cc tests/ftests/018-cgconfig-load_dir.py index 00000000,fe5e1174..fe5e1174 mode 000000,100755..100755 --- a/tests/ftests/018-cgconfig-load_dir.py +++ b/tests/ftests/018-cgconfig-load_dir.py diff --cc tests/ftests/019-cgconfig-uidgid_dperm_fperm.py index 00000000,12758d99..12758d99 mode 000000,100755..100755 --- a/tests/ftests/019-cgconfig-uidgid_dperm_fperm.py +++ b/tests/ftests/019-cgconfig-uidgid_dperm_fperm.py diff --cc tests/ftests/020-cgconfig-tasks_perms_owner.py index 00000000,65c1410d..65c1410d mode 000000,100755..100755 --- a/tests/ftests/020-cgconfig-tasks_perms_owner.py +++ b/tests/ftests/020-cgconfig-tasks_perms_owner.py diff --cc tests/ftests/021-cgconfig-invalid_options.py index 00000000,09e83a96..09e83a96 mode 000000,100755..100755 --- a/tests/ftests/021-cgconfig-invalid_options.py +++ b/tests/ftests/021-cgconfig-invalid_options.py diff --cc tests/ftests/022-cgset-multiple_r_flag.py index 00000000,07b9527d..07b9527d mode 000000,100755..100755 --- a/tests/ftests/022-cgset-multiple_r_flag.py +++ b/tests/ftests/022-cgset-multiple_r_flag.py diff --cc tests/ftests/023-cgset-copy_from.py index 00000000,33c4f416..33c4f416 mode 000000,100755..100755 --- a/tests/ftests/023-cgset-copy_from.py +++ b/tests/ftests/023-cgset-copy_from.py diff --cc tests/ftests/025-cgset-multiple_cgroups.py index 00000000,3c1ae63f..3c1ae63f mode 000000,100755..100755 --- a/tests/ftests/025-cgset-multiple_cgroups.py +++ b/tests/ftests/025-cgset-multiple_cgroups.py diff --cc tests/ftests/026-cgset-multiple_r_multiple_cgroup.py index 00000000,fcd5d32c..fcd5d32c mode 000000,100755..100755 --- a/tests/ftests/026-cgset-multiple_r_multiple_cgroup.py +++ b/tests/ftests/026-cgset-multiple_r_multiple_cgroup.py diff --cc tests/ftests/027-cgset-invalid_options.py index 00000000,64a23128..64a23128 mode 000000,100755..100755 --- a/tests/ftests/027-cgset-invalid_options.py +++ b/tests/ftests/027-cgset-invalid_options.py diff --cc tests/ftests/029-lssubsys-basic_lssubsys.py index 00000000,973f8ce5..973f8ce5 mode 000000,100755..100755 --- a/tests/ftests/029-lssubsys-basic_lssubsys.py +++ b/tests/ftests/029-lssubsys-basic_lssubsys.py diff --cc tests/ftests/030-lssubsys-lssubsys_all.py index 00000000,ec9a3b71..ec9a3b71 mode 000000,100755..100755 --- a/tests/ftests/030-lssubsys-lssubsys_all.py +++ b/tests/ftests/030-lssubsys-lssubsys_all.py diff --cc tests/ftests/031-lscgroup-g_flag.py index 00000000,23348ee6..23348ee6 mode 000000,100755..100755 --- a/tests/ftests/031-lscgroup-g_flag.py +++ b/tests/ftests/031-lscgroup-g_flag.py diff --cc tests/ftests/032-lscgroup-multiple_g_flags.py index 00000000,2502d9cd..2502d9cd mode 000000,100755..100755 --- a/tests/ftests/032-lscgroup-multiple_g_flags.py +++ b/tests/ftests/032-lscgroup-multiple_g_flags.py diff --cc tests/ftests/033-cgget-no_flags.py index 00000000,d8d5e8de..d8d5e8de mode 000000,100755..100755 --- a/tests/ftests/033-cgget-no_flags.py +++ b/tests/ftests/033-cgget-no_flags.py diff --cc tests/ftests/034-cgexec-basic_cgexec.py index 00000000,79255a86..79255a86 mode 000000,100755..100755 --- a/tests/ftests/034-cgexec-basic_cgexec.py +++ b/tests/ftests/034-cgexec-basic_cgexec.py diff --cc tests/ftests/035-cgset-set_cgroup_type.py index 00000000,d91fa2e4..d91fa2e4 mode 000000,100755..100755 --- a/tests/ftests/035-cgset-set_cgroup_type.py +++ b/tests/ftests/035-cgset-set_cgroup_type.py diff --cc tests/ftests/036-cgset-multi_thread.py index 00000000,b2c38b9c..b2c38b9c mode 000000,100755..100755 --- a/tests/ftests/036-cgset-multi_thread.py +++ b/tests/ftests/036-cgset-multi_thread.py diff --cc tests/ftests/037-cgxget-cpu_settings.py index 00000000,80329021..80329021 mode 000000,100755..100755 --- a/tests/ftests/037-cgxget-cpu_settings.py +++ b/tests/ftests/037-cgxget-cpu_settings.py diff --cc tests/ftests/038-cgxget-cpuset_settings.py index 00000000,b376ecbe..b376ecbe mode 000000,100755..100755 --- a/tests/ftests/038-cgxget-cpuset_settings.py +++ b/tests/ftests/038-cgxget-cpuset_settings.py diff --cc tests/ftests/039-pybindings-cgxget.py index 00000000,4539c385..4539c385 mode 000000,100755..100755 --- a/tests/ftests/039-pybindings-cgxget.py +++ b/tests/ftests/039-pybindings-cgxget.py diff --cc tests/ftests/040-pybindings-cgxset.py index 00000000,e562093d..e562093d mode 000000,100755..100755 --- a/tests/ftests/040-pybindings-cgxset.py +++ b/tests/ftests/040-pybindings-cgxset.py diff --cc tests/ftests/041-pybindings-library_version.py index 00000000,1205799a..1205799a mode 000000,100755..100755 --- a/tests/ftests/041-pybindings-library_version.py +++ b/tests/ftests/041-pybindings-library_version.py diff --cc tests/ftests/042-cgxget-unmappable.py index 00000000,c558e925..c558e925 mode 000000,100755..100755 --- a/tests/ftests/042-cgxget-unmappable.py +++ b/tests/ftests/042-cgxget-unmappable.py diff --cc tests/ftests/043-cgcreate-empty_controller.py index 00000000,ddb4afe0..ddb4afe0 mode 000000,100755..100755 --- a/tests/ftests/043-cgcreate-empty_controller.py +++ b/tests/ftests/043-cgcreate-empty_controller.py diff --cc tests/ftests/044-pybindings-cgcreate_empty_controller.py index 00000000,1edc95c6..1edc95c6 mode 000000,100755..100755 --- a/tests/ftests/044-pybindings-cgcreate_empty_controller.py +++ b/tests/ftests/044-pybindings-cgcreate_empty_controller.py diff --cc tests/ftests/045-pybindings-list_mount_points.py index 00000000,5e51c562..5e51c562 mode 000000,100755..100755 --- a/tests/ftests/045-pybindings-list_mount_points.py +++ b/tests/ftests/045-pybindings-list_mount_points.py diff --cc tests/ftests/046-cgexec-empty_controller.py index 00000000,ba8716db..ba8716db mode 000000,100755..100755 --- a/tests/ftests/046-cgexec-empty_controller.py +++ b/tests/ftests/046-cgexec-empty_controller.py diff --cc tests/ftests/047-cgcreate-delete_cgrp_shared_mnt.py index 00000000,1d5e59cc..1d5e59cc mode 000000,100755..100755 --- a/tests/ftests/047-cgcreate-delete_cgrp_shared_mnt.py +++ b/tests/ftests/047-cgcreate-delete_cgrp_shared_mnt.py diff --cc tests/ftests/999-stress-cgroup_init.py index 00000000,0127c869..0127c869 mode 000000,100755..100755 --- a/tests/ftests/999-stress-cgroup_init.py +++ b/tests/ftests/999-stress-cgroup_init.py diff --cc tests/ftests/Makefile.am index 00000000,15436553..15436553 mode 000000,100644..100644 --- a/tests/ftests/Makefile.am +++ b/tests/ftests/Makefile.am diff --cc tests/ftests/README.md index 00000000,ed3dcb68..ed3dcb68 mode 000000,100644..100644 --- a/tests/ftests/README.md +++ b/tests/ftests/README.md diff --cc tests/ftests/__init__.py index 00000000,00000000..e69de29b new file mode 100644 --- /dev/null +++ b/tests/ftests/__init__.py diff --cc tests/ftests/cgroup.py index 00000000,9c4fd5cd..9c4fd5cd mode 000000,100644..100644 --- a/tests/ftests/cgroup.py +++ b/tests/ftests/cgroup.py diff --cc tests/ftests/config.py index 00000000,e14d28fe..e14d28fe mode 000000,100644..100644 --- a/tests/ftests/config.py +++ b/tests/ftests/config.py diff --cc tests/ftests/consts.py index 00000000,7891aace..7891aace mode 000000,100644..100644 --- a/tests/ftests/consts.py +++ b/tests/ftests/consts.py diff --cc tests/ftests/container.py index 00000000,a54f6a3a..a54f6a3a mode 000000,100644..100644 --- a/tests/ftests/container.py +++ b/tests/ftests/container.py diff --cc tests/ftests/controller.py index 00000000,b80b7c5c..b80b7c5c mode 000000,100644..100644 --- a/tests/ftests/controller.py +++ b/tests/ftests/controller.py diff --cc tests/ftests/ftests-nocontainer.sh index 00000000,6ac4bdca..6ac4bdca mode 000000,100755..100755 --- a/tests/ftests/ftests-nocontainer.sh +++ b/tests/ftests/ftests-nocontainer.sh diff --cc tests/ftests/ftests.py index 00000000,d888fcd9..d888fcd9 mode 000000,100755..100755 --- a/tests/ftests/ftests.py +++ b/tests/ftests/ftests.py diff --cc tests/ftests/ftests.sh index 00000000,25b0ca20..25b0ca20 mode 000000,100755..100755 --- a/tests/ftests/ftests.sh +++ b/tests/ftests/ftests.sh diff --cc tests/ftests/log.py index 00000000,b1763c17..b1763c17 mode 000000,100644..100644 --- a/tests/ftests/log.py +++ b/tests/ftests/log.py diff --cc tests/ftests/process.py index 00000000,c4530d22..c4530d22 mode 000000,100644..100644 --- a/tests/ftests/process.py +++ b/tests/ftests/process.py diff --cc tests/ftests/run.py index 00000000,d7e84431..d7e84431 mode 000000,100644..100644 --- a/tests/ftests/run.py +++ b/tests/ftests/run.py diff --cc tests/ftests/utils.py index 00000000,61e4df6e..61e4df6e mode 000000,100644..100644 --- a/tests/ftests/utils.py +++ b/tests/ftests/utils.py diff --cc tests/gunit/.gitignore index 00000000,3308721f..3308721f mode 000000,100644..100644 --- a/tests/gunit/.gitignore +++ b/tests/gunit/.gitignore diff --cc tests/gunit/001-path.cpp index 00000000,5bf85324..5bf85324 mode 000000,100644..100644 --- a/tests/gunit/001-path.cpp +++ b/tests/gunit/001-path.cpp diff --cc tests/gunit/002-cgroup_parse_rules_options.cpp index 00000000,63d3c626..63d3c626 mode 000000,100644..100644 --- a/tests/gunit/002-cgroup_parse_rules_options.cpp +++ b/tests/gunit/002-cgroup_parse_rules_options.cpp diff --cc tests/gunit/003-cg_get_cgroups_from_proc_cgroups.cpp index 00000000,e03139f2..e03139f2 mode 000000,100644..100644 --- a/tests/gunit/003-cg_get_cgroups_from_proc_cgroups.cpp +++ b/tests/gunit/003-cg_get_cgroups_from_proc_cgroups.cpp diff --cc tests/gunit/004-cgroup_compare_ignore_rule.cpp index 00000000,13d6f481..13d6f481 mode 000000,100644..100644 --- a/tests/gunit/004-cgroup_compare_ignore_rule.cpp +++ b/tests/gunit/004-cgroup_compare_ignore_rule.cpp diff --cc tests/gunit/005-cgroup_compare_wildcard_procname.cpp index 00000000,cea19eab..cea19eab mode 000000,100644..100644 --- a/tests/gunit/005-cgroup_compare_wildcard_procname.cpp +++ b/tests/gunit/005-cgroup_compare_wildcard_procname.cpp diff --cc tests/gunit/006-cgroup_get_cgroup.cpp index 00000000,e2f43f97..e2f43f97 mode 000000,100644..100644 --- a/tests/gunit/006-cgroup_get_cgroup.cpp +++ b/tests/gunit/006-cgroup_get_cgroup.cpp diff --cc tests/gunit/007-cgroup_process_v1_mount.cpp index 00000000,f661e70a..f661e70a mode 000000,100644..100644 --- a/tests/gunit/007-cgroup_process_v1_mount.cpp +++ b/tests/gunit/007-cgroup_process_v1_mount.cpp diff --cc tests/gunit/008-cgroup_process_v2_mount.cpp index 00000000,84597893..84597893 mode 000000,100644..100644 --- a/tests/gunit/008-cgroup_process_v2_mount.cpp +++ b/tests/gunit/008-cgroup_process_v2_mount.cpp diff --cc tests/gunit/009-cgroup_set_values_recursive.cpp index 00000000,eeaf8ec0..eeaf8ec0 mode 000000,100644..100644 --- a/tests/gunit/009-cgroup_set_values_recursive.cpp +++ b/tests/gunit/009-cgroup_set_values_recursive.cpp diff --cc tests/gunit/010-cgroup_chown_chmod_tasks.cpp index 00000000,7ad351e3..7ad351e3 mode 000000,100644..100644 --- a/tests/gunit/010-cgroup_chown_chmod_tasks.cpp +++ b/tests/gunit/010-cgroup_chown_chmod_tasks.cpp diff --cc tests/gunit/011-cgroupv2_subtree_control.cpp index 00000000,05ab8f5a..05ab8f5a mode 000000,100644..100644 --- a/tests/gunit/011-cgroupv2_subtree_control.cpp +++ b/tests/gunit/011-cgroupv2_subtree_control.cpp diff --cc tests/gunit/012-cgroup_create_cgroup.cpp index 00000000,dbe7c534..dbe7c534 mode 000000,100644..100644 --- a/tests/gunit/012-cgroup_create_cgroup.cpp +++ b/tests/gunit/012-cgroup_create_cgroup.cpp diff --cc tests/gunit/013-cgroup_build_tasks_procs_path.cpp index 00000000,d5392cdc..d5392cdc mode 000000,100644..100644 --- a/tests/gunit/013-cgroup_build_tasks_procs_path.cpp +++ b/tests/gunit/013-cgroup_build_tasks_procs_path.cpp diff --cc tests/gunit/014-cgroupv2_get_subtree_control.cpp index 00000000,a0b8e226..a0b8e226 mode 000000,100644..100644 --- a/tests/gunit/014-cgroupv2_get_subtree_control.cpp +++ b/tests/gunit/014-cgroupv2_get_subtree_control.cpp diff --cc tests/gunit/015-cgroupv2_controller_enabled.cpp index 00000000,f5ad47c2..f5ad47c2 mode 000000,100644..100644 --- a/tests/gunit/015-cgroupv2_controller_enabled.cpp +++ b/tests/gunit/015-cgroupv2_controller_enabled.cpp diff --cc tests/gunit/016-cgset_parse_r_flag.cpp index 00000000,728c98b6..728c98b6 mode 000000,100644..100644 --- a/tests/gunit/016-cgset_parse_r_flag.cpp +++ b/tests/gunit/016-cgset_parse_r_flag.cpp diff --cc tests/gunit/Makefile.am index 00000000,ba91039c..ba91039c mode 000000,100644..100644 --- a/tests/gunit/Makefile.am +++ b/tests/gunit/Makefile.am diff --cc tests/gunit/gtest.cpp index 00000000,b48200b0..b48200b0 mode 000000,100644..100644 --- a/tests/gunit/gtest.cpp +++ b/tests/gunit/gtest.cpp diff --cc tests/gunit/libcgroup_unittest.map index 00000000,d2af56c2..d2af56c2 mode 000000,100644..100644 --- a/tests/gunit/libcgroup_unittest.map +++ b/tests/gunit/libcgroup_unittest.map