13 Dec, 2013

1 commit

  • 
    Most of the replace was done by global search replace from Eclipse via regular expressions.
    Individual files had incorrect headers or badly formatted ones, so some of them have been done manually by replacing the content between CDDL HEADER START and CDDL HEADER END.
    Some headers were quoting "trunk/opends/resource/legal-notices/CDDLv1_0.txt" while it should have been "legal-notices/CDDLv1_0.txt".
    
    
    Removed:
    - resource/legal-notices/OpenDS.LICENSE
    
    The following required manual changes:
    - build.xml
    - ext/checkstyle/opendj.sourceheader
    - resource/admin/java-utilities.xsl
    - src/build-tools/org/opends/build/tools/ProcessFilesForPackages.java
    - src/build-tools/windows/*
    - src/pkg/opends-dsml-gateway_proto.py
    - src/pkg/opends_proto.py
    - src/server/org/opends/server/util/ServerConstants.java
    - tests/staf-tests/functional-tests/shared/data/aci/aci_targattrfilter/add_aci18.ldif
    - tests/staf-tests/build.bat
    
    An incorrect header mentionning "exclude" instead of "include" in the copyright header existed for: tests/staf-tests/functional-tests/testcases/backends/backup/**/*
    
    Some files have no copyright headers at all. I did not update them. Here is some of them (more exist):
    - tests/staf-tests/functional-tests/shared/data/core/psearch/**/*.ref
    - tests/staf-tests/functional-tests/shared/data/core/psearch/**/delete.ldif
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9984 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

12 Dec, 2013

1 commit

  • Code review: Matthew Swift
    
    build.xml:
    Removed special checks checkstyle for org.opends.server.api, org.opends.server.protocols.internal, org.opends.server.types packages. Matt said they were added to ease embedding code into the docs, but this never happened, so this feature is basically dead.
    Extracted property named "buildtools.jar"
    
    opends-doctarget-checkstyle.xml: REMOVED
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@9970 41b1ffd8-f28e-4786-ab96-9950f0a78031
    JnRouvignac
     

07 May, 2013

1 commit


26 Jul, 2012

1 commit


19 Mar, 2012

2 commits


23 Jan, 2012

1 commit


17 Jan, 2012

1 commit


27 Jul, 2011

1 commit


06 Dec, 2010

1 commit


14 Jan, 2010

1 commit


23 Sep, 2009

1 commit


13 Aug, 2009

1 commit


21 Oct, 2008

1 commit


13 Sep, 2007

1 commit


02 Sep, 2007

1 commit

  • * Test methods are no longer interleaved between classes.  All test
    methods in a class are run together, with @BeforeClass and @AfterClass
    methods called immediately before and after the methods are run.  As
    part of this fix, you are now required to include sequential=true in
    every class level @Test annotation.  If you don't do this, the build
    will complain.
    
    * Added a TestCaseUtils.restartServer() method that will do an in core 
    restart of the directory server during the tests.  This can be used in a 
    @BeforeClass method to ensure that the tests start with a clean 
    directory server, and also in an @AfterClass method to cleanup after a 
    test that makes a lot of configuration changes.  So if you introduce a 
    new test that runs fine in isolation but fails when run with other 
    tests, you could try calling TestCaseUtils.restartServer() in its 
    @BeforeClass method.  The TestCaseUtils.restartServer() method will 
    reinitialize the server and reload the original test configuration, but 
    it's not quite the same as creating a completely new process.  
    Specifically, it cannot undo any changes that were made to static member 
    variables of a class.  I've fixed a handful of places in the server 
    where this was a problem, but there might be more lurking.  If you write 
    a test that changes static member variables of a class, please make sure 
    that it cleans up after itself in an @AfterMethod or @AfterClass test.
    
    * The tests now use significantly much less memory.  I saw a peak of
    only 80MB.  There were two main problems.  1) TestNG holds on to all
    parameters and results for the whole test, and 2) since the test
    classes themselves live for the duration of the tests, their member
    variables were holding onto a lot of garbage.  The in-core restart
    made this problem much worse because we ended up with lots of copies
    of the Schema, ConfigEntryS, etc.  I've introduced some hacks to fix
    this.  Basically the code uses devious methos to go in and null out
    the parameters and member variables after the test has run.  If you're
    curious about the details of how we've addressed this take a look at
    the comments in DirectoryServerTestCase.  From now on, all test
    classes must inherit directly or indirectly from
    DirectoryServerTestCase.  The build will fail if they don't.
    
    * Upgrade to TestNG b5.7.  There is a fix in this release that helps
    our tests to run in order, and I've had to make a couple of more
    fixes, which they will eventually put back into the trunk.
    
    * In classes with a class-level @Test annotation, TestNG treats any
    public method (except @Before/After* methods) as a test method.  The
    build now points this out and asks you to either add a specific @Test
    annotation to the method or change the method to be non-public.  I've
    fixed up several places where a test wasn't annotated and others where
    a non-test method was being treated as a test method.
    
    * The tests now report progress as they run.  Run 'build testhelp' to
    see details on how to control the output.
    
    
    I've also added some new test properties, mainly to make debugging the 
    tests easier
    
    * test.remote.debug.port:  This test property allows you to remotely 
    attach a debugger to the unit tests.  If you provide a valid port value, 
    the unit tests will not start to run until the debugger is attached.
    
    * testng.verbosity0to5:  This test property controls the debugging 
    output of TestNG.  This output is useful to check the order in which 
    test methods are invoked or other details on what TestNG is doing.  
    Valid values are integer values from 0 (no output) to 5 (maximum 
    output).  Since this implicitly sets 
    -Dorg.opends.test.suppressOutput=false, other stderr/stdout output 
    generated by the unit tests will also be displayed.
    
    * org.opends.test.copyClassesToTestPackage=true:  This test property 
    copies the classes into the test server root.  This enables you to run 
    the server tools on the test server.  It can slow down the test startup 
    so the files are no longer copied by default.
    
    Thanks to Neil for trying out these changes and to him and Bo for
    helping me track down some of the memory leaks.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@2902 41b1ffd8-f28e-4786-ab96-9950f0a78031
    davidely
     

28 Jun, 2007

1 commit

  • …ests.  The previous implementation only worked for the default tests and not the precommit or function test definitions.
    
    With this commit:
    
    The following rules apply to the generation of content for test.xml by PrepTestNG:
    
    - For the default test definition, if no group clauses have been specified and the platform is non-Windows and explicit Windows exclusion element is generated.
    - For the default test definition, if group clauses have been specified a Windows exclusion element is generated if the platform is non-Windows and a Windows group clause has not been explicitly provided.
    - The precommit and functional test definitions are always parameterized with an explicit Windows exclusion element if the platform is non-Windows.
    
    Corrected and added to the test framework help generated in build.xml.
    
    I have also cleaned up the formatting of the generated XML with reasonable indentation.
    
    Reenabled TestStaticUtils.testRenameFileLockedTarget() 
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@2214 41b1ffd8-f28e-4786-ab96-9950f0a78031
    kenneth_suter
     

12 Mar, 2007

2 commits


01 Mar, 2007

2 commits

  • 
    git-svn-id: https://svn.forgerock.org/opendj/trunk@1285 41b1ffd8-f28e-4786-ab96-9950f0a78031
    neil_a_wilson
     
  • …atically instrumented by AspectJ. Non instrumented debug method calls are updated to use the new debug framework methods. However, the new debug logging framework is not yet active as the Aspects are not weaved in. After this revision, debug logging will be disabled in the server until the new AOP framework is complete. 
    
    - Removed debugEnter and debugConstructor from all source files.
    - Removed CLASS_NAME static string for debug purposes.
    - Removed old debug logging framework.
    - Added new debug logging frameworking using AOP.
    - Added AspectJ binary and libraries.
    - Change all modified files copyrights to include 2007.
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@1280 41b1ffd8-f28e-4786-ab96-9950f0a78031
    boli
     

18 Feb, 2007

1 commit


28 Jan, 2007

2 commits

  • reduce the time required for it to run during subsequent builds.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@1048 41b1ffd8-f28e-4786-ab96-9950f0a78031
    neil_a_wilson
     
  • interact with the Subversion workspace.  This includes three components:
    
    - A new Ant task that stores the current workspace revision number in an Ant
      property which gets built into DynamicConstants.java and exposed in the
      --fullversion and "cn=version,cn=monitor" information.
    
    - A new Ant task that checks all files that have been locally modified in the
      current workspace for potential cases in which a copyright date needs to be
      updated to include the current year.
    
    - A change to the coveragediff tool so that it uses the SVNKit library to
      obtain the diff rather than trying to execute the external svn/svn.exe
      command.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@1047 41b1ffd8-f28e-4786-ab96-9950f0a78031
    neil_a_wilson
     

22 Jan, 2007

1 commit

  • …an uncaught exception in the tests, this gives us the stack trace and forces the tests to exit.  This should make it easier to track down OutOfMemoryErrors in the future.
    
    2.  Added our own listener for the tests.  This does the following
      * As soon as a test fails, it prints it out all of the info to the screen.  Test method, error message, stacktrace, parameters
      * At the end of the tests, it summarizes all of the tests that failed.
      * It generates a new test report in text format.  The html report generator was a real memory hog.
    
    3.  Changes to build.xml
       * Test output is suppressed by default.
       * The coverage report is generated even if the tests failed.
       * Exposed the ability to rerun only the failed tests with -Dtest.failed=true.
       * The 'runtests' target prints out information about additional test options.
       * Two small fixes so that ant doesn't recompile files that haven't changed.
       * Removed tabs.  This was mostly in the status panel code.
       * Reverted the -Xmx256M temporary fix for the unit tests.
    
    
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@1005 41b1ffd8-f28e-4786-ab96-9950f0a78031
    davidely
     

17 Nov, 2006

2 commits

  • by build-tools get created under the build directory so they do not get
    accidentally checked into the repository and get properly cleaned up by the
    "clean" target.
    
    The build-tools.jar file should now be built every time it is needed, so the
    static copy has been removed from the ext directory.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@745 41b1ffd8-f28e-4786-ab96-9950f0a78031
    neil_a_wilson
     
  • * Add a new quicksetup.jar file that can be used for both Web Start and local installations of Open DS.
    
    * Modify the setup script so that now they will launch by default the graphical setup.  If an error occurs (because for instance we do not have access to the display) or if the user specifies the --cli option then we will use the cli based setup (the one we had until today).
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@744 41b1ffd8-f28e-4786-ab96-9950f0a78031
    jvergara
     

30 Oct, 2006

2 commits


27 Sep, 2006

1 commit


26 Sep, 2006

2 commits


25 Sep, 2006

1 commit


21 Sep, 2006

1 commit


19 Sep, 2006

2 commits

  • default test ant target, I have added a "slow" test group to testng. To
    use it, just put something like "@Test(groups = { "slow" })" before your
    test case method. 
    
    This is implemented by a modified testng.xml file which is modified by a
    custom ant task called preptestng. It basically takes a
    group include/exclude string like "exclude=slow,include=fast" from ant
    and insert the correct tags into a copy of the testng.xml file.
    
    A new resource directory is now created before running tests to hold the
    modified testng.xml. it is located at build/unit-tests/resource. The
    preptestng task will copy the master testng.xml file from
    ext/testng/testng.xml to the new resource directory and add the
    appropreate group tags based on parameters from ant.
    
    This also creates a build-tools top level directory to hold this tool and any future build tools. A new ant target called "buildtools" is also added to rebuild the tools and make the build-tools.jar file in ext.
    
    The slow tests are only ran with the all, testall, or
    testallwithcoverage targets.
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@384 41b1ffd8-f28e-4786-ab96-9950f0a78031
    boli
     
  • git-svn-id: https://svn.forgerock.org/opendj/trunk@381 41b1ffd8-f28e-4786-ab96-9950f0a78031
    dugan
     

18 Sep, 2006

1 commit

  • - The entryUUID plugin
    - The password policy import plugin
    - The LDAP attribute description list plugin
    - The LastMod plugin
    - The length-based password validator
    - The default entry cache
    - The null connection security provider
    - The internal connection security provider
    - The ANONYMOUS SASL mechanism handler
    - The CRAM-MD5 SASL mechanism handler
    
    
    git-svn-id: https://svn.forgerock.org/opendj/trunk@373 41b1ffd8-f28e-4786-ab96-9950f0a78031
    neil_a_wilson
     

16 Sep, 2006

1 commit


14 Sep, 2006

1 commit


12 Sep, 2006

1 commit