aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/test_data_pack.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test_data_pack.sh')
-rw-r--r--scripts/test_data_pack.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/scripts/test_data_pack.sh b/scripts/test_data_pack.sh
index 995af51..e4da738 100644
--- a/scripts/test_data_pack.sh
+++ b/scripts/test_data_pack.sh
@@ -7,6 +7,9 @@ bname=`basename $0 .sh`
. $sdir/setup-machine-arch.sh
+logfile=~/${bname}-${archabi}.log
+rm -f $logfile
+
dist_dir=${rootdir}/dist-${archabi}
if [ ! -e ${dist_dir} ] ; then
echo build first
@@ -19,10 +22,15 @@ if [ ! -e bin/cipherpack -o ! -e lib/libelevator.so ] ; then
exit 1
fi
-#for i in ../test_data/data-10kiB.bin ../test_data/data-64kB.bin ../test_data/data-382MB.mkv ../test_data/data-1GB.mkv ; do
+do_test() {
+ echo logfile $logfile
+
+ #for i in ../test_data_local/data-10kiB.bin ../test_data_local/data-64kB.bin ../test_data_local/data-382MB.mkv ../test_data_local/data-1GB.mkv ; do
+ for i in ../test_data_local/*.bin ; do
+ ../scripts/run_cipherpack.sh pack -epk ../test_keys/terminal_rsa1.pub.pem -epk ../test_keys/terminal_rsa2.pub.pem -epk ../test_keys/terminal_rsa3.pub.pem \
+ -ssk ../test_keys/host_rsa1 -in $i -target_path $i -version 201 -version_parent 200 -out $i.enc
+ done
+}
-for i in ../test_data/data-10kiB.bin ../test_data/data-64kB.bin ; do
- ../scripts/run_cipherpack.sh pack -epk ../test_keys/terminal_rsa1.pub.pem -epk ../test_keys/terminal_rsa2.pub.pem -epk ../test_keys/terminal_rsa3.pub.pem \
- -ssk ../test_keys/host_rsa1 -in $i -target_path $i -version 201 -version_parent 200 -out $i.enc
-done
+do_test 2>&1 | tee $logfile