aboutsummaryrefslogtreecommitdiff
path: root/testsuite/awk.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-xtestsuite/awk.tests8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 3a7c8f4d0..0691a7972 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -18,9 +18,11 @@ testing "awk -F case 7" "awk -F '[#]' '{ print NF }'" "5\n" "" "z##abc##zz\n"
18 18
19# 4294967295 = 0xffffffff 19# 4294967295 = 0xffffffff
20testing "awk bitwise op" "awk '{ print or(4294967295,1) }'" "4.29497e+09\n" "" "\n" 20testing "awk bitwise op" "awk '{ print or(4294967295,1) }'" "4.29497e+09\n" "" "\n"
21optional DESKTOP
21testing "awk hex const 1" "awk '{ print or(0xffffffff,1) }'" "4.29497e+09\n" "" "\n" 22testing "awk hex const 1" "awk '{ print or(0xffffffff,1) }'" "4.29497e+09\n" "" "\n"
22testing "awk hex const 2" "awk '{ print or(0x80000000,1) }'" "2.14748e+09\n" "" "\n" 23testing "awk hex const 2" "awk '{ print or(0x80000000,1) }'" "2.14748e+09\n" "" "\n"
23testing "awk oct const" "awk '{ print or(01234,1) }'" "669\n" "" "\n" 24testing "awk oct const" "awk '{ print or(01234,1) }'" "669\n" "" "\n"
25SKIP=
24 26
25# long field seps requiring regex 27# long field seps requiring regex
26testing "awk long field sep" "awk -F-- '{ print NF, length(\$NF), \$NF }'" \ 28testing "awk long field sep" "awk -F-- '{ print NF, length(\$NF), \$NF }'" \
@@ -33,12 +35,14 @@ testing "awk long field sep" "awk -F-- '{ print NF, length(\$NF), \$NF }'" \
33testing "awk gsub falls back to non-extended-regex" \ 35testing "awk gsub falls back to non-extended-regex" \
34 "awk 'gsub(\"@(samp|code|file)\{\",\"\");'; echo \$?" "0\n" "" "Hi\n" 36 "awk 'gsub(\"@(samp|code|file)\{\",\"\");'; echo \$?" "0\n" "" "Hi\n"
35 37
36tar xjf awk_t1.tar.bz2 38optional TAR BUNZIP2 FEATURE_SEAMLESS_BZ2
39test x"$SKIP" != x"1" && tar xjf awk_t1.tar.bz2
37testing "awk 'gcc build bug'" \ 40testing "awk 'gcc build bug'" \
38 "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \ 41 "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \
39 "f842e256461a5ab1ec60b58d16f1114f -\n" \ 42 "f842e256461a5ab1ec60b58d16f1114f -\n" \
40 "" "" 43 "" ""
41rm -rf awk_t1_* 44rm -rf awk_t1_* 2>/dev/null
45SKIP=
42 46
43Q='":"' 47Q='":"'
44 48