Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #7316

Closed (moved)
Open
Opened Nov 04, 2012 by Trac@tracbot

nmake script for tests missing build targets

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 --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

Trac:
Username: ultramage

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.2.4.x-final
Milestone
Tor: 0.2.4.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#7316