[tor-bugs] #7316 [Tor]: nmake script for tests missing build targets
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Sun Nov 4 14:23:48 UTC 2012
#7316: nmake script for tests missing build targets
-----------------------+----------------------------------------------------
Reporter: ultramage | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor | Version:
Keywords: msvc | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
src/test/Makefile.nmake only builds test.exe and omits test-child.exe
(required part of test.exe unit tests) and bench.exe (a set of
benchmarks). The following patch fixes that:
{{{
#!diff
diff --git a/src/test/Makefile.nmake b/src/test/Makefile.nmake
index aec477c..8ab077a 100644
--- a/src/test/Makefile.nmake
+++ b/src/test/Makefile.nmake
@@ -1,4 +1,4 @@
-all: test.exe
+all: test.exe test-child.exe bench.exe
CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common /I
..\or
@@ -16,5 +16,11 @@ TEST_OBJECTS = test.obj test_addr.obj
test_containers.obj \
test.exe: $(TEST_OBJECTS)
$(CC) $(CFLAGS) $(LIBS) ..\common\*.lib $(TEST_OBJECTS)
+test-child.exe: test-child.obj
+ $(CC) test-child.obj
+
+bench.exe: bench.obj
+ $(CC) bench.obj $(LIBS) ..\common\*.lib
+
clean:
del $(TEST_OBJECTS) *.lib test.exe
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7316>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list