This is an automated email from the git hooks/post-receive script.
bernie.ogden pushed a commit to branch lastwibbles in repository toolchain/lavabench.
commit 47510afcd83417a069c068ee01c6549f8bf74eec Author: Bernard Ogden bernie.ogden@linaro.org Date: Tue Jul 28 11:09:56 2015 +0200
Remove oe files
Change-Id: I96d44c630575836d21532958498d06caf353d382 --- bench-session-oe.yaml | 16 ------------ invoke_session_oe | 71 --------------------------------------------------- setup_session_oe | 14 ---------- stop_hacking_oe | 5 ---- 4 files changed, 106 deletions(-)
diff --git a/bench-session-oe.yaml b/bench-session-oe.yaml deleted file mode 100644 index 090acf6..0000000 --- a/bench-session-oe.yaml +++ /dev/null @@ -1,16 +0,0 @@ -metadata: - name: bench-session-oe - format: "Lava-Test-Shell Test Definition 1.0" - description: "SSH Benchmarking Session" - version: 1.0 - -params: - PUB_KEY: None - GATEWAY: 10.0.0.1 - LISTENER_ADDR: NONE - LISTENER_PORT: NONE - -run: - steps: - - ./setup_session_oe "$PUB_KEY" - - ./invoke_session_oe "$GATEWAY" "$LISTENER_ADDR" "$LISTENER_PORT" diff --git a/invoke_session_oe b/invoke_session_oe deleted file mode 100755 index 7af91fb..0000000 --- a/invoke_session_oe +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh -# Usage ./invoke_session <gateway> - -# Hack for now until lava-test-shell is smart enough to know it's dispatcher ip -gateway=$1 -listener_addr=$2 -listener_port=$3 -echo "Target's Gateway: $gateway" - -# Copy invoke session -cp /bin/invoke_session /etc/init.d/invoke_session - -# Obtain target IP and Hostname -#Sometimes we can't find the gateway straight away -c=0 -while test $c -lt 6; do c=$((c+1)); sleep 10; ping -c 1 ${gateway} && break; done -if test $? -ne 0; then - echo "Failed to find gateway, exiting" - echo "ifconfig -a says:" - ifconfig -a - echo "<LAVA_TEST_RUNNER>: exiting" - exit -fi -ip_addr=$(ifconfig `ip route get $gateway | cut -d ' ' -f3` | grep 'inet addr' |aw [...] -hostname=$(cat /etc/hostname) - -# Set the PATH to use the LAVA api -echo "export PATH=/lava/bin/:$PATH" > ~/.shrc - -echo "" -echo "" -echo "**************************************************************************** [...] -echo -n "Please connect to: " -echo -n "ssh " -echo -n "-o UserKnownHostsFile=/dev/null " -echo -n "-o StrictHostKeyChecking=no " -echo -n "root@" -echo -n $ip_addr -echo -n " " -echo -n "(" -echo -n $hostname -echo ")" -echo "**************************************************************************** [...] -echo "" -echo "" -mkdir -p /run -mkdir -p /run/hacking -echo $$ > /run/hacking/hacking.pid - -#Sometimes we can't find the server straight away -c=0 -while test $c -lt 6; do c=$((c+1)); sleep 10; ping -c 1 ${listener_addr} && break; done -if test $? -ne 0; then - echo "Failed to find controlling server, exiting" - echo "<LAVA_TEST_RUNNER>: exiting" - exit -fi - -echo "root@${ip_addr}" | nc "${listener_addr}" "${listener_port}" - -#suspend in a way that is portable across shells and doesn't involve a busy-wait -pid= -trap 'kill $pid - trap - SIGCONT' SIGCONT -echo "Benchmarking session active..." -sleep 999d& #timeout after 2 or 3 years... the job is likely to have a rather shor [...] -pid=$! -wait - -echo "Benchmarking session ended..." -echo "<LAVA_TEST_RUNNER>: exiting" diff --git a/setup_session_oe b/setup_session_oe deleted file mode 100755 index a5d9bcc..0000000 --- a/setup_session_oe +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# Usage ./setup_session <pub_key> - -chmod a+x stop_hacking_oe -cp stop_hacking_oe /bin/stop_hacking -chmod a+x invoke_session_oe -cp invoke_session_oe /bin/invoke_session - -mkdir -p ~/.ssh/ -echo $1 >> ~/.ssh/authorized_keys -echo "Public Key Installed: $1" - -/etc/init.d/sshd restart -echo "sshd re-started" diff --git a/stop_hacking_oe b/stop_hacking_oe deleted file mode 100755 index ceb8977..0000000 --- a/stop_hacking_oe +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -kill -CONT `cat /run/hacking/hacking.pid` -rm -f /run/hacking/hacking.pid -rm ~/.ssh/authorized_keys -/etc/init.d/sshd stop