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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
###############################################################################
# #
# kanif, a TakTuk wrapper for cluster management. #
# Perl implementation, copyright(C) 2007 Guillaume Huard. #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #
# #
# Contact: Guillaume.Huard@imag.fr #
# ENSIMAG - Laboratoire ID #
# 51 avenue Jean Kuntzmann #
# 38330 Montbonnot Saint Martin #
# #
###############################################################################
0:TITLE:Tests kaput
1:TITLE:PUT, Put of large random file and directory
1:CMD:echo "GENERATING DATA"
1:CMD:mkdir /tmp/src-taktuk
1:CMD:dd if=/dev/urandom of=/tmp/src-taktuk/file1 bs=1024 count=10000
1:CMD:mkdir /tmp/src-taktuk/dir
1:CMD:dd if=/dev/urandom of=/tmp/src-taktuk/dir/file2 bs=1024 count=10000
1:CMD:dd if=/dev/urandom of=/tmp/src-taktuk/dir/file3 bs=1024 count=10000
1:CMD:mkdir /tmp/dest-taktuk
1:CMD:echo "TRANSMITING"
1:CMD:$KAPUT -n localhost /tmp/src-taktuk/file1 /tmp/src-taktuk/dir /tmp/dest-taktuk
1:CMD:echo "VERIFYING"
1:CMD:ret=0
1:CMD:if diff -r /tmp/src-taktuk /tmp/dest-taktuk
1:CMD:then
1:CMD: echo "OK"
1:CMD:else
1:CMD: echo "CHECK FAILED"
1:CMD: ret=1
1:CMD:fi
1:CMD:rm -r /tmp/src-taktuk /tmp/dest-taktuk
1:CMD:exit \\\$ret
|