[dotest] Avoid the need for LEVEL= makefile boilerplate

Summary:
Instead of each test case knowing its depth relative to the test root,
we can just have dotest add the folder containing Makefile.rules to the
include path.

This was motivated by r370616, though I have been wanting to do this
ever since we moved to building tests out-of-tree.

The only manually modified files in this patch are lldbinline.py and
plugins/builder_base.py. The rest of the patch has been produced by this
shell command:
  find . \( -name Makefile -o -name '*.mk' \)  -exec sed --in-place -e '/LEVEL *:\?=/d' -e '1,2{/^$/d}' -e 's,\$(LEVEL)/,,' {} +

Reviewers: teemperor, aprantl, espindola, jfb

Subscribers: emaste, javed.absar, arichardson, christof, arphaman, lldb-commits

Differential Revision: https://reviews.llvm.org/D67083

llvm-svn: 370845
This commit is contained in:
Pavel Labath 2019-09-04 07:46:25 +00:00
parent 5bfe8b562f
commit 418a272f4a
557 changed files with 552 additions and 1581 deletions

View File

@ -1,4 +1,3 @@
LLDB_LEVEL := ..
include $(LLDB_LEVEL)/Makefile
.PHONY: programs

View File

@ -1,4 +1,2 @@
LEVEL = ../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,6 +1,4 @@
LEVEL = ../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,8 +1,6 @@
LEVEL = ../../make
MAKE_DSYM := NO
ENABLE_THREADS := YES
CXX_SOURCES := multi-process-driver.cpp testprog.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,8 +1,6 @@
LEVEL = ../../make
MAKE_DSYM := NO
ENABLE_THREADS := YES
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,9 +1,7 @@
LEVEL = ../../make
ENABLE_THREADS := YES
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules
clean::
rm -rf $(wildcard *.o *.d *.dSYM)

View File

@ -1,6 +1,4 @@
LEVEL = ../../make
C_SOURCES := main.c
CFLAGS_EXTRAS = -mthumb
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,6 +1,4 @@
LEVEL = ../../make
C_SOURCES := main.c
CFLAGS_EXTRAS = -mthumb
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
C_SOURCES := main.c a.c b.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,6 +1,4 @@
LEVEL = ../../../make
C_SOURCES := main.c
EXE := hello_world
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,3 +1 @@
LEVEL = ../../../../make
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,8 +1,6 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules
clean::
rm -rf $(wildcard *.o *.d *.dSYM)

View File

@ -1,8 +1,6 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules
clean::
rm -rf $(wildcard *.o *.d *.dSYM)

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
C_SOURCES := lotta-signals.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,6 +1,4 @@
LEVEL = ../../../make
OBJC_SOURCES := call-throws.m
include $(LEVEL)/Makefile.rules
include Makefile.rules
LDFLAGS += -framework Foundation

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,3 +1,2 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,3 +1,2 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,3 +1,2 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,3 +1,2 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp other.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,6 +1,4 @@
LEVEL = ../../../make
OBJC_SOURCES := main.m
include $(LEVEL)/Makefile.rules
include Makefile.rules
LDFLAGS += -framework Foundation

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,3 +1,2 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,6 +1,4 @@
LEVEL = ../../../make
C_SOURCES := main.c
CFLAGS_EXTRAS += -std=c99
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,4 +1,3 @@
LEVEL = ../../../../make
# We don't have any standard include directories, so we can't
# parse the test_common.h header we usually inject as it includes
# system headers.
@ -7,4 +6,4 @@ NO_TEST_COMMON_H := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXXFLAGS += -I $(SRCDIR)/root/usr/include/c++/include/ -I $(SRCDIR)/root/usr/include/ -nostdinc -nostdinc++ -nostdlib++
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../../make
USE_LIBCPP := 1
CXXFLAGS += $(MANDATORY_CXXMODULE_BUILD_CFLAGS)
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,6 +1,4 @@
LEVEL = ../../../make
OBJC_SOURCES := main.m
include $(LEVEL)/Makefile.rules
include Makefile.rules
LDFLAGS += -framework Cocoa

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,7 +1,5 @@
LEVEL = ../../../make
default: a.out
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,8 +1,6 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
DEBUG_INFO_FLAG = -g3
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,3 +1,2 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,4 @@
LEVEL = ../../../make
OBJCXX_SOURCES := main.mm util.mm
include $(LEVEL)/Makefile.rules
include Makefile.rules
LDFLAGS += -framework Foundation

View File

@ -1,6 +1,4 @@
LEVEL = ../../../make
C_SOURCES := locking.c
ENABLE_THREADS := YES
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp foo.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,7 +1,5 @@
LEVEL = ../../../make
OBJC_SOURCES := main.m
include $(LEVEL)/Makefile.rules
include Makefile.rules
LDFLAGS += -framework Foundation -framework CloudKit

View File

@ -1,7 +1,5 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,6 +1,4 @@
LEVEL = ../../../make
OBJC_SOURCES := main.m
include $(LEVEL)/Makefile.rules
include Makefile.rules
LDFLAGS += -framework Foundation

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,3 +1,2 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,3 +1,2 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
C_SOURCES := main.c
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,6 +1,4 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
CXXFLAGS += -std=c++11
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := wait-a-while.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,8 +1,6 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp test.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules
a.out: dummy

View File

@ -1,6 +1,4 @@
LEVEL = ../../../make
CXX_SOURCES := dummy.cpp
EXE := dummy
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,7 +1,5 @@
LEVEL = ../../../make
OBJC_SOURCES := main.m foo.m
include $(LEVEL)/Makefile.rules
include Makefile.rules
LDFLAGS += -framework Foundation

View File

@ -1,4 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
CXX_FLAGS_EXTRA := -finput-charset=UTF-8 -fextended-identifiers
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

View File

@ -1,7 +1,6 @@
LEVEL = ../../../make
CFLAGS_EXTRAS += -std=c99
LD_FLAGS := -dynamiclib
include $(LEVEL)/Makefile.rules
include Makefile.rules
all: a.out dylib missing

View File

@ -1,5 +1,3 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
include $(LEVEL)/Makefile.rules
include Makefile.rules

Some files were not shown because too many files have changed in this diff Show More