Difference between revisions of "Test Scripts"

From Linux-VServer

Jump to: navigation, search
(testfs.sh script)
(testfs.sh script)
 
Line 36: Line 36:
 
  # Become root
 
  # Become root
 
  su
 
  su
 
+
 
  # Setup the loopback
 
  # Setup the loopback
 
  losetup /dev/loop0 1gb.testfile
 
  losetup /dev/loop0 1gb.testfile
 
+
 
  # Run the test script for legacy mode
 
  # Run the test script for legacy mode
 
  ./testfs.sh -l -t -D /dev/loop0 -M /mnt
 
  ./testfs.sh -l -t -D /dev/loop0 -M /mnt

Latest revision as of 16:22, 9 September 2014

[edit] 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


[edit] 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 (sparse) loopback file
fallocate -l 1G  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