summaryrefslogtreecommitdiff
path: root/testsuite/awk.tests
diff options
context:
space:
mode:
authorDenis Vlasenko2008-08-29 08:37:07 +0000
committerDenis Vlasenko2008-08-29 08:37:07 +0000
commit66496d75a7bf117ac5386c0498b950e47750923a (patch)
treef8e43e7afba8c35c4a7af21611fbbd2b92427360 /testsuite/awk.tests
parent7cbcd1cbf44df893c8c289ea3c9f03fb62b8b152 (diff)
downloadbusybox-66496d75a7bf117ac5386c0498b950e47750923a.zip
busybox-66496d75a7bf117ac5386c0498b950e47750923a.tar.gz
build system: echo and test features may be enabled
even if these applets are enabled as ash builtins only testsuite: add some awk tests
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-xtestsuite/awk.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 4eabd75..b3c076e 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -16,6 +16,11 @@ testing "awk -F case 5" "awk -F '[#]' '{ print NF }'" "4\n" "" "#abc##zz\n"
testing "awk -F case 6" "awk -F '[#]' '{ print NF }'" "4\n" "" "z#abc##zz\n"
testing "awk -F case 7" "awk -F '[#]' '{ print NF }'" "5\n" "" "z##abc##zz\n"
+# 4294967295 = 0xffffffff
+testing "awk bitwise op" "awk '{ print or(4294967295,1) }'" "4.29497e+09\n" "" "\n"
+testing "awk hex const 1" "awk '{ print or(0xffffffff,1) }'" "4.29497e+09\n" "" "\n"
+testing "awk hex const 2" "awk '{ print or(0x80000000,1) }'" "2.14748e+09\n" "" "\n"
+
tar xjf awk_t1.tar.bz2
testing "awk 'gcc build bug'" \
"awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \