tests/test-run-tests.t
author Matt Mackall <mpm@selenic.com>
Fri, 08 Oct 2010 20:12:40 -0500
changeset 12638 eb09e3c9c471
parent 12406 66a07fb76ceb
child 12940 518dd70d1a6e
permissions -rw-r--r--
keyword: fix test glob

Simple commands:

  $ echo foo
  foo
  $ 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]