#!/bin/bash

# Settings
theirBin="/home/xsedlar3/public/pb161/bitcoin" # Path to example binary
myBin="./bitcoin" # Path to my binary
params="dump" # Input to pass to both binaries
echo $params > params.in # Create a file with input as content

# Test lauches
$myBin < "test.txt" > myBin.out # Launch my binary with wanted input, save output to myBin.out
#$theirBin < params.in > myBin.out # For showing no difference result
$theirBin "./test.txt" < params.in > theirBin.out # Launch example binary with wanted input, save output to theirBin.out

# Compare for differences
diff myBin.out theirBin.out

# Cleanup
rm params.in
rm myBin.out
rm theirBin.out
