#!/bin/sh
# --------------------------------------------------------
#              Teste  criao de ficheiros
#
#                     Output esperado                    
#
# --------------------------------------------------------
# get: cannot create file `excede_tamanho_permitido': File name too long
# --------------------------------------------------------
# get: cannot create file `test_1024': File exists
# --------------------------------------------------------
# /
# --------------------------------------------------------
# .
# ..
# nome_com_tamanho_maximo
# test_1024
# test_1025
# test_3073
# --------------------------------------------------------

echo
rm -rf discoC
./virtual_fs -b1024 -f10 discoC 2> error_file<<xxxCOMMANDSxxx
get file1024 nome_com_tamanho_maximo
get file1024 excede_tamanho_permitido
get file1024 test_1024
get file1025 test_1025
get file3073 test_3073
get file1024 test_1024
pwd
ls
put test_1024 put_1024
put test_1025 put_1025
put test_3073 put_3073
exit
xxxCOMMANDSxxx
echo
echo ***** nada depois desta linha *****
echo 
diff file1024 put_1024
diff file1025 put_1025
diff file3073 put_3073
rm -rf put_*
