summaryrefslogtreecommitdiff
path: root/ubuntu/scripts
diff options
context:
space:
mode:
authorBotao Sun <botao.sun@linaro.org>2014-10-19 23:21:22 +1100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-10-20 13:21:27 +0000
commit54932e47576639115b25e542db651206c031d435 (patch)
treef630ddef3ce5b637614fe134b3c24603da13294e /ubuntu/scripts
parent00213724370605a6781db73cbf065943da4411c7 (diff)
gator-data-streaming-ubuntu.sh: POSIX Compliant Update.
This change is to make the test script to be POSIX compliant. Original patch comes from: Lucas Dutra Nunes <ldnunes@ossystems.com.br> Signed-off by: Botao Sun <botao.sun@linaro.org> Change-Id: I10b9e938fb14450adfa76c628f041b481dd0daf0
Diffstat (limited to 'ubuntu/scripts')
-rwxr-xr-xubuntu/scripts/gator-data-streaming-ubuntu.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/ubuntu/scripts/gator-data-streaming-ubuntu.sh b/ubuntu/scripts/gator-data-streaming-ubuntu.sh
index b976596..913a727 100755
--- a/ubuntu/scripts/gator-data-streaming-ubuntu.sh
+++ b/ubuntu/scripts/gator-data-streaming-ubuntu.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
+#!/bin/sh
#
# Gator data streaming test for ubuntu
#
-# Copyright (C) 2013, Linaro Limited.
+# Copyright (C) 2010 - 2014, Linaro Limited.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -20,14 +20,18 @@
#
# Author: Botao Sun <botao.sun@linaro.org>
-source include/sh-test-lib
+. include/sh-test-lib
# Location of XML template and data streaming result folder
xml_template="/root/session.xml"
data_streaming_result="/root/linaro-ubuntu-gator-data-streaming.apc"
# Create sample XML file as a template
-echo -ne "<?xml version="1.0" encoding="US-ASCII" ?> \n<session version="1" output_path="x" call_stack_unwinding="yes" parse_debug_info="yes" \nhigh_resolution="no" buffer_mode="streaming" sample_rate="normal" duration="10" \ntarget_host="linaro-ubuntu-boards" target_port="8080"> \n</session> \n" > $xml_template
+echo "<?xml version=\"1.0\" encoding=\"US-ASCII\" ?> " > $xml_template
+echo "<session version=\"1\" output_path=\"x\" call_stack_unwinding=\"yes\" parse_debug_info=\"yes\" " >> $xml_template
+echo "high_resolution=\"no\" buffer_mode=\"streaming\" sample_rate=\"normal\" duration=\"10\" " >> $xml_template
+echo "target_host=\"linaro-ubuntu-boards\" target_port=\"8080\"> " >> $xml_template
+echo "</session>" >> $xml_template
## Test case definitions
# Check whether session.xml is available
@@ -86,4 +90,4 @@ test_gator_data_streaming_cmd
test_gator_data_streaming_result
# clean exit so lava-test can trust the results
-exit 0 \ No newline at end of file
+exit 0