Enable 'word-split' specification test
* tests/spec/Makefile.am (TESTS): Add 'word-split'. * tests/spec/oil.scm: Filter out four tests from it that we cannot support yet.
This commit is contained in:
parent
f448a57a27
commit
9dbf64d740
|
@ -18,7 +18,8 @@ TEST_EXTENSIONS = .sh
|
||||||
SH_LOG_COMPILER = ./check-spec
|
SH_LOG_COMPILER = ./check-spec
|
||||||
|
|
||||||
TESTS = \
|
TESTS = \
|
||||||
oil/spec/smoke.test.sh
|
oil/spec/smoke.test.sh \
|
||||||
|
oil/spec/word-split.test.sh
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
rm -rf oil
|
rm -rf oil
|
||||||
|
|
|
@ -75,7 +75,20 @@
|
||||||
(else
|
(else
|
||||||
(unless ignore? (display line out))
|
(unless ignore? (display line out))
|
||||||
(loop (read-line in 'concat) ignore?))))))))
|
(loop (read-line in 'concat) ignore?))))))))
|
||||||
(tests-to-remove '()))
|
(tests-to-remove
|
||||||
|
'(("spec/word-split.test.sh"
|
||||||
|
(;; This test requires local variables, which is
|
||||||
|
;; a Bash extension.
|
||||||
|
"IFS is scoped"
|
||||||
|
;; We do not do tilde expansion yet.
|
||||||
|
"Tilde sub is not split, but var sub is"
|
||||||
|
;; This test relies on 'echo -e', which we do not
|
||||||
|
;; have. When rewritten to avoid it, we pass.
|
||||||
|
"IFS empty doesn't do splitting"
|
||||||
|
;; This test relies on 'unset' and 'echo -e',
|
||||||
|
;; which we do not have. When rewritten to avoid
|
||||||
|
;; them, we pass.
|
||||||
|
"IFS unset behaves like $' \\t\\n'")))))
|
||||||
(for-each (match-lambda
|
(for-each (match-lambda
|
||||||
((file tests) (remove-tests tests file)))
|
((file tests) (remove-tests tests file)))
|
||||||
tests-to-remove)))))))
|
tests-to-remove)))))))
|
||||||
|
|
Loading…
Reference in New Issue