Add some tests.
[crypto_lab2.git] / labo2-fsharp / run_tests.sh
index 3f42fa2..5c000fa 100755 (executable)
@@ -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