Commit Graph

18 Commits

Author SHA1 Message Date
Dan Gohman
57a6f30125 Add a test script for counting lines. This can be used instead of the
"| grep foo | wc -l | grep 2" idiom used by many tests, so that, for
example, tests don't mistakenly accept a count of 12 when 2 is
expected. Also, the new form is more consice: "| grep foo | count 2".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40988 91177308-0d34-0410-b5e6-96231b3b80d8
2007-08-10 15:07:05 +00:00
Reid Spencer
b7fc87656f Add a script to run a command but ignore its return code. This script
always returns 0. This is useful with the llvm.exp based dejagnu testing
when a test wants to check the error output of tool invocation that
returns non-zero. Since every command is checked with llvm.exp, there needs
to be a way to prevent that checking and this script is it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35991 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-14 16:14:08 +00:00
Reid Spencer
28fa65b62e Make it handle plain old cast too, for old assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31702 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-13 16:11:14 +00:00
Reid Spencer
9fd5d13e51 Handle ptrtoint and inttoptr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31701 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-13 16:09:37 +00:00
Reid Spencer
e0351b9a22 Instruction name changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31663 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-11 01:04:13 +00:00
Reid Spencer
5d52894783 Okay, need a pattern before and after the cast pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31443 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-04 01:11:19 +00:00
Reid Spencer
023fa4105b Allow the regular expression to be extended by a parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31442 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-04 00:58:39 +00:00
Reid Spencer
2461b73d9d For PR950:
A little script to return 1 if it encounters any of the cast instructions
on the stdin.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31441 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-04 00:49:52 +00:00
Reid Spencer
8690180f49 Remove last remnants of Python/QMTest support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18672 91177308-0d34-0410-b5e6-96231b3b80d8
2004-12-08 23:07:27 +00:00
Tanya Lattner
4913cdcc37 Rewrote prcontext.py in tcl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17708 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-13 21:03:22 +00:00
John Criswell
21eccb6563 New python script that print a specified number of lines surrounding a
located pattern.
In other words, grep -C for Solaris.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15425 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-02 22:28:50 +00:00
Misha Brukman
e655a637a7 These transitional scripts are no longer necessary, no one should have `as' or
`dis' anymore.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8563 91177308-0d34-0410-b5e6-96231b3b80d8
2003-09-16 15:37:32 +00:00
Misha Brukman
82086a5894 Near-term fix for renaming as' -> llvm-as' and dis' -> llvm-dis'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8194 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-28 21:46:34 +00:00
Chris Lattner
3f6795e5ea Remove obsolete script
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6967 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-28 23:32:28 +00:00
Chris Lattner
2b142bd65e New script for testrunner programs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6956 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-28 22:52:52 +00:00
Chris Lattner
35f7ba9120 Handle quoting right
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6954 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-28 22:43:58 +00:00
Chris Lattner
cf36d1c6d1 Initial checkin of grep-not script
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6951 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-28 22:28:31 +00:00
Chris Lattner
30eef7db88 Describe directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6949 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-28 22:20:19 +00:00