blob: f96d3d552d2ee63019d6e9052152e3a88896f748 [file] [log] [blame]
Reid Spencer5f016e22007-07-11 17:01:13 +00001#!/bin/sh
2#
Daniel Dunbar73eed6a2009-09-20 22:00:23 +00003# TestRunner.sh - Backward compatible utility for testing an individual file.
Reid Spencer5f016e22007-07-11 17:01:13 +00004
Daniel Dunbar73eed6a2009-09-20 22:00:23 +00005# Find where this script is.
6Dir=$(dirname $(which $0))
7AbsDir=$(cd $Dir; pwd)
Ted Kremenek6a18c762007-11-28 19:16:54 +00008
Daniel Dunbar73eed6a2009-09-20 22:00:23 +00009# Find 'lit', assuming standard layout.
10lit=$AbsDir/../../../utils/lit/lit.py
Reid Spencer5f016e22007-07-11 17:01:13 +000011
Daniel Dunbar73eed6a2009-09-20 22:00:23 +000012# Dispatch to lit.
13$lit "$@"