~ubuntu-branches/ubuntu/trusty/cgmanager/trusty-backports

« back to all changes in this revision

Viewing changes to tests/test23.sh

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2015-10-15 12:32:18 UTC
  • mfrom: (26.1.43 wily)
  • Revision ID: package-import@ubuntu.com-20151015123218-tbjmj12qp7c3n7ve
Tags: 0.39-2ubuntu2~ubuntu14.04.1
No-change backport to trusty

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
echo "Test 23: listcontrollers"
 
4
 
 
5
for x in `cgm listcontrollers`; do
 
6
        if ! grep -q $x /proc/self/cgroup; then
 
7
                echo "Bad controller: $x"
 
8
                exit 1
 
9
        fi
 
10
done
 
11
 
 
12
echo PASS