From 54932e47576639115b25e542db651206c031d435 Mon Sep 17 00:00:00 2001 From: Botao Sun Date: Sun, 19 Oct 2014 23:21:22 +1100 Subject: 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 Signed-off by: Botao Sun Change-Id: I10b9e938fb14450adfa76c628f041b481dd0daf0 --- ubuntu/scripts/gator-data-streaming-ubuntu.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'ubuntu/scripts') 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 -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 " \n \n \n" > $xml_template +echo " " > $xml_template +echo "> $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 "" >> $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 -- cgit v1.2.3