X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=labo2-fsharp%2Frun_tests.sh;h=5c000fa1eff3754286bead66bfff98234f47549d;hb=61a8b3492e89e883b23c158eb52ba2b070234df8;hp=3f42fa27be7372f67a563c541e03f283692719e4;hpb=19a9446e4042d5e451f1ae0534ffba242d33879e;p=crypto_lab2.git diff --git a/labo2-fsharp/run_tests.sh b/labo2-fsharp/run_tests.sh index 3f42fa2..5c000fa 100755 --- a/labo2-fsharp/run_tests.sh +++ b/labo2-fsharp/run_tests.sh @@ -1,17 +1,21 @@ #/usr/bin/env bash -xbuild /p:Configuration=Release labo2-fsharp.sln +xbuild /p:Configuration=Debug labo2-fsharp.sln + +export MONO_TRACE_LISTENER=Console.Error + +CryptoFileTests/bin/Debug/CryptoFileTests.exe tests echo "Plaintext:" cat plaintext.txt echo # Encrypt the file 'plaintext.txt'. -CryptoFileTests/bin/Release/CryptoFileTests.exe encrypt plaintext.txt ciphertext +CryptoFileTests/bin/Debug/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 +CryptoFileTests/bin/Debug/CryptoFileTests.exe decrypt ciphertext output echo "Decrypted ciphertext:" cat output/plaintext.txt