Hi, All the flags for the different configurations are in the SConstruct file. There are different sections of flags, and the ones you are interested in are probably LIBRARY_FLAGS, CCTEST_EXTRA_FLAGS and SAMPLE_FLAGS. What is in LIBRARY_FLAGS is used to build the V8 library. CCTEST_EXTRA_FLAGS are used to build and link the cctest executable used to run all the tests written in C++. SAMPLE_FLAGS are used to build and link the shell sample used to run all the tests written in JavaScript. You should think of adding a new flag to the SCons build to control this (e.g scons coverage=on). Look for the SIMPLE_OPTIONS definition in the SConstruct file, and see how the flags are used to control the compiler and linker options.
When looking at coverage you should think of including the Mozilla tests. See http://code.google.com/p/v8/wiki/Testing for how to run them. Please share your findings when done. Regards, Søren On Mon, Dec 15, 2008 at 3:39 AM, <[email protected]> wrote: > > Hi > > I was planning to use gcov for showing coverage using the tests > provided in V8 source code repository for a project I am doing. I was > wondering if someone could help me out? I need to change > configurations in the SConstruct file. The following arguments are > required for executing gcov. > > // The source files need to be compiled with the following arguments > gcc -fprofile-arcs -ftest-coverage > > and linked with -lgcov argument..... > > Could someone tell me what arguments do i need change in the > Sconstruct file to add these arguments. > > Thanks > Nipun Arora > Research Student > Columbia University > > PS. I would also appreciate if someone could direct me to instructions > on running the test cases, and any prerequisites for that... is there > any page with the testing documentation? > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
