Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
Daniel Dunbar | 73eed6a | 2009-09-20 22:00:23 +0000 | [diff] [blame] | 3 | # TestRunner.sh - Backward compatible utility for testing an individual file. |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 4 | |
Daniel Dunbar | 73eed6a | 2009-09-20 22:00:23 +0000 | [diff] [blame] | 5 | # Find where this script is. |
| 6 | Dir=$(dirname $(which $0)) |
| 7 | AbsDir=$(cd $Dir; pwd) |
Ted Kremenek | 6a18c76 | 2007-11-28 19:16:54 +0000 | [diff] [blame] | 8 | |
Daniel Dunbar | 73eed6a | 2009-09-20 22:00:23 +0000 | [diff] [blame] | 9 | # Find 'lit', assuming standard layout. |
| 10 | lit=$AbsDir/../../../utils/lit/lit.py |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 11 | |
Daniel Dunbar | 73eed6a | 2009-09-20 22:00:23 +0000 | [diff] [blame] | 12 | # Dispatch to lit. |
| 13 | $lit "$@" |