/usr/share/cgmanager/tests/test20.sh is in cgmanager-tests 0.39-2ubuntu5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/bash
echo "Test 20: ListChildren"
# Simple case: current directory
cgm listchildren memory ''
if [ $? -ne 0 ]; then
echo "Failed to read current directory"
exit 1
fi
# nonexistent cgroup
cgm remove memory ooga2
cgm listchildren memory ooga2
if [ $? -eq 0 ]; then
echo "Wrong result listing nonexistent directory"
exit 1
fi
# empty cgroup
cgm create memory ooga
cgm listchildren memory ooga
if [ $? -ne 0 ]; then
echo "Failed to list empty directory"
exit 1
fi
exit 0
|