openvz: Add simple testcase for config file parsing function

This testcase passes before the regression is added in f0443765, fails
after that commit and passes again after the regression was fixed.
This commit is contained in:
Matthias Bolte
2011-05-26 19:45:41 +02:00
parent 83ea7c1b76
commit 4a3a029024
5 changed files with 152 additions and 1 deletions

View File

@@ -0,0 +1,41 @@
# sample config from http://blog.lystor.org.ua/2009/11/openvz-configuration-example.html
ONBOOT="yes"
# Primary parameters
NUMPROC="8000:8000"
AVNUMPROC="2257:2257"
NUMTCPSOCK="8000:8000"
NUMOTHERSOCK="8000:8000"
VMGUARPAGES="360000:360000"
# Secondary parameters
KMEMSIZE="184953241:203448565"
TCPSNDBUF="28883080:61651080"
TCPRCVBUF="28883080:61651080"
OTHERSOCKBUF="14441540:47209540"
DGRAMRCVBUF="14441540:14441540"
OOMGUARPAGES="360000:360000"
PRIVVMPAGES="360000:360000"
# Auxiliary parameters
LOCKEDPAGES="9030:9030"
SHMPAGES="15506:15506"
PHYSPAGES="0:2147483647"
NUMFILE="72224:72224"
NUMFLOCK="1000:1100"
NUMPTY="512:512"
NUMSIGINFO="1024:1024"
DCACHESIZE="40389343:41601024"
NUMIPTENT="200:200"
DISKSPACE="107733379:118506717"
DISKINODES="55287781:60816560"
CPUUNITS="150550"
# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE=""
DISKINODES=""
QUOTATIME=""
DISK_QUOTA=no
OSTEMPLATE="rhel-5-lystor"
IP_ADDRESS="194.44.18.88"