blob: df389275e99dd398f30eefd86ea75c7816049e2c [file] [log] [blame]
Vikram S. Adve38b86202001-11-05 00:22:16 +00001LEVEL = ..
John Criswellee29d2a2003-09-06 15:12:21 +00002DIRS = Programs
Vikram S. Advefad0f522002-03-18 04:05:26 +00003include Makefile.tests
Chris Lattner52a4e852002-01-23 21:36:59 +00004
John Criswell299e15e2003-08-21 15:09:29 +00005#
John Criswellee29d2a2003-09-06 15:12:21 +00006# Make QMTest the default for testing features and regressions
7#
8all:: qmtest
9
10#
John Criswell299e15e2003-08-21 15:09:29 +000011# New QMTest functionality:
12# The test suite is being transitioned over to QMTest. Eventually, it
13# will use QMTest by default.
14#
15
16# List of the functioning QM Tests
17QMTESTS=feature \
John Criswellee29d2a2003-09-06 15:12:21 +000018 regression
John Criswell299e15e2003-08-21 15:09:29 +000019
20# QMTest option specifying the location of the QMTest database.
21QMDB= -D $(LLVM_SRC_ROOT)/test/QMTestDB
22
23#
24# This is configuration information used by the test suite. In QM Test, it's
25# called a 'context.'
26#
27CONTEXT= -c srcroot=$(LLVM_SRC_ROOT) \
28 -c buildroot=$(LLVM_OBJ_ROOT) \
John Criswellee29d2a2003-09-06 15:12:21 +000029 -c buildtype=$(CONFIGURATION) \
John Criswell299e15e2003-08-21 15:09:29 +000030 -c tmpdir=$(LLVM_OBJ_ROOT)/test/tmp \
John Criswellee29d2a2003-09-06 15:12:21 +000031 -c coresize=0 \
32 -c cc=$(CC) \
33 -c cxx=$(CXX) \
34 -c "llvmgcc=$(LLVMGCC)" \
35 -c make=$(MAKE)
John Criswell299e15e2003-08-21 15:09:29 +000036
37#
38# Location of the QMTest program.
39#
40QMTEST= qmtest $(QMDB)
41
42
43#
44# Execute the tests
45#
46qmtest:: $(LLVM_OBJ_ROOT)/test/tmp register
47 $(QMTEST) run -O $(LLVM_SRC_ROOT)/test/QMTestDB/expectations.qmr $(CONTEXT)
48
49
50#
51# Create the temporary directory used by the test suite.
52#
53$(LLVM_OBJ_ROOT)/test/tmp::
54 ${MKDIR} $(LLVM_OBJ_ROOT)/test/tmp
55
56#
57# Register the python code with QMTest
58#
59register:: $(LLVM_SRC_ROOT)/test/QMTestDB/QMTest/llvm.pyo
60
61$(LLVM_SRC_ROOT)/test/QMTestDB/QMTest/llvm.pyo: $(LLVM_SRC_ROOT)/test/QMTestDB/QMTest/llvm.py
62 $(QMTEST) register test llvm.TestAsmDisasm
63 $(QMTEST) register test llvm.AssembleTest
64 $(QMTEST) register test llvm.ConvertToCTest
65 $(QMTEST) register test llvm.LLToCTest
66 $(QMTEST) register test llvm.MachineCodeTest
67 $(QMTEST) register test llvm.AssemblyCodeTest
68 $(QMTEST) register test llvm.TestOptimizer
69 $(QMTEST) register test llvm.LLITest
70 $(QMTEST) register test llvm.TestRunner
71 $(QMTEST) register test llvm.VerifierTest
72 $(QMTEST) register test llvm.AnalyzeTest
73 $(QMTEST) register test llvm.CTest
74 $(QMTEST) register resource llvm.BytecodeResource
75