#!/bin/sh
# --------------------------------------------------------
#                Teste ao mover de ficheiros
#
#                     Output esperado                    
#
# --------------------------------------------------------
# mv: `dir3': Invalid argument
# --------------------------------------------------------
# mv: `test_1025' and `test_1025' are the same file
# --------------------------------------------------------
# .
# ..
# dir3
# --------------------------------------------------------
# /dir3
# --------------------------------------------------------
# .
# ..
# aux_1025
# aux_3073
# --------------------------------------------------------

echo
rm -rf discoC
./virtual_fs -b1024 -f10 discoC 2> error_file<<xxxCOMMANDSxxx
mkdir dir3
get file1025 test_1025
get file3073 test_3073
mv dir3 invalido
mv test_1025 test_1025
mv test_1025 aux_1025
mv test_3073 aux_3073
mv aux_1025 dir3
mv aux_3073 dir3
ls
cd dir3
pwd
ls
put aux_1025 put_1025
put aux_3073 put_3073
exit
xxxCOMMANDSxxx
echo
echo ***** nada depois desta linha *****
echo
diff file1025 put_1025
diff file3073 put_3073
rm -rf put*
