]> git.proxmox.com Git - mirror_lxcfs.git/blob - tests/test_read_proc.sh.in
util: remove doubled comment
[mirror_lxcfs.git] / tests / test_read_proc.sh.in
1 #/bin/sh
2 # SPDX-License-Identifier: LGPL-2.1+
3
4 set -eu
5 [ -n "${DEBUG:-}" ] && set -x
6
7 DIR=${LXCFSDIR:-/var/lib/lxcfs}
8
9 if ! mountpoint -q $DIR; then
10 echo "lxcfs isn't mounted on ${DIR}"
11 exit 1
12 fi
13
14 echo "==> Testing /proc/cpuinfo"
15 {{LXCFS_BUILD_ROOT}}/tests/test-read $DIR/proc/cpuinfo 3 >/dev/null
16
17 echo "==> Testing /proc/stat"
18 {{LXCFS_BUILD_ROOT}}/tests/test-read $DIR/proc/stat 3 >/dev/null
19
20 echo "==> Testing /proc/meminfo"
21 {{LXCFS_BUILD_ROOT}}/tests/test-read $DIR/proc/meminfo 3 >/dev/null
22
23 exit 0