]>
git.proxmox.com Git - mirror_lxcfs.git/blob - tests/test_read_proc.sh.in
2 # SPDX-License-Identifier: LGPL-2.1+
5 [ -n "${DEBUG:-}" ] && set -x
7 DIR
=${LXCFSDIR:-/var/lib/lxcfs}
9 if ! mountpoint
-q $DIR; then
10 echo "lxcfs isn't mounted on ${DIR}"
14 echo "==> Testing /proc/cpuinfo"
15 {{LXCFS_BUILD_ROOT
}}/tests
/test-read
$DIR/proc
/cpuinfo
3 >/dev
/null
17 echo "==> Testing /proc/stat"
18 {{LXCFS_BUILD_ROOT
}}/tests
/test-read
$DIR/proc
/stat
3 >/dev
/null
20 echo "==> Testing /proc/meminfo"
21 {{LXCFS_BUILD_ROOT
}}/tests
/test-read
$DIR/proc
/meminfo
3 >/dev
/null