aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-05-27 02:54:56 +0200
committerSven Gothel <[email protected]>2022-05-27 02:54:56 +0200
commit396c6974d83f272f76facbeefe41f477211e02ba (patch)
treee1626e4eb972740c141cff43c829cb414bc9c9ae /scripts
parent0504f46130f3cf7cdfe65f872c53414fc6eeabe1 (diff)
Restructure directories: keys -> test_keys, move test_data/pack_files.sh -> scripts/test_data_pack.sh; Add test_data-10kiB.bin*
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test_data_pack.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/test_data_pack.sh b/scripts/test_data_pack.sh
new file mode 100644
index 0000000..995af51
--- /dev/null
+++ b/scripts/test_data_pack.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+script_args="$@"
+sdir=`dirname $(readlink -f $0)`
+rootdir=`dirname $sdir`
+bname=`basename $0 .sh`
+
+. $sdir/setup-machine-arch.sh
+
+dist_dir=${rootdir}/dist-${archabi}
+if [ ! -e ${dist_dir} ] ; then
+ echo build first
+ exit 1
+fi
+cd ${dist_dir}
+
+if [ ! -e bin/cipherpack -o ! -e lib/libelevator.so ] ; then
+ echo build incomplete
+ 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
+
+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
+