build system: echo and test features may be enabled
even if these applets are enabled as ash builtins only testsuite: add some awk tests
This commit is contained in:
parent
7cbcd1cbf4
commit
66496d75a7
@ -189,7 +189,7 @@ config ECHO
|
|||||||
config FEATURE_FANCY_ECHO
|
config FEATURE_FANCY_ECHO
|
||||||
bool "Enable echo options (-n and -e)"
|
bool "Enable echo options (-n and -e)"
|
||||||
default y
|
default y
|
||||||
depends on ECHO
|
depends on ECHO || ASH_BUILTIN_ECHO
|
||||||
help
|
help
|
||||||
This adds options (-n and -e) to echo.
|
This adds options (-n and -e) to echo.
|
||||||
|
|
||||||
@ -649,7 +649,7 @@ config TEST
|
|||||||
config FEATURE_TEST_64
|
config FEATURE_TEST_64
|
||||||
bool "Extend test to 64 bit"
|
bool "Extend test to 64 bit"
|
||||||
default n
|
default n
|
||||||
depends on TEST
|
depends on TEST || FEATURE_TEST_64
|
||||||
help
|
help
|
||||||
Enable 64-bit support in test.
|
Enable 64-bit support in test.
|
||||||
|
|
||||||
|
@ -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 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"
|
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
|
tar xjf awk_t1.tar.bz2
|
||||||
testing "awk 'gcc build bug'" \
|
testing "awk 'gcc build bug'" \
|
||||||
"awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \
|
"awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \
|
||||||
|
Loading…
Reference in New Issue
Block a user