diff options
author | Stefan Held <stefan_held@mentor.com> | 2015-05-28 10:56:11 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2015-06-17 08:50:39 +0200 |
commit | 9a64599a9d864e2dc2e14832eb2f0c17a497972f (patch) | |
tree | 875ad070401a04c0e81b6e923df30a81d2e7c713 /tests/start_filetransfer_test.sh | |
parent | abef04eac17f8ff270d1b3aa0a56bbca2a8ab195 (diff) | |
download | DLT-daemon-9a64599a9d864e2dc2e14832eb2f0c17a497972f.tar.gz |
changed dlt-test-receiver delete dlt-test-filetranfer make a bash script wich tests the filetransfer
Signed-off-by: Stefan Held <stefan_held@mentor.com>
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'tests/start_filetransfer_test.sh')
-rw-r--r-- | tests/start_filetransfer_test.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/start_filetransfer_test.sh b/tests/start_filetransfer_test.sh new file mode 100644 index 0000000..cd44332 --- /dev/null +++ b/tests/start_filetransfer_test.sh @@ -0,0 +1,28 @@ +#!/bin/bash +file="testfile_filetransfer.txt" +fullpath="$(pwd)/testfile_filetransfer.txt" + +#start dlt-daemon +dlt-daemon & +#start dlt-test-receiver +./../build/tests/dlt_test_receiver localhost & +#send file to daemon +dlt-example-filetransfer $fullpath & + + +md5_1=($(md5sum $file)) +md5_2=($(md5sum /tmp/$file)) + + +echo $md5_1 +echo $md5_2 + +tput setaf 1 +if [ $md5_1 == $md5_2 ] +then + echo "Files are equal. Transfer succuess." +else + echo "File not equal. Error on transmission" +fi +tput setaf 7 +pkill dlt-daemon |