Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #7316

Closed (moved)
(moved)
Open
Created 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
Time tracking