aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test/recipes-extended/dlt-daemon/dlt-daemon/dlt-daemon_t.inc
blob: ab96fa0bb1951b235e471a6db4d7b979b311d433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
get_list() {
  return 2
}

get_title() {
  echo "dlt-daemon"
}

_run_dir=/opt/tests/dlt-daemon
run_1() {
  if [ "x${1}" != "x" ]; then
    ${_run_dir}/dlt-test-filetransfer > /tmp/t
    _c1=$?
    if [ "x${_c1}" = "x0" ]; then
       echo " PASSED"
    else
       echo " FAILED"
    fi
  else
    ${_run_dir}/dlt-test-filetransfer
  fi
}

run_2() {
  if [ "x${1}" != "x" ]; then
    ${_run_dir}/dlt-test-user > /tmp/t
    _c1=`cat /tmp/t | grep -v -E Test.. | grep -v "locally printed"`
    if [ "x${_c1}" = "x" ]; then
       echo " PASSED"
    else
       echo " FAILED"
    fi
  else
    ${_run_dir}/dlt-test-user
  fi
}