This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 187831 - Incorrect Makefile-Debug generated for CPPUnit wizard generated tests
Summary: Incorrect Makefile-Debug generated for CPPUnit wizard generated tests
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Other Linux
: P2 normal with 7 votes (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-19 16:59 UTC by ranch_hand6
Modified: 2011-11-16 16:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full Makefile-Debug.mk (119.12 KB, application/octet-stream)
2010-06-21 15:32 UTC, ranch_hand6
Details
project.xml (876 bytes, text/xml)
2010-06-21 15:34 UTC, ranch_hand6
Details
configurations.xml (21.14 KB, text/xml)
2010-06-21 15:34 UTC, ranch_hand6
Details
simple sample (218.68 KB, application/x-gzip)
2010-06-21 16:27 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ranch_hand6 2010-06-19 16:59:50 UTC
Scenario:

Select CPP class to generate test, right click on node, Create Test -> New CppUnit Test ...
Fill out wizard with Test Name, Test Class Name, Test Runner Name, click Finish.
Right-click -> Test to run test.

Following error observed:


"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk build/Debug/GNU-MacOSX/tests/TestFiles/testDCI
make[2]: `build/Debug/GNU-MacOSX/tests/TestFiles/testDCI' is up to date.
"/usr/bin/make" -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-tests-conf
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk build/Debug/GNU-MacOSX/tests/TestFiles/testDCI
make[1]: *** No rule to make target `build/Debug/GNU-MacOSX/tests//Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.o', needed by `build/Debug/GNU-MacOSX/tests/TestFiles/f1'.  Stop.
make: *** [.build-tests-impl] Error 2
make[2]: `build/Debug/GNU-MacOSX/tests/TestFiles/testDCI' is up to date.

BUILD TESTS FAILED (exit value 2, total time: 864ms)


These are the lines that are generated int the Makefile-Debug:


# Build Test Targets
.build-tests-conf: .build-conf ${TESTFILES}
${TESTDIR}/TestFiles/f1: ${TESTDIR}//Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.o ${TESTDIR}//Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryTesteRunner.o ${OBJECTFILES:%.o=%_nomain.o}
	${MKDIR} -p ${TESTDIR}/TestFiles
	${LINK.cc} -o ${TESTDIR}/TestFiles/f1 $^ ${LDLIBSOPTIONS} -lcppunit -L/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include /opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/lib/libcppunit.a 


${TESTDIR}/_ext/1897666319/dbHistoryRecordTestClass.o: /Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.cpp 
	${MKDIR} -p ${TESTDIR}/_ext/1897666319
	${RM} $@.d
	$(COMPILE.cc) -g -I. -I/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Database/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Msgs/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Queues/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/DD/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Drivers/serialComm/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Enet/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/GPS/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/History/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Profile/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Radio/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Startup/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/System/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Utilities/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Web\ page/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Wifi/inc -I/opt/local/var/macports/software/boost/1.42.0_0/opt/local/include -I/opt/local/var/macports/software/gpsd/2.92_0/opt/local/include -I/opt/local/var/macports/software/sqlite3/3.6.23.1_0/opt/local/include -I. -I. -I. -I/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include -MMD -MP -MF $@.d -o ${TESTDIR}/_ext/1897666319/dbHistoryRecordTestClass.o /Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.cpp


${TESTDIR}/_ext/1897666319/dbHistoryTesteRunner.o: /Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryTesteRunner.cpp 
	${MKDIR} -p ${TESTDIR}/_ext/1897666319
	${RM} $@.d
	$(COMPILE.cc) -g -I. -I/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Database/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Msgs/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Class-libraries/Queues/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/DD/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Drivers/serialComm/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Enet/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/GPS/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/History/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Profile/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Radio/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Startup/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/System/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Utilities/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Web\ page/inc -I../../RDMS_DCI/dci_dev_top/DCI-app/Wifi/inc -I/opt/local/var/macports/software/boost/1.42.0_0/opt/local/include -I/opt/local/var/macports/software/gpsd/2.92_0/opt/local/include -I/opt/local/var/macports/software/sqlite3/3.6.23.1_0/opt/local/include -I. -I. -I. -I/opt/local/var/macports/software/cppunit/1.12.1_0/opt/local/include -MMD -MP -MF $@.d -o ${TESTDIR}/_ext/1897666319/dbHistoryTesteRunner.o /Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryTesteRunner.cpp

Note that the file targets for the individual generated test files (e.g., ${TESTDIR}/_ext/1897666319/dbHistoryTesteRunner.o) are not correctly reflected in the overall test target (e.g., ${TESTDIR}//Users/tonydenn/Development/RDMS_DCI/dci_dev_top/DCI-app/tests/dbHistoryRecordTestClass.o )

Expected Behavior:  ${TESTDIR}/_ext/1897666319/dbHistoryTesteRunner.o and ${TESTDIR}/_ext/1897666319/dbHistoryRecordTestClass.o in the ${TESTDIR}/TestFiles/f1: make line.
Comment 1 ranch_hand6 2010-06-21 15:32:58 UTC
Created attachment 100277 [details]
Full Makefile-Debug.mk
Comment 2 ranch_hand6 2010-06-21 15:34:11 UTC
Created attachment 100278 [details]
project.xml
Comment 3 ranch_hand6 2010-06-21 15:34:42 UTC
Created attachment 100279 [details]
configurations.xml
Comment 4 soldatov 2010-06-21 16:21:54 UTC
Thanks, ranch_hand6@netbeans.org
I understood your problem before your latest messages. But now it is clear
Comment 5 soldatov 2010-06-21 16:27:45 UTC
Created attachment 100280 [details]
simple sample
Comment 6 ranch_hand6 2010-06-21 16:51:22 UTC
Yes, looks like you've got it.
Comment 7 darrellmsu123 2010-07-26 14:55:00 UTC
Problem occurs with Linux as well -- running on CENTOS 5.4 with NetBeans 6.9.
Comment 8 AdamMagaluk 2010-08-12 16:30:39 UTC
I have this same problem, when I use "Add Sources From Folder" option.

I am running Linux Debian Squeeze and Netbeans 6.9.1