X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=labo2-fsharp%2Frun_tests.sh;fp=labo2-fsharp%2Frun_tests.sh;h=3f42fa27be7372f67a563c541e03f283692719e4;hb=19a9446e4042d5e451f1ae0534ffba242d33879e;hp=0000000000000000000000000000000000000000;hpb=0425c0fc231c8a5625bf7ac9b711e152de0eafaa;p=crypto_lab2.git diff --git a/labo2-fsharp/run_tests.sh b/labo2-fsharp/run_tests.sh new file mode 100755 index 0000000..3f42fa2 --- /dev/null +++ b/labo2-fsharp/run_tests.sh @@ -0,0 +1,19 @@ +#/usr/bin/env bash +xbuild /p:Configuration=Release labo2-fsharp.sln + +echo "Plaintext:" +cat plaintext.txt +echo + +# Encrypt the file 'plaintext.txt'. +CryptoFileTests/bin/Release/CryptoFileTests.exe encrypt plaintext.txt ciphertext + +# Decrypt the file 'ciphertext' to the directory 'output'. +rm -r output +mkdir output +CryptoFileTests/bin/Release/CryptoFileTests.exe decrypt ciphertext output + +echo "Decrypted ciphertext:" +cat output/plaintext.txt +echo +