From c1fc9e2c6b4f8aa6614698b840ebc102adf36110 Mon Sep 17 00:00:00 2001 From: Alexander Mikhalitsyn Date: Wed, 2 Oct 2024 11:24:14 +0200 Subject: [PATCH] tests: add proc readdir test Signed-off-by: Alexander Mikhalitsyn --- tests/test_proc.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_proc.in b/tests/test_proc.in index 1ea4e4b1..92695eb8 100755 --- a/tests/test_proc.in +++ b/tests/test_proc.in @@ -65,6 +65,12 @@ fi echo $((64*1024*1024)) > ${mempath}/lxcfs_test_proc/${memory_limit_file} echo 0 > ${cpupath}/lxcfs_test_proc/cpuset.cpus +# Test that readdir on /proc basically works +ls -l ${LXCFSDIR}/proc | grep uptime +ls -l ${LXCFSDIR}/proc | grep cpuinfo +ls -l ${LXCFSDIR}/proc | grep stat +ls -l ${LXCFSDIR}/proc | grep meminfo + # Test uptime echo "==> Testing /proc/uptime" grep -Eq "^0.[0-9]{2} 0.[0-9]{2}$" ${LXCFSDIR}/proc/uptime