summaryrefslogtreecommitdiffstats
path: root/tests/basic_int32_test.sh
blob: a8be8736a0a1d53f54197dfb6fb16e79365745da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#
# json dbus bridge
#
# Copyright (c) 2010 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# To the extent possible under law, Pengutronix e.K. has waived all copyright
# and related or neighboring rights to JSON-DBus-Bridge Demo Code.
#

. `dirname $0`/test_setup.sh "com.pengutronix.jdb.Test.Basic" || exit

jdb_test_echo EchoINT32 i 0 &&
jdb_test_echo EchoINT32 i -1 &&
jdb_test_echo EchoINT32 i 42 &&
jdb_test_echo EchoINT32 i 2147483647 &&
jdb_test_echo EchoINT32 i -2147483648 &&
jdb_test_echo EchoINT32 i null null "Unexpected 'null' parameter found." &&
jdb_test_echo SumINT32 ii "23, null"  null "Unexpected 'null' parameter found." &&
jdb_test_echo EchoINT32 i '"foo"' null "integer value expected."