Enable 'quote' specification test

* tests/spec/Makefile.am (TESTS): Add 'quote'.
* tests/spec/oil.scm: Patch two of its tests and filter out six
others.
This commit is contained in:
Timothy Sample 2018-11-16 13:34:39 -05:00
parent 06a0b5f885
commit 420ade9658
2 changed files with 15 additions and 1 deletions

View File

@ -18,6 +18,7 @@ TEST_EXTENSIONS = .sh
SH_LOG_COMPILER = ./check-spec
TESTS = \
oil/spec/quote.test.sh \
oil/spec/redirect.test.sh \
oil/spec/smoke.test.sh \
oil/spec/word-split.test.sh

View File

@ -100,7 +100,20 @@
out)))
(loop (read-line in 'concat) transformers))))))))
(tests-to-filter
'(("spec/word-split.test.sh"
'(("spec/quote.test.sh"
(;; We match KornShell on these two tests.
("Unterminated single quote"
("OK mksh" "OK mksh/geesh"))
("Unterminated double quote"
("OK mksh" "OK mksh/geesh"))
;; The rest of these are well beyond POSIX.
("$''")
("$'' with quotes")
("$'' with newlines")
("$'' octal escapes don't have leading 0")
("$'' octal escapes with fewer than 3 chars")
("$\"\"")))
("spec/word-split.test.sh"
(;; This test requires local variables, which is
;; a Bash extension.
("IFS is scoped")