Report almost done.
[crypto_lab2.git] / labo2-fsharp / run_tests.sh
1 #/usr/bin/env bash
2 xbuild /p:Configuration=Release labo2-fsharp.sln
3
4 echo "Plaintext:"
5 cat plaintext.txt
6 echo
7
8 # Encrypt the file 'plaintext.txt'.
9 CryptoFileTests/bin/Release/CryptoFileTests.exe encrypt plaintext.txt ciphertext
10
11 # Decrypt the file 'ciphertext' to the directory 'output'.
12 rm -r output
13 mkdir output
14 CryptoFileTests/bin/Release/CryptoFileTests.exe decrypt ciphertext output
15
16 echo "Decrypted ciphertext:"
17 cat output/plaintext.txt
18 echo
19