6 # Make QMTest the default for testing features and regressions
11 # New QMTest functionality:
12 # The test suite is being transitioned over to QMTest. Eventually, it
13 # will use QMTest by default.
16 # QMTest option specifying the location of the QMTest database.
17 QMDB= -D $(LLVM_SRC_ROOT)/test/QMTestDB
18 QMCLASSES=$(LLVM_OBJ_ROOT)/test/QMTestDB/QMTest
21 # This is configuration information used by the test suite. In QM Test, it's
24 CONTEXT= -c srcroot=$(LLVM_SRC_ROOT) \
25 -c buildroot=$(LLVM_OBJ_ROOT) \
26 -c buildtype=$(CONFIGURATION) \
27 -c tmpdir=$(LLVM_OBJ_ROOT)/test/tmp \
31 -c "llvmgcc=$(LLVMGCC)" \
35 # Location of the QMTest program.
37 QMTEST= QMTEST_CLASS_PATH=$(QMCLASSES) qmtest $(QMDB)
43 qmtest:: $(LLVM_OBJ_ROOT)/test/tmp register
44 $(QMTEST) run -O $(LLVM_SRC_ROOT)/test/QMTestDB/expectations.qmr $(CONTEXT)
46 %.t:: $(LLVM_OBJ_ROOT)/test/tmp register
47 $(QMTEST) run -O $(LLVM_SRC_ROOT)/test/QMTestDB/expectations.qmr $(CONTEXT) $*
50 # Create the temporary directory used by the test suite.
52 $(LLVM_OBJ_ROOT)/test/tmp::
53 ${MKDIR} $(LLVM_OBJ_ROOT)/test/tmp
56 # Right now, QMTest compiles the python test classes and put them into the
57 # source tree. Since Python bytecode is *not* cross-platform compatible (I
58 # think), we'll regenerate every time.
60 # Simultaneous builds won't work, but shared source trees will.
63 $(QMTEST) register test llvm.TestAsmDisasm
64 $(QMTEST) register test llvm.AssembleTest
65 $(QMTEST) register test llvm.ConvertToCTest
66 $(QMTEST) register test llvm.LLToCTest
67 $(QMTEST) register test llvm.MachineCodeTest
68 $(QMTEST) register test llvm.AssemblyCodeTest
69 $(QMTEST) register test llvm.TestOptimizer
70 $(QMTEST) register test llvm.LLITest
71 $(QMTEST) register test llvm.TestRunner
72 $(QMTEST) register test llvm.VerifierTest
73 $(QMTEST) register test llvm.AnalyzeTest
74 $(QMTEST) register test llvm.CTest
75 $(QMTEST) register resource llvm.BytecodeResource
78 # Start up the QMTest GUI
81 $(QMTEST) gui --no-browser --daemon