ABITest: Move default set of test args into common makefile.

Also, tweak default list of bit-fields to try.

llvm-svn: 71246
This commit is contained in:
Daniel Dunbar 2009-05-08 20:10:52 +00:00
parent bd953333f8
commit 51c4bc320e
6 changed files with 55 additions and 3 deletions

View File

@ -430,7 +430,7 @@ def main():
action="store", type=str, default='v2i16, v1i64, v2i32, v4i16, v8i8, v2f32, v2i64, v4i32, v8i16, v16i8, v2f64, v4f32, v16f32', metavar="N")
group.add_option("", "--bit-fields", dest="bitFields",
help="comma separated list 'type:width' bit-field specifiers [default %default]",
action="store", type=str, default="char:0,char:4,unsigned:0,unsigned:13")
action="store", type=str, default="char:0,char:4,unsigned:0,unsigned:4,unsigned:13,unsigned:24")
group.add_option("", "--max-args", dest="functionMaxArgs",
help="maximum number of arguments per function [default %default]",
action="store", type=int, default=4, metavar="N")

View File

@ -1,5 +1,7 @@
# -*- Makefile -*-
TESTARGS := --no-unsigned --no-vector --no-complex --no-bool --no-bit-field
ABITESTGEN := ../ABITestGen.py
ifndef VERBOSE

View File

@ -4,7 +4,6 @@
# file, and TESTARGS is used to change the type generation. Make sure
# to 'make clean' after changing either of these parameters.
TESTARGS := --no-vector --no-complex --max-record-depth 0 --bit-fields "char:2,char:0,char:4" --max-args 0 --max-record 2 --no-builtins
COUNT := 1
TIMEOUT := 5
@ -21,3 +20,5 @@ Y_CFLAGS := -m32
CC_CFLAGS := -m32
include ../Makefile.test.common
TESTARGS += --max-args 0

View File

@ -4,7 +4,6 @@
# file, and TESTARGS is used to change the type generation. Make sure
# to 'make clean' after changing either of these parameters.
TESTARGS := --max-args 0 --no-unsigned --no-bit-field
COUNT := 1
TIMEOUT := 5
@ -21,3 +20,5 @@ Y_CFLAGS := -m64
CC_CFLAGS := -m64
include ../Makefile.test.common
TESTARGS += --max-args 0

View File

@ -0,0 +1,24 @@
# Usage: make test.N.report
#
# COUNT can be over-ridden to change the number of tests generated per
# file, and TESTARGS is used to change the type generation. Make sure
# to 'make clean' after changing either of these parameters.
COUNT := 1
TIMEOUT := 5
CFLAGS := -std=gnu99
X_COMPILER := gcc
X_LL_CFLAGS := -emit-llvm -S
Y_COMPILER := clang
Y_LL_CFLAGS := -emit-llvm -S
CC := gcc
X_CFLAGS := -m32
Y_CFLAGS := -m32
CC_CFLAGS := -m32
include ../Makefile.test.common
TESTARGS += --no-function-return --max-args 1

View File

@ -0,0 +1,24 @@
# Usage: make test.N.report
#
# COUNT can be over-ridden to change the number of tests generated per
# file, and TESTARGS is used to change the type generation. Make sure
# to 'make clean' after changing either of these parameters.
COUNT := 1
TIMEOUT := 5
CFLAGS := -std=gnu99
X_COMPILER := gcc
X_LL_CFLAGS := -emit-llvm -S
Y_COMPILER := clang
Y_LL_CFLAGS := -emit-llvm -S
CC := gcc
X_CFLAGS := -m64
Y_CFLAGS := -m64
CC_CFLAGS := -m64
include ../Makefile.test.common
TESTARGS += --no-function-return --max-args 1