tests/test-run-tests.t
author Patrick Mezard <pmezard@gmail.com>
Tue, 01 Feb 2011 21:59:07 +0100
changeset 13333 60792fa3c1a8
parent 12940 518dd70d1a6e
child 15249 f30c0a7b8346
permissions -rw-r--r--
Merge with stable

Simple commands:

  $ echo foo
  foo
  $ printf 'oh no'
  oh no (no-eol)
  $ printf 'bar\nbaz\n' | cat
  bar
  baz

Multi-line command:

  $ foo() {
  >     echo bar
  > }
  $ foo
  bar

Regular expressions:

  $ echo foobarbaz
  foobar.* (re)
  $ echo barbazquux
  .*quux.* (re)

Globs:

  $ printf '* \\foobarbaz {10}\n'
  \* \\fo?bar* {10} (glob)

Literal match ending in " (re)":

  $ echo 'foo (re)'
  foo (re)

Exit code:

  $ (exit 1) 
  [1]