summaryrefslogtreecommitdiff
path: root/tests/sjis-mb
Commit message (Collapse)AuthorAgeFilesLines
* tests: stop using skip_test_; use skip_ insteadJim Meyering2011-09-151-1/+1
| | | | | | | | * tests/init.cfg (skip_test_): Remove definition. Use the improved skip_ function from init.sh, now that it has the same feature. * tests/euc-mb: s/skip_test_/skip_/ * tests/sjis-mb: Likewise. * tests/fmbtest: Likewise.
* tests: skip tests that require MBS supportJim Meyering2011-09-151-0/+1
| | | | | | | | | | | | | * tests/init.cfg (require_compiled_in_MB_support): New function. * tests/char-class-multibyte: Use it here, since this test cannot succeed without MBS support. * tests/equiv-classes: Likewise. * tests/euc-mb: Likewise. * tests/fgrep-infloop: Likewise. * tests/init.cfg: Likewise. * tests/prefix-of-multibyte: Likewise. * tests/turkish-I: Likewise. * tests/sjis-mb: Likewise.
* tests: ensure that each test script is executableJim Meyering2011-06-211-0/+0
| | | | | | | | | | | | | | This adds a rule run at "make check" time to ensure that test scripts are consistently executable. This change is not required for "make check", but makes it easier for people to run scripts manually, but that is discouraged because doing so makes it easy to omit important variable settings that are normally provided via TESTS_ENVIRONMENT. This change also makes each of the existing TESTS executable. * tests/Makefile.am (check_executable_TESTS): New rule. (check): Depend on it. * tests/{all_scripts}: chmod 755. Prompted by a report from Eric Blake.
* tests: don't ignore sjis-mb test failureJim Meyering2011-06-081-3/+3
| | | | | | | | I made changes that caused grep to segfault during "make check" -- as seen in dmesg output -- yet no test failed(!), and there was no trace of the segfault in the logs. * tests/sjis-mb (test_grep_reject): Ensure that output is empty. Don't ignore test failure.
* tests: use skip_test_, not skip_Jim Meyering2011-06-071-1/+1
| | | | | | | | | | | Use skip_test_, not skip_. The former prints its message both to the log file and to FD 9 (redirected to tty via tests/Makefile.am), while skip_ prints only to stderr, which goes to the log file. * tests/init.cfg (skip_test_): New function. Use skip_test_ in place of skip_ everywhere. * tests/fmbtest: s/skip_/skip_test_/ * tests/sjis-mb: Likewise. * tests/euc-mb: Likewise.
* tests: normalize init.sh-sourcing codeJim Meyering2010-05-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/backref-multibyte-slow: Use one-line idiom. * tests/backref-word: Likewise. * tests/case-fold-backref: Likewise. * tests/case-fold-backslash-w: Likewise. * tests/case-fold-char-class: Likewise. * tests/case-fold-char-range: Likewise. * tests/case-fold-char-type: Likewise. * tests/char-class-multibyte: Likewise. * tests/dfaexec-multibyte: Likewise. * tests/empty: Likewise. * tests/euc-mb: Likewise. * tests/fedora: Likewise. * tests/fgrep-infloop: Likewise. * tests/fmbtest: Likewise. * tests/foad1: Likewise. * tests/ignore-mmap: Likewise. * tests/include-exclude: Likewise. * tests/max-count-vs-context: Likewise. * tests/pcre-z: Likewise. * tests/prefix-of-multibyte: Likewise. * tests/reversed-range-endpoints: Likewise. * tests/sjis-mb: Likewise. * tests/spencer1-locale: Likewise. * tests/word-delim-multibyte: Likewise. * tests/word-multi-file: Likewise.
* tests: use init.sh consistentlyJim Meyering2010-04-071-1/+4
| | | | | | | | * tests/euc-mb: Call "path_prepend_ ." on a line by itself, and with a comment. This makes it so all of the srcdir/init.sh lines are consistent, project-wide, and so that the addition of "." to PATH for this test is properly documented. * tests/sjis-mb: Likewise.
* tests: add program to detect localesPaolo Bonzini2010-03-291-8/+16
| | | | | | | | * tests/Makefile.am (check_PROGRAMS): Add get-mb-cur-max. * tests/get-mb-cur-max.c: New. * tests/euc-mb: Use it. Fail if the former detection test fails. * tests/sjis-mb: Use it. Fail if the former detection test fails. Expand comments.
* tests: add tests for SJIS character setsPaolo Bonzini2010-03-291-0/+50
The attached test will be skipped unless (on a glibc system) you run something like mkdir /usr/lib/locale/ja_JP.SHIFT_JIS zcat /usr/share/i18n/charmaps/SHIFT_JIS.gz | \ localedef \ -f - \ -i /usr/share/i18n/locales/ja_JP \ /usr/lib/locale/ja_JP.SHIFT_JIS * tests/Makefile.am: Add sjis-mb. * tests/sjis-mb: New.