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

BIN
A4/testing/peer1/cascade Executable file

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
A4/testing/peer2/cascade Executable file

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

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