Enable 'loop' specification test

* tests/spec/Makefile.am (TESTS): Add 'loop'.
* tests/spec/oil.scm: Remove one test and patch four others.
This commit is contained in:
Timothy Sample 2018-11-21 14:58:49 -05:00
parent 0d41cec2d6
commit dd64f22361
2 changed files with 16 additions and 0 deletions

View File

@ -19,6 +19,7 @@ SH_LOG_COMPILER = ./check-spec
TESTS = \
oil/spec/case_.test.sh \
oil/spec/loop.test.sh \
oil/spec/quote.test.sh \
oil/spec/redirect.test.sh \
oil/spec/smoke.test.sh \

View File

@ -104,6 +104,21 @@
(;; These two are Bash specific.
("Case statement with ;;&")
("Case statement with ;&")))
("spec/loop.test.sh"
(;; We do not do tilde expansion yet.
("Tilde expansion within for loop")
;; This is beyond POSIX.
("Brace Expansion within Array"
("N-I dash" "N-I dash/geesh"))
;; We match Bash here.
("for loop with invalid identifier"
("OK bash" "OK bash/geesh"))
;; For these next two, we do not have arithmetic
;; substitution, but we can use 'expr' instead.
("while in pipe"
("\\$\\(\\(i\\+1\\)\\)" "$(expr $i + 1)"))
("while in pipe with subshell"
("\\$\\(\\(i\\+1\\)\\)" "$(expr $i + 1)"))))
("spec/quote.test.sh"
(;; We match KornShell on these two tests.
("Unterminated single quote"