blob: 4e3d190e4accb19e3df6fde2d2bfb15a4874faa7 [file] [log] [blame]
Chris Lattner0f342da2002-02-01 04:24:47 +00001#!/bin/sh
2#
3# TestRunner.sh - This script is used to run arbitrary unit tests. Unit
4# tests must contain the command used to run them in the input file, starting
5# immediately after a "RUN:" string.
6#
7# This runner recognizes and replaces the following strings in the command:
Chris Lattner9600e8d2003-05-14 18:39:57 +00008#
9# %s - Replaced with the input name of the program, or the program to
10# execute, as appropriate.
Reid Spencer68e1b242006-11-02 03:37:39 +000011# %llvmgcc - llvm-gcc command
12# %llvmgxx - llvm-g++ command
13# %prcontext - prcontext.tcl script
Chris Lattner0f342da2002-02-01 04:24:47 +000014#
Reid Spencerd1d67982007-04-15 06:25:12 +000015make check-one TESTONE=$1