diff options
author | jk7744.park <jk7744.park@samsung.com> | 2015-09-08 22:07:42 +0900 |
---|---|---|
committer | jk7744.park <jk7744.park@samsung.com> | 2015-09-08 22:07:42 +0900 |
commit | 4732847654ed74ed893b7ea088805832fd91cc18 (patch) | |
tree | 393207d68983c3b587733b83714bef2de2457025 /examples/bigxml | |
download | xmlstarlet-tizen_2.3.1_release.tar.gz xmlstarlet-tizen_2.3.1_release.tar.bz2 xmlstarlet-tizen_2.3.1_release.zip |
tizen 2.3.1 releasetizen_2.4_mobile_releasetizen_2.3.1_releasesubmit/tizen_2.4/20151028.063429submit/tizen_2.3.1/20150915.075556accepted/tizen/2.4/mobile/20151029.035146tizen_2.4tizen_2.3.1accepted/tizen_2.4_mobile
Diffstat (limited to 'examples/bigxml')
-rw-r--r-- | examples/bigxml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/bigxml b/examples/bigxml new file mode 100644 index 0000000..0cb746b --- /dev/null +++ b/examples/bigxml @@ -0,0 +1,17 @@ +#!/bin/sh +# check error messages on lines past 2^16 + +SEDLINUM_PROG='s/^\([^:][^:]*:[0-9]\{4\}\)[0-9]\.[0-9][0-9]*:.*$/\1x/p' + +xmldoc() +{ + BAD="$1" + DOCTYPE="$2" + + echo '<?xml version="1.0"?>' + [ -n "$DOCTYPE" ] && echo "$DOCTYPE" + echo '<root>' + ${AWK:-awk} 'BEGIN{for(i=0; i < 69999; i++) print ""}' < /dev/null + echo "$BAD" + echo '</root>' +} |