From 60cd6e998dac247debf13e93f57152e9a22d8512 Mon Sep 17 00:00:00 2001
From: "Reuben D. Budiardja" <reuben@budiardja.org>
Date: Mon, 2 May 2016 10:57:24 -0400
Subject: [PATCH] Updated joblaunch retest to try out different XALT
 transmission method.

---
 joblaunch/1.0/cle5.2/retest | 28 +++++++++++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)

diff --git a/joblaunch/1.0/cle5.2/retest b/joblaunch/1.0/cle5.2/retest
index ac66b4f..e5f0038 100755
--- a/joblaunch/1.0/cle5.2/retest
+++ b/joblaunch/1.0/cle5.2/retest
@@ -68,13 +68,31 @@ cd \$PBS_O_WORKDIR
 TIME="/usr/bin/time -f 'elapsed %e'"
 UPTIME=/usr/bin/uptime
 
+module load xalt/0.7.1
+
 #-- Wrapped aprun and Real aprun:
 W_APRUN=`which aprun`
 R_APRUN=/usr/bin/aprun
 
 #-- Test with XALT's aprun wrapper
+
+#-- directdb
+export XALT_TRANSMISSION_STYLE=directdb
+echo "W_APRUN: \$W_APRUN" | tee -a ${SW_BLDDIR}/.running
+echo "XALT_TRANSMISSION_STYLE: \$XALT_TRANSMISSION_STYLE" | tee -a ${SW_BLDDIR}/.running
+eval \$TIME \$W_APRUN -n 1 \$UPTIME 2>&1 | tee x_aprun_directdb.log | tee -a ${SW_BLDDIR}/.running
+
+#-- file
+export XALT_TRANSMISSION_STYLE=file
+echo "W_APRUN: \$W_APRUN" | tee -a ${SW_BLDDIR}/.running
+echo "XALT_TRANSMISSION_STYLE: \$XALT_TRANSMISSION_STYLE" | tee -a ${SW_BLDDIR}/.running
+eval \$TIME \$W_APRUN -n 1 \$UPTIME 2>&1 | tee x_aprun_file.log | tee -a ${SW_BLDDIR}/.running
+
+#-- syslog
+export XALT_TRANSMISSION_STYLE=syslog
 echo "W_APRUN: \$W_APRUN" | tee -a ${SW_BLDDIR}/.running
-eval \$TIME \$W_APRUN -n 1 \$UPTIME 2>&1 | tee w_aprun.log | tee -a ${SW_BLDDIR}/.running
+echo "XALT_TRANSMISSION_STYLE: \$XALT_TRANSMISSION_STYLE" | tee -a ${SW_BLDDIR}/.running
+eval \$TIME \$W_APRUN -n 1 \$UPTIME 2>&1 | tee x_aprun_syslog.log | tee -a ${SW_BLDDIR}/.running
 
 #-- Test with real aprun
 echo "R_APRUN: \$R_APRUN" | tee -a ${SW_BLDDIR}/.running
@@ -82,8 +100,12 @@ eval \$TIME \$R_APRUN -n 1 \$UPTIME 2>&1 | tee r_aprun.log | tee -a ${SW_BLDDIR}
 
 echo "verified" > ${SW_BLDDIR}/status
 
-grep elapsed w_aprun.log | grep -v time | awk '{print "YVALUE=",\$2}' \
-  | sed 's/ //g' > ${SW_BLDDIR}/w_aprun
+grep elapsed x_aprun_directdb.log | grep -v time | awk '{print "YVALUE=",\$2}' \
+  | sed 's/ //g' > ${SW_BLDDIR}/x_aprun_directdb
+grep elapsed x_aprun_file.log | grep -v time | awk '{print "YVALUE=",\$2}' \
+  | sed 's/ //g' > ${SW_BLDDIR}/x_aprun_file
+grep elapsed x_aprun_syslog.log | grep -v time | awk '{print "YVALUE=",\$2}' \
+  | sed 's/ //g' > ${SW_BLDDIR}/x_aprun_syslog
 grep elapsed r_aprun.log | grep -v time | awk '{print "YVALUE=",\$2}' \
   | sed 's/ //g' > ${SW_BLDDIR}/r_aprun
 
-- 
GitLab