[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #7316 [Tor]: nmake script for tests missing build targets



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs