summaryrefslogtreecommitdiff
path: root/test.d/libproxy_iniparser_section.test
blob: 47f1ae56dda462e335ecd80bfab5653f23a914ba (plain)
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