From 57bd33d0e790b282568be616e27a5f9d8780a961 Mon Sep 17 00:00:00 2001 From: Mitchell Negus Date: Wed, 10 Feb 2021 11:29:06 -0800 Subject: [PATCH] created run script for facilitating protocol with arbitrary length vectors --- .../{simple_evaluator.dat => 2d_evaluator.dat} | 0 .../{simple_generator.dat => 2d_generator.dat} | 0 test/oblivc/euclidean/3d_evaluator.dat | 3 +++ test/oblivc/euclidean/3d_generator.dat | 3 +++ test/oblivc/euclidean/run_protocol.sh | 12 ++++++++++++ 5 files changed, 18 insertions(+) rename test/oblivc/euclidean/{simple_evaluator.dat => 2d_evaluator.dat} (100%) rename test/oblivc/euclidean/{simple_generator.dat => 2d_generator.dat} (100%) create mode 100644 test/oblivc/euclidean/3d_evaluator.dat create mode 100644 test/oblivc/euclidean/3d_generator.dat create mode 100644 test/oblivc/euclidean/run_protocol.sh diff --git a/test/oblivc/euclidean/simple_evaluator.dat b/test/oblivc/euclidean/2d_evaluator.dat similarity index 100% rename from test/oblivc/euclidean/simple_evaluator.dat rename to test/oblivc/euclidean/2d_evaluator.dat diff --git a/test/oblivc/euclidean/simple_generator.dat b/test/oblivc/euclidean/2d_generator.dat similarity index 100% rename from test/oblivc/euclidean/simple_generator.dat rename to test/oblivc/euclidean/2d_generator.dat diff --git a/test/oblivc/euclidean/3d_evaluator.dat b/test/oblivc/euclidean/3d_evaluator.dat new file mode 100644 index 00000000..bb0b1cf6 --- /dev/null +++ b/test/oblivc/euclidean/3d_evaluator.dat @@ -0,0 +1,3 @@ +0 +0 +0 diff --git a/test/oblivc/euclidean/3d_generator.dat b/test/oblivc/euclidean/3d_generator.dat new file mode 100644 index 00000000..e2e8ea09 --- /dev/null +++ b/test/oblivc/euclidean/3d_generator.dat @@ -0,0 +1,3 @@ +3 +4 +5 diff --git a/test/oblivc/euclidean/run_protocol.sh b/test/oblivc/euclidean/run_protocol.sh new file mode 100644 index 00000000..0033b2c1 --- /dev/null +++ b/test/oblivc/euclidean/run_protocol.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Prepare the prefix, if given +if [ $1 ]; then + prefix="$1_" +else + prefix="" +fi + +# Run the protocol executable +./a.out localhost:1234 1 ${prefix}generator.dat & +./a.out localhost:1234 2 ${prefix}evaluator.dat