Skip to content
Snippets Groups Projects
Commit f938ee7f authored by Giovanna Lazzari Miotto's avatar Giovanna Lazzari Miotto :mushroom:
Browse files

automate writing and comparison

parent 3fa3330c
No related branches found
No related tags found
No related merge requests found
Pipeline #8029091 failed
sudo rm /home/glazzari/random_baseline
sudo rm /mnt/famfs/cat*
sudo g++ creat_test.cpp -o test
alloc_size=4096
file_size=400
echo "Allocating..."
sudo ../../../famfs/debug/famfs creat -s ${alloc_size} /mnt/famfs/catty_write
sudo ../../../famfs/debug/famfs creat -s ${alloc_size} /mnt/famfs/catty_fwrite
sudo ../../../famfs/debug/famfs creat -s ${alloc_size} /mnt/famfs/catty_mmap
echo "Writing..."
sudo ./test /mnt/famfs/ catty ${file_size}
echo "Reporting diffs to baseline..."
sudo diff --report-identical-files /home/glazzari/random_baseline /mnt/famfs/catty_write
sudo diff --report-identical-files /home/glazzari/random_baseline /mnt/famfs/catty_fwrite
sudo diff --report-identical-files /home/glazzari/random_baseline /mnt/famfs/catty_mmap
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment