heck yeah tests
This commit is contained in:
13
A4/testing/test.sh
Executable file
13
A4/testing/test.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#! /usr/bin/bash
|
||||
|
||||
# Deletes previously downloaded files from the downloading peer
|
||||
rm ./peer2/*.txt
|
||||
|
||||
# Runs the peer
|
||||
./peer1/cascade ./peer1/shakespeare.1kib.txt.cascade 127.0.0.1 8888 127.0.0.1 5555 p &
|
||||
|
||||
# Runs the downloading client
|
||||
./peer2/cascade ./peer2/shakespeare.1kib.txt.cascade 127.0.0.1 8888 127.0.0.1 5556 d
|
||||
|
||||
# Kills the peer
|
||||
killall cascade
|
Reference in New Issue
Block a user