Test Scripts

From Linux-VServer

Revision as of 16:09, 9 September 2014 by BenjaminGreen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

testme.sh script

To be sure that your setup works fine, we got a test script that checks some basic functionality. So download the [testme.sh] script and check if everything's fine.

# Get the script
wget http://vserver.13thfloor.at/Stuff/SCRIPT/testme.sh

# Make it executable
chmod +x testme.sh 

# Become root
su

# Run the test script
./testme.sh


testfs.sh script

To be sure that your setup works fine, we got a test script that checks some filesystem functionality. So download the [testfs.sh] script and check if everything's fine.

Be careful! It might easily reformat your hard disk :)

# Get the script
wget http://vserver.13thfloor.at/Stuff/SCRIPT/testfs.sh

# Make it executable
chmod +x testfs.sh

# Make a loopback file
dd bs=1024k count=1024 if=/dev/zero of=1gb.testfile

# Become root
su
# Setup the loopback
losetup /dev/loop0 1gb.testfile
# Run the test script for legacy mode
./testfs.sh -l -t -D /dev/loop0 -M /mnt

# Run the test script for new-style config
./testfs.sh -t -D /dev/loop0 -M /mnt

If the script shows any errors, feel free to join us on irc (#vserver @ OFTC) or ask on the [mailing list]. If you ask on the mailing list, don't forget to include your kernel version, the version of the Linux-VServer patch, the version of util-vserver and of course the output of the test script.

Personal tools