File: libproxy_iniparser_section.test

package info (click to toggle)
libproxy 0.3.1-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,212 kB
  • ctags: 455
  • sloc: sh: 10,487; ansic: 2,826; makefile: 185; cpp: 88; python: 24
file content (19 lines) | stat: -rwxr-xr-x 455 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# $Id: libproxy_proxy_and_lib.test 386 2009-06-07 20:15:13Z dominique.leuenberger $

parser=src/bin/iniparse.test
conffile="test.d/test_libproxy_config_file.conf"
section=SECTION
key=key2

if [ -x "$parser" ]; then
  result=$($parser $conffile $section $key)
fi

echo 'name="libproxy_iniparser_section"'
if [ "$result" == "key2 = inivalue2" ]; then
    echo pass=True
else
    echo pass=False
    echo "reason='iniparser returned $result'"
fi