Skip to content

Commit d988cd3

Browse files
author
Reid Spencer
committed
Rid llvm-test of the last vestiges of its "test/Programs" inheritance.
llvm-svn: 16180
1 parent c90d921 commit d988cd3

25 files changed

+46
-43
lines changed

External/Makefile.external

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- test/Programs/SingleSource/Makefile.external --------*- Makefile -*-===##
1+
##===- External/Makefile.external --------------------------*- Makefile -*-===##
22
#
33
# This makefile is used to build programs that are not directly in the LLVM
44
# build system. It relies on a set of external makefiles to build the program,

External/SPEC/CINT2000/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ ifeq ($(ARCH), Sparc)
2121
PARALLEL_DIRS := $(filter-out 186.crafty, $(PARALLEL_DIRS))
2222
endif
2323

24-
include ${LEVEL}/test/Programs/Makefile.programs
24+
include ${LEVEL}/Makefile.programs

External/SPEC/CINT95/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ PARALLEL_DIRS := \
1111

1212
# Get the $(ARCH) setting
1313
include $(LEVEL)/Makefile.config
14-
include ${LEVEL}/test/Programs/Makefile.programs
14+
include ${LEVEL}/Makefile.programs

External/SPEC/Makefile.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ LCCFLAGS := -O3
4444
LCXXFLAGS := -O3
4545

4646
CPPFLAGS += -I $(SPEC_BENCH_DIR)/src/
47-
SPEC_SANDBOX := $(LLVM_SRC_ROOT)/test/Programs/External/SPEC/Sandbox.sh
47+
SPEC_SANDBOX := $(LLVM_SRC_ROOT)/External/SPEC/Sandbox.sh
4848

4949
# Information about testing the program...
5050
REF_IN_DIR := $(SPEC_BENCH_DIR)/data/$(RUN_TYPE)/input/

LLVMSource/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# test/Programs/LLVMSource/Makefile
1+
# LLVMSource/Makefile
22
#
33
# This directory contains regression tests for LLVM backends written in LLVM
44
# assembly language.
@@ -9,7 +9,7 @@ PROGRAM_REQUIRED_TO_EXIT_OK := 1
99
REQUIRES_EH_SUPPORT := 1
1010

1111
PROGRAMS_TO_TEST := $(basename $(wildcard *.ll))
12-
include $(LEVEL)/test/Programs/Makefile.programs
12+
include $(LEVEL)/Makefile.programs
1313

1414
LLVM_SOURCE_BYTECODES := $(PROGRAMS_TO_TEST:%=Output/%.llvm.bc)
1515

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ PARALLEL_DIRS = SingleSource MultiSource External
2323
#
2424
# Include the Master Makefile that knows how to build all.
2525
#
26-
include $(LEVEL)/Makefile.common
26+
include $(LEVEL)/Makefile.programs
2727

Makefile.dummylib

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- test/Programs/Makefile.dummylib ---------------------*- Makefile -*-===##
1+
##===- Makefile.dummylib -----------------------------------*- Makefile -*-===##
22
#
33
# This makefile fragment is to be used by program tests which require the
44
# program to be linked with libdummy. The output program is named:

Makefile.programs

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
##===- test/Programs/Makefile.programs ---------------------*- Makefile -*-===##
1+
##===- llvm-test/Makefile.programs -------------------------*- Makefile -*-===##
22
#
33
# 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
55
# different ways. The main job of this is to take executables for the following
66
# targets:
77
#
@@ -29,7 +29,7 @@
2929
#
3030
# This makefile provides facilities for defining custom tests that are to be run
3131
# 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
3333
# should define a rule 'test.<testname>.%' which is run once for each program in
3434
# the suite (the % passed in is the program name). For a simple example, see
3535
# Makefile.TEST.example.
@@ -49,7 +49,7 @@ include $(LEVEL)/Makefile.tests
4949
PROGDIR = $(BUILD_SRC_ROOT)
5050

5151
#
52-
# Scripts in the Programs directory...
52+
# Scripts in the this directory...
5353
#
5454

5555
# TIMEPROG - The program used to get timing results for a program
@@ -498,7 +498,7 @@ ifdef USE_PRECOMPILED_BYTECODE
498498
# relative to BYTECODE_REPOSITORY and the current directory this program is in.
499499
#
500500
CURDIR := $(shell cd .; pwd)
501-
PROGDIR := $(shell cd $(LEVEL)/test/Programs; pwd)
501+
PROGDIR := $(shell cd $(LEVEL); pwd)
502502
SRCDIR := $(BYTECODE_REPOSITORY)/$(subst $(PROGDIR),,$(CURDIR))
503503

504504
# Because we don't have source code, we cannot build a native version of the
@@ -550,11 +550,11 @@ test..%:
550550
# test.<testname>.% given input from Output/%.llvm.bc
551551
#
552552
ifdef TEST
553-
TestMakefile := $(wildcard $(LEVEL)/test/Programs/TEST.$(TEST).Makefile) \
553+
TestMakefile := $(wildcard $(PROGDIR)/TEST.$(TEST).Makefile) \
554554
$(wildcard $(LEVEL)/projects/*/test/TEST.$(TEST).Makefile)
555-
TestReport := $(wildcard $(LEVEL)/test/Programs/TEST.$(TEST).report) \
555+
TestReport := $(wildcard $(PROGDIR)/TEST.$(TEST).report) \
556556
$(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) \
558558
$(wildcard $(BUILD_SRC_ROOT)/projects/*/test/TEST.$(TEST).gnuplot)
559559
ifneq ($(strip $(TestMakefile)),)
560560
-include $(TestMakefile)
@@ -564,7 +564,10 @@ test.$(TEST).%:
564564
@echo
565565
@echo "***************************************************************"
566566
@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)"
568571
@echo "***************************************************************"
569572
@echo
570573
@exit 1
@@ -574,7 +577,7 @@ endif
574577
#
575578
# Rules for building a report from 'make report TEST=<x>'
576579
#
577-
GENERATEREPORT := $(LLVM_SRC_ROOT)/test/Programs/GenerateReport.pl
580+
GENERATEREPORT := $(BUILD_SRC_ROOT)/GenerateReport.pl
578581

579582
report.$(TEST).raw.out: $(REPORT_DEPENDENCIES) $(TestMakefile)
580583
gmake TEST=$(TEST) 2>&1 | tee $@

MultiSource/Makefile.multisrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##==- test/Programs/MultiSource/Makefile.multisrc ----------*- Makefile -*-===##
1+
##==- MultiSource/Makefile.multisrc ------------------------*- Makefile -*-===##
22
#
33
# This makefile should be used by subdirectories that have multiple source files
44
# to be linked together. This contains all of the common makefile code required

README.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
test/Programs Heirarchy
2-
-----------------------
1+
llvm-test Heirarchy
2+
-------------------
33

44
Files in this heirarchy comprise complete programs that are to be compiled from
55
source, linked (optionally), and then compiled to machine code. Since these

SingleSource/Makefile.singlesrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- test/Programs/SingleSource/Makefile.singlesrc -------*- Makefile -*-===##
1+
##===- SingleSource/Makefile.singlesrc --------------------*- Makefile -*-===##
22
#
33
# This makefile builds all of the C programs in this directory in three
44
# different configurations:

SingleSource/Regression/C++/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# test/Programs/SingleSource/Regression/C++
1+
# SingleSource/Regression/C++
22
#
33
# This directory contains regression tests for the GCC C++ front-end for LLVM.
44
# These tests are C++ source files that are input to GCC and compiled to .ll

SingleSource/UnitTests/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Programs/SingleSource/UnitTests/Makefile
1+
# SingleSource/UnitTests/Makefile
22

33
DIRS = SetjmpLongjmp
44
LEVEL = ../..

SingleSource/UnitTests/SetjmpLongjmp/C++/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile
1+
# SingleSource/UnitTests/SetjmpLongjmp/Makefile
22
LEVEL = ../../../..
33
REQUIRES_EH_SUPPORT = 1
44
LIBS = -lstdc++

SingleSource/UnitTests/SetjmpLongjmp/C/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile
1+
# SingleSource/UnitTests/SetjmpLongjmp/Makefile
22
LEVEL = ../../../..
33
REQUIRES_EH_SUPPORT = 1
44
include $(LEVEL)/SingleSource/Makefile.singlesrc

SingleSource/UnitTests/SetjmpLongjmp/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile
1+
# SingleSource/UnitTests/SetjmpLongjmp/Makefile
22

33
DIRS = C C++
44
LEVEL = ../../..

TEST.aa.Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
##===- test/Programs/TEST.aa.Makefile ----------------------*- Makefile -*-===##
1+
##===- TEST.aa.Makefile ------------------------------------*- Makefile -*-===##
22
#
33
# This recursively traverses the programs, computing the precision of various
44
# alias analysis passes on the programs.
55
#
66
##===----------------------------------------------------------------------===##
77

88
# We require the programs to be linked with libdummy
9-
include $(LEVEL)/test/Programs/Makefile.dummylib
9+
include $(LEVEL)/Makefile.dummylib
1010

1111
AA_IMPLS := basic steens-fi steens ds-fi ds
1212

TEST.buildrepo.Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- test/Programs/TEST.buildrepo.Makefile ---------------*- Makefile -*-===##
1+
##===- TEST.buildrepo.Makefile -----------------------------*- Makefile -*-===##
22
#
33
# This "test" is used to copy all compiled bytecode files into the repository.
44
#
@@ -12,7 +12,7 @@ endif
1212
# relative to BYTECODE_REPOSITORY and the current directory this program is in.
1313
#
1414
CURDIR := $(shell cd .; pwd)
15-
PROGDIR := $(shell cd $(LEVEL)/test/Programs; pwd)
15+
PROGDIR := $(BUILD_SRC_ROOT)
1616
DESTDIR := $(BYTECODE_REPOSITORY)/$(subst $(PROGDIR),,$(CURDIR))
1717

1818
.PRECIOUS: $(DESTDIR)/.dir $(DESTDIR)/%.bc

TEST.dsgraph.Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
##===- test/Programs/TEST.dsgraph.Makefile -----------------*- Makefile -*-===##
1+
##===- TEST.dsgraph.Makefile -------------------------------*- Makefile -*-===##
22
#
33
# This recursively traverses the programs, computing DSGraphs for each of the
44
# programs in the testsuite.
55
#
66
##===----------------------------------------------------------------------===##
77

88
CURDIR := $(shell cd .; pwd)
9-
PROGDIR := $(shell cd $(LEVEL)/test/Programs; pwd)/
9+
PROGDIR := $(BUILD_SRC_ROOT)
1010
RELDIR := $(subst $(PROGDIR),,$(CURDIR))
1111

1212
# We require the programs to be linked with libdummy
13-
include $(LEVEL)/test/Programs/Makefile.dummylib
13+
include $(LEVEL)/Makefile.dummylib
1414

1515
# PASS - The dsgraph pass to run: ds, bu, td
1616
PASS := td

TEST.example.Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- test/Programs/TEST.example.Makefile -----------------*- Makefile -*-===##
1+
##===- TEST.example.Makefile -------------------------------*- Makefile -*-===##
22
#
33
# Example to show a custom test. This test just prints the size of the bytecode
44
# file for each program.

TEST.jit.Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- test/Programs/TEST.jit.Makefile ---------------------*- Makefile -*-===##
1+
##===- TEST.jit.Makefile ----------------------------------*- Makefile -*-===##
22
#
33
# This test tries running the Just-In-Time compiler on all of the programs to
44
# see which ones work and which ones don't. It provides a report to tabulate
@@ -8,7 +8,7 @@
88

99
JIT_OPTS = -force-interpreter=false -stats -time-passes
1010
CURDIR := $(shell cd .; pwd)
11-
PROGDIR := $(shell cd $(LEVEL)/test/Programs; pwd)/
11+
PROGDIR := $(BUILD_SRC_ROOT)
1212
RELDIR := $(subst $(PROGDIR),,$(CURDIR))
1313

1414
$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \

TEST.llc.Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- test/Programs/TEST.llc.Makefile ---------------------*- Makefile -*-===##
1+
##===- TEST.llc.Makefile -----------------------------------*- Makefile -*-===##
22
#
33
# This test tries running the compiler on all of the programs and
44
# reports on detailed pass execution times and register allocation and
@@ -8,7 +8,7 @@
88

99
LLC_OPTS = -f -o=/dev/null -stats -time-passes -regalloc=linearscan
1010
CURDIR := $(shell cd .; pwd)
11-
PROGDIR := $(shell cd $(LEVEL)/test/Programs; pwd)/
11+
PROGDIR := $(BUILD_SRC_ROOT)
1212
RELDIR := $(subst $(PROGDIR),,$(CURDIR))
1313

1414
$(PROGRAMS_TO_TEST:%=Output/%.$(TEST).report.txt): \

TEST.nightly.Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
##===- test/Programs/TEST.nightly.Makefile ----------------*- Makefile -*--===##
1+
##===- TEST.nightly.Makefile ------------------------------*- Makefile -*--===##
22
#
33
# This test is used in conjunction with the llvm/utils/NightlyTest* stuff to
44
# generate information about program status for the nightly report.
55
#
66
##===----------------------------------------------------------------------===##
77

88
CURDIR := $(shell cd .; pwd)
9-
PROGDIR := $(shell cd $(LEVEL)/test/Programs; pwd)/
9+
PROGDIR := $(BUILD_SRC_ROOT)
1010
RELDIR := $(subst $(PROGDIR),,$(CURDIR))
1111
CFLAGS := -O3
1212

TEST.typesafe.Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- test/Programs/TEST.typesafe.Makefile ----------------*- Makefile -*-===##
1+
##===- TEST.typesafe.Makefile ------------------------------*- Makefile -*-===##
22
#
33
# This test simply checks to see if programs are typesafe according to the
44
# -unsafepointertypes analysis.

TEST.vtl.Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##===- test/Programs/TEST.vtl.Makefile ---------------------*- Makefile -*-===##
1+
##===- TEST.vtl.Makefile -----------------------------------*- Makefile -*-===##
22
#
33
# Makefile for getting performance metrics using Intel's VTune.
44
#

0 commit comments

Comments
 (0)