aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-08-29 08:37:07 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-08-29 08:37:07 +0000
commit66496d75a7bf117ac5386c0498b950e47750923a (patch)
treef8e43e7afba8c35c4a7af21611fbbd2b92427360
parent7cbcd1cbf44df893c8c289ea3c9f03fb62b8b152 (diff)
downloadbusybox-w32-66496d75a7bf117ac5386c0498b950e47750923a.tar.gz
busybox-w32-66496d75a7bf117ac5386c0498b950e47750923a.tar.bz2
busybox-w32-66496d75a7bf117ac5386c0498b950e47750923a.zip
build system: echo and test features may be enabled
even if these applets are enabled as ash builtins only testsuite: add some awk tests
-rw-r--r--coreutils/Config.in4
-rwxr-xr-xtestsuite/awk.tests5
2 files changed, 7 insertions, 2 deletions
diff --git a/coreutils/Config.in b/coreutils/Config.in
index 29b55d4ec..80aca3050 100644
--- a/coreutils/Config.in
+++ b/coreutils/Config.in
@@ -189,7 +189,7 @@ config ECHO
189config FEATURE_FANCY_ECHO 189config FEATURE_FANCY_ECHO
190 bool "Enable echo options (-n and -e)" 190 bool "Enable echo options (-n and -e)"
191 default y 191 default y
192 depends on ECHO 192 depends on ECHO || ASH_BUILTIN_ECHO
193 help 193 help
194 This adds options (-n and -e) to echo. 194 This adds options (-n and -e) to echo.
195 195
@@ -649,7 +649,7 @@ config TEST
649config FEATURE_TEST_64 649config FEATURE_TEST_64
650 bool "Extend test to 64 bit" 650 bool "Extend test to 64 bit"
651 default n 651 default n
652 depends on TEST 652 depends on TEST || FEATURE_TEST_64
653 help 653 help
654 Enable 64-bit support in test. 654 Enable 64-bit support in test.
655 655
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index 4eabd7595..b3c076e4b 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"
16testing "awk -F case 6" "awk -F '[#]' '{ print NF }'" "4\n" "" "z#abc##zz\n" 16testing "awk -F case 6" "awk -F '[#]' '{ print NF }'" "4\n" "" "z#abc##zz\n"
17testing "awk -F case 7" "awk -F '[#]' '{ print NF }'" "5\n" "" "z##abc##zz\n" 17testing "awk -F case 7" "awk -F '[#]' '{ print NF }'" "5\n" "" "z##abc##zz\n"
18 18
19# 4294967295 = 0xffffffff
20testing "awk bitwise op" "awk '{ print or(4294967295,1) }'" "4.29497e+09\n" "" "\n"
21testing "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"
23
19tar xjf awk_t1.tar.bz2 24tar xjf awk_t1.tar.bz2
20testing "awk 'gcc build bug'" \ 25testing "awk 'gcc build bug'" \
21 "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \ 26 "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \