1
- # #===- test/Programs/ Makefile.programs ---------------------*- Makefile -*-===##
1
+ # #===- llvm- test/Makefile.programs ---- ---------------------*- Makefile -*-===##
2
2
#
3
3
# This makefile contains all of the makefile machinery that is common to
4
- # building stuff in the Programs directory. This script can be used in two
4
+ # building stuff in this directory. This script can be used in two
5
5
# different ways. The main job of this is to take executables for the following
6
6
# targets:
7
7
#
29
29
#
30
30
# This makefile provides facilities for defining custom tests that are to be run
31
31
# on all of the programs in the test suite. In order to define one of these
32
- # tests, create a llvm/ test/Programs /Makefile.TEST.<testname> file. This file
32
+ # tests, create a llvm- test/Makefile.TEST.<testname> file. This file
33
33
# should define a rule 'test.<testname>.%' which is run once for each program in
34
34
# the suite (the % passed in is the program name). For a simple example, see
35
35
# Makefile.TEST.example.
@@ -49,7 +49,7 @@ include $(LEVEL)/Makefile.tests
49
49
PROGDIR = $(BUILD_SRC_ROOT )
50
50
51
51
#
52
- # Scripts in the Programs directory...
52
+ # Scripts in the this directory...
53
53
#
54
54
55
55
# TIMEPROG - The program used to get timing results for a program
@@ -498,7 +498,7 @@ ifdef USE_PRECOMPILED_BYTECODE
498
498
# relative to BYTECODE_REPOSITORY and the current directory this program is in.
499
499
#
500
500
CURDIR := $(shell cd .; pwd)
501
- PROGDIR := $(shell cd $(LEVEL ) /test/Programs ; pwd)
501
+ PROGDIR := $(shell cd $(LEVEL ) ; pwd)
502
502
SRCDIR := $(BYTECODE_REPOSITORY ) /$(subst $(PROGDIR ) ,,$(CURDIR ) )
503
503
504
504
# Because we don't have source code, we cannot build a native version of the
@@ -550,11 +550,11 @@ test..%:
550
550
# test.<testname>.% given input from Output/%.llvm.bc
551
551
#
552
552
ifdef TEST
553
- TestMakefile := $(wildcard $(LEVEL ) /test/Programs /TEST.$(TEST ) .Makefile) \
553
+ TestMakefile := $(wildcard $(PROGDIR ) /TEST.$(TEST ) .Makefile) \
554
554
$(wildcard $(LEVEL ) /projects/* /test/TEST.$(TEST ) .Makefile)
555
- TestReport := $(wildcard $(LEVEL ) /test/Programs /TEST.$(TEST ) .report) \
555
+ TestReport := $(wildcard $(PROGDIR ) /TEST.$(TEST ) .report) \
556
556
$(wildcard $(BUILD_SRC_ROOT ) /projects/* /test/TEST.$(TEST ) .report)
557
- TestGnuPlot := $(wildcard $(LEVEL ) /test/Programs /TEST.$(TEST ) .gnuplot) \
557
+ TestGnuPlot := $(wildcard $(PROGDIR ) /TEST.$(TEST ) .gnuplot) \
558
558
$(wildcard $(BUILD_SRC_ROOT ) /projects/* /test/TEST.$(TEST ) .gnuplot)
559
559
ifneq ($(strip $(TestMakefile ) ) ,)
560
560
-include $(TestMakefile )
@@ -564,7 +564,10 @@ test.$(TEST).%:
564
564
@echo
565
565
@echo "***************************************************************"
566
566
@echo " ERROR: Test '$(TEST)' is not a known test!"
567
- @echo " Tests available: $(AVAILABLE_TESTS)"
567
+ @echo " Tests Available: $(AVAILABLE_TESTS)"
568
+ @echo " Test Program: $*"
569
+ @echo " Test Makefile: $(TestMakefile)"
570
+ @echo " Test Report: $(TestReport)"
568
571
@echo "***************************************************************"
569
572
@echo
570
573
@exit 1
@@ -574,7 +577,7 @@ endif
574
577
#
575
578
# Rules for building a report from 'make report TEST=<x>'
576
579
#
577
- GENERATEREPORT := $(LLVM_SRC_ROOT ) /test/Programs /GenerateReport.pl
580
+ GENERATEREPORT := $(BUILD_SRC_ROOT ) /GenerateReport.pl
578
581
579
582
report.$(TEST ) .raw.out : $(REPORT_DEPENDENCIES ) $(TestMakefile )
580
583
gmake TEST=$(TEST ) 2>&1 | tee $@
0 commit comments