IPDL/Unit test generation: Difference between revisions

Update to reflect that make script must run from it's folder, requires mozmake as Windows msys make is not supported, and that run-mozilla.sh no longer exists. New process confirmed to work on Windows.
No edit summary
(Update to reflect that make script must run from it's folder, requires mozmake as Windows msys make is not supported, and that run-mozilla.sh no longer exists. New process confirmed to work on Windows.)
 
Line 39: Line 39:
If all goes well, running
If all goes well, running


   make -C $OBJDIR/ipc/ipdl/test/cxx
   cd $OBJDIR/ipc/ipdl/test/cxx
  mozmake
 


will update the file IPDLUnitTests.cpp (the test launcher), and your
will update the file IPDLUnitTests.cpp (the test launcher), and your
Line 45: Line 47:




You can launch your new test by invoking
You can launch your new test by invoking (from the $OBJDIR/ipc/ipdl/test/cxx folder)
 
  mozmake check
  make -C $OBJDIR/ipc/ipdl/test/cxx check


If you want to launch only your test, run
If you want to launch only your test, run


   cd $OBJDIR/dist/bin
   cd $OBJDIR/dist/bin
   ./run-mozilla.sh ./ipdlunittest TestFoo
   ./ipdlunittest TestFoo




5

edits