From 811cb7e4c00b13789eb65a1f49e6a1e56e2616a6 Mon Sep 17 00:00:00 2001
From: Eric Cano <Eric.Cano@cern.ch>
Date: Fri, 18 Aug 2017 16:59:36 +0200
Subject: [PATCH] Added new options to client_ar.sh.

We can now get data from a different source (/dev/zero or a file). This helps test where mhvtl space is tight
(so compression can be efficient).
---
 continuousintegration/orchestration/tests/client_ar.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/continuousintegration/orchestration/tests/client_ar.sh b/continuousintegration/orchestration/tests/client_ar.sh
index 7d135d2387..dcd5007985 100644
--- a/continuousintegration/orchestration/tests/client_ar.sh
+++ b/continuousintegration/orchestration/tests/client_ar.sh
@@ -3,6 +3,7 @@
 EOSINSTANCE=ctaeos
 EOS_BASEDIR=/eos/ctaeos/cta
 TEST_FILE_NAME_BASE=test
+DATA_SOURCE=/dev/urandom
 
 NB_PROCS=1
 NB_FILES=1
@@ -18,12 +19,12 @@ die() {
 
 
 usage() { cat <<EOF 1>&2
-Usage: $0 [-n <nb_files>] [-s <file_kB_size>] [-p <# parallel procs>] [-v] [-d <eos_dest_dir>] [-e <eos_instance>]
+Usage: $0 [-n <nb_files>] [-s <file_kB_size>] [-p <# parallel procs>] [-v] [-d <eos_dest_dir>] [-e <eos_instance>] [-S <data_source_file>]
 EOF
 exit 1
 }
 
-while getopts "d:e:n:s:p:v" o; do
+while getopts "d:e:n:s:p:vS:" o; do
     case "${o}" in
         e)
             EOSINSTANCE=${OPTARG}
@@ -43,6 +44,9 @@ while getopts "d:e:n:s:p:v" o; do
         v)
             VERBOSE=1
             ;;
+        S)
+            DATA_SOURCE=${OPTARG}
+            ;;
         *)
             usage
             ;;
-- 
GitLab