mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 212596: JUnit failures in cdt.managedbuilder.test.suite
updated benchmarks to match CDT 6.0
This commit is contained in:
parent
be4c1f9cf2
commit
be88dc4a60
4 changed files with 30 additions and 37 deletions
|
@ -2,42 +2,42 @@
|
||||||
# Automatically-generated file. Do not edit!
|
# Automatically-generated file. Do not edit!
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
ROOT := ..
|
-include ../makefile.init
|
||||||
|
|
||||||
-include $(ROOT)/makefile.init
|
|
||||||
|
|
||||||
RM := rm -rf
|
RM := rm -rf
|
||||||
|
|
||||||
# All of the sources participating in the build are defined here
|
# All of the sources participating in the build are defined here
|
||||||
-include sources.mk
|
-include sources.mk
|
||||||
-include $(SUBDIRS:%=%/subdir.mk)
|
-include subdir.mk
|
||||||
-include objects.mk
|
-include objects.mk
|
||||||
ifneq ($(strip $(DEPS)),)
|
|
||||||
-include $(DEPS)
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
|
ifneq ($(strip $(C_DEPS)),)
|
||||||
|
-include $(C_DEPS)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
-include $(ROOT)/makefile.defs
|
-include ../makefile.defs
|
||||||
|
|
||||||
# Add inputs and outputs from these tool invocations to the build variables
|
# Add inputs and outputs from these tool invocations to the build variables
|
||||||
|
|
||||||
# All Target
|
# All Target
|
||||||
all: lib.a
|
all: liblinkedFolder.a
|
||||||
|
|
||||||
# Tool invocations
|
# Tool invocations
|
||||||
lib.a: $(OBJS) $(USER_OBJS)
|
liblinkedFolder.a: $(OBJS) $(USER_OBJS)
|
||||||
@echo 'Building target: $@'
|
@echo 'Building target: $@'
|
||||||
@echo 'Invoking: archiver.gnu'
|
@echo 'Invoking: archiver.gnu'
|
||||||
@echo ar -r lib.a $(OBJS) $(USER_OBJS) $(LIBS)
|
ar -r "liblinkedFolder.a" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||||
@ar -r lib.a $(OBJS) $(USER_OBJS) $(LIBS)
|
|
||||||
@echo 'Finished building target: $@'
|
@echo 'Finished building target: $@'
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
# Other Targets
|
# Other Targets
|
||||||
clean:
|
clean:
|
||||||
-$(RM) $(OBJS)$(DEPS) lib.a
|
-$(RM) $(OBJS)$(C_DEPS) liblinkedFolder.a
|
||||||
-@echo ' '
|
-@echo ' '
|
||||||
|
|
||||||
.PHONY: all clean dependents
|
.PHONY: all clean dependents
|
||||||
.SECONDARY:
|
.SECONDARY:
|
||||||
|
|
||||||
-include $(ROOT)/makefile.targets
|
-include ../makefile.targets
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
# Automatically-generated file. Do not edit!
|
# Automatically-generated file. Do not edit!
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
O_SRCS :=
|
||||||
C_SRCS :=
|
C_SRCS :=
|
||||||
S_UPPER_SRCS :=
|
S_UPPER_SRCS :=
|
||||||
O_SRCS :=
|
|
||||||
S_SRCS :=
|
S_SRCS :=
|
||||||
OBJS :=
|
OBJS :=
|
||||||
DEPS :=
|
C_DEPS :=
|
||||||
|
|
||||||
# Every subdirectory with source files must be described here
|
# Every subdirectory with source files must be described here
|
||||||
SUBDIRS := \
|
SUBDIRS := \
|
||||||
|
|
|
@ -4,28 +4,25 @@
|
||||||
|
|
||||||
# Add inputs and outputs from these tool invocations to the build variables
|
# Add inputs and outputs from these tool invocations to the build variables
|
||||||
C_SRCS += \
|
C_SRCS += \
|
||||||
$(ROOT)/f1.c \
|
../f1.c \
|
||||||
$(ROOT)/f2.c
|
../f2.c
|
||||||
|
|
||||||
OBJS += \
|
OBJS += \
|
||||||
./f1.o \
|
./f1.o \
|
||||||
./f2.o
|
./f2.o
|
||||||
|
|
||||||
DEPS += \
|
C_DEPS += \
|
||||||
${addprefix ./, \
|
./f1.d \
|
||||||
f1.d \
|
./f2.d
|
||||||
f2.d \
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Each subdirectory must supply rules for building sources it contributes
|
# Each subdirectory must supply rules for building sources it contributes
|
||||||
%.o: $(ROOT)/%.c
|
%.o: ../%.c
|
||||||
@echo 'Building file: $<'
|
@echo 'Building file: $<'
|
||||||
@echo 'Invoking: compiler.gnu.c'
|
@echo 'Invoking: compiler.gnu.c'
|
||||||
@echo gcc -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
|
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o"$@" "$<" && \
|
||||||
@gcc -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
|
echo -n '$(@:%.o=%.d)' $(dir $@) > '$(@:%.o=%.d)' && \
|
||||||
echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
|
gcc -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 "$<" >> '$(@:%.o=%.d)'
|
||||||
gcc -MM -MG -P -w -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
|
|
||||||
@echo 'Finished building: $<'
|
@echo 'Finished building: $<'
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
|
|
|
@ -313,14 +313,10 @@ public class ManagedProject21MakefileTests extends TestCase {
|
||||||
createPathVariable(tmpDir);
|
createPathVariable(tmpDir);
|
||||||
pathVariableCreated = true;
|
pathVariableCreated = true;
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
IPath location = Path.fromOSString(MBS_TEMP_DIR);
|
IPath location = Path.fromOSString(MBS_TEMP_DIR);
|
||||||
IProject[] projects = createProjects("linkedFolder", location, "cdt.managedbuild.target.testgnu21.lib", false);
|
IProject[] projects = createProjects("linkedFolder", location, "cdt.managedbuild.target.testgnu21.lib", false);
|
||||||
// Build the project
|
// Build the project
|
||||||
succeeded = buildProjects("linkedFolder", projects, makefiles);
|
succeeded = buildProjects("linkedFolder", projects, makefiles);
|
||||||
} finally {
|
assertTrue(succeeded);
|
||||||
if (succeeded)
|
|
||||||
ManagedBuildTestHelper.deleteTempDir(tmpSubDir, linkedFiles);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue