aboutsummaryrefslogtreecommitdiff
path: root/testsuite/awk.tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* awk: fix segfault on for loop syntax errorBrian Foley2016-10-241-0/+3
| | | | | | | Parsing "for()" segfaults as awk fails to find loop iteration expressions. Signed-off-by: Brian Foley <bpfoley@google.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: support "length" form of "length()". Closes 8371Denys Vlasenko2015-10-021-0/+5
| | | | | | | | function old new delta parse_expr 805 848 +43 tokenlist 447 448 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix handling of "if ... break ; else ..." - closes 7226Denys Vlasenko2014-06-261-0/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix failures found by randomconfig buildsDenys Vlasenko2013-12-311-1/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix a bug in argc counting in recent changeDenys Vlasenko2013-11-211-1/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix length(array)Denys Vlasenko2013-10-121-0/+5
| | | | | | | function old new delta evaluate 3526 3548 +22 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: Fix handling of functions with empty bodyBernhard Reutner-Fischer2013-07-311-0/+28
| | | | | | | ammend b79a0fef99627c457548e804fcd6e162b116cbe8 to properly handle functions defined in another scope. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* awk.tests: add test for recent large integer fixDenys Vlasenko2013-07-221-3/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: Fix handling of functions with empty bodyBernhard Reutner-Fischer2013-03-131-0/+19
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* awk: fix FS assignment behavior. Closes 5108Denys Vlasenko2012-07-111-0/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: make -F STR interpret escape sequences. Closes 5126Denys Vlasenko2012-06-221-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite: some more awk tests related to conditionsTanguy Pruvot2012-06-111-0/+7
| | | | | Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix a SEGVDenys Vlasenko2011-09-111-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix segfault on closing non-opened fileDenys Vlasenko2010-10-231-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: 00.123 is not a octal constant; neither is 009.123. fixing thisDenys Vlasenko2010-10-051-0/+6
| | | | | | | function old new delta my_strtod 80 113 +33 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomtest fixesDenys Vlasenko2010-05-111-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more randomconfig testsuite fixesDenys Vlasenko2010-05-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig testsuite fixesDenys Vlasenko2010-05-101-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: add two tests we currently failDenys Vlasenko2010-03-111-16/+97
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix the case where nested "for" loops with the same variable misbehaveDenys Vlasenko2010-03-101-0/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: skip whitespace between array name and subscriptAlexander Shishkin2010-02-261-0/+3
| | | | | | | | | | | | | It is supported in both mawk and gawk and there are actually scripts out there that use this "flexibility". function old new delta next_token 1144 1152 +8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 8/0) Total: 8 bytes Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix an incorrect casting to string (bug 725). -44 bytes.Denys Vlasenko2009-11-301-0/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tests: fix POSIX shell source styleMike Frysinger2009-11-041-1/+1
| | | | | | | The source command does not search $PWD, and bash recently fixed itself to follow this behavior for /bin/sh. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* awk: fix long field separators case. By Ian Wienand (ianw AT vmware.com)Denis Vlasenko2009-04-121-0/+6
|
* awk: fix compat issue found by gpm buildDenis Vlasenko2009-03-151-0/+5
| | | | | | | | | function old new delta as_regex 105 131 +26 hash_find 247 233 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 26/-14) Total: 12 bytes
* awk: in BEGIN section $0 should be "", not "0".Denis Vlasenko2009-01-251-0/+7
|
* awk: improve nadling of negative numbers in bitwise ops;Denis Vlasenko2008-09-021-0/+1
| | | | | | | | | | | | | | | fix handling of octal costants. add test for it function old new delta getvar_i_int - 93 +93 my_strtod - 84 +84 qrealloc 33 36 +3 getvar_i 99 95 -4 next_token 979 919 -60 evaluate 6359 5627 -732 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/3 up/down: 180/-796) Total: -616 bytes
* build system: echo and test features may be enabledDenis Vlasenko2008-08-291-0/+5
| | | | | | even if these applets are enabled as ash builtins only testsuite: add some awk tests
* comm: almost total rewrite; add testsuiteDenis Vlasenko2008-07-151-2/+1
| | | | | | | | | function old new delta writeline 128 125 -3 comm_main 540 239 -301 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-304) Total: -304 bytes
* awk: fix a case with multiple -f options. simplify -f file reading.Denis Vlasenko2008-07-011-0/+7
| | | | | | | | | | | | | | | | | | function old new delta parse_expr 833 841 +8 qrealloc 33 36 +3 next_input_file 203 198 -5 afopen 22 - -22 ftello 41 - -41 ftell 41 - -41 __GI_ftell 41 - -41 awk_main 1002 944 -58 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 2/2 up/down: 11/-208) Total: -197 bytes text data bss dec hex filename 804232 610 6804 811646 c627e busybox_old 804120 610 6804 811534 c620e busybox_unstripped
* awk: actually do "svn add" for testsuiteDenis Vlasenko2007-07-181-0/+20