Blame tests/field_regex_default_group_parse_and_return.sh

Packit 1422b7
# added 2014-11-14 by singh.janmejay
Packit 1422b7
# This file is part of the liblognorm project, released under ASL 2.0
Packit 1422b7
Packit 1422b7
uname -a | grep "SunOS.*5.10"
Packit 1422b7
if [ $? -eq 0 ] ; then
Packit 1422b7
   echo platform: `uname -a`
Packit 1422b7
   echo This looks like solaris 10, we disable known-failing tests to
Packit 1422b7
   echo permit OpenCSW to build packages. However, this are real failurs
Packit 1422b7
   echo and so a fix should be done as soon as time permits.
Packit 1422b7
   exit 77
Packit 1422b7
fi
Packit 1422b7
export ln_opts='-oallowRegex'
Packit 1422b7
. $srcdir/exec.sh
Packit 1422b7
Packit 1422b7
test_def $0 "type ERE for regex field"
Packit 1422b7
add_rule 'rule=:%first:regex:[a-z]+% %second:regex:\d+\x25\x3a[a-f0-9]+\x25%'
Packit 1422b7
execute 'foo 122%:7a%'
Packit 1422b7
assert_output_contains '"first": "foo"'
Packit 1422b7
assert_output_contains '"second": "122%:7a%"'
Packit 1422b7
Packit 1422b7
Packit 1422b7
Packit 1422b7
cleanup_tmp_files
Packit 1422b7