heck yeah tests

This commit is contained in:
Nikolaj
2021-12-04 11:54:31 +01:00
parent d5a66fe4c9
commit da1b940597
26 changed files with 1081287 additions and 11 deletions

13
A4/testing/test.sh Executable file
View 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