Menu

#1576 Problems when running Macrospace testgroup on a MAC

None
invalid
nobody
None
none
1
2018-12-02
2018-11-21
No

When running the macrospace.testgroup the execution breaks and no results are found at the end. I have gone through all the assertions and commented out the ones that breaks the execution. For some tests the execution continues but the testgroup finishes with a to low number of assertions.

I have tried my own installer (without an rxapi daemon) but also th installer for BSF4ooRexx, WITH a daemon running, both have these problems.

I have attached a file where I have commneted out the assertions that break the execution, all other tests run as they should.

The commandline I used was

rexx testOORexx.rex -R ./ooRexx/base/rexxutil -s -S -X native_api -f Macrospace.testGroup

(Please note: I could not make the simpler syntax proposed by Erich rexx testOORexx.rex -f Macrospace.testGroup work, no testgroups are found with this syntax, I need the ./ on the MAC to locate the testgroups in subdirectories)

1 Attachments

Related

Bugs: #1576

Discussion

  • Rick McGuire

    Rick McGuire - 2018-11-21

    You have merely commented out all of the tests that involve significant communication with rxapi. This is not really useful information.

     
  • Per Olov Jonsson

    I am sorry this was not helpful. When I "say" the items commented out I get this info

    ::method test_add_three_args_option

    Event: [SYNTAX 98.986] raised unexpectedly.
    Reference to unassigned variable "TEST_ADD".
    Line: 176
    176 - say 'test_add' test_add

    Event: [SYNTAX 98.986] raised unexpectedly.
    Reference to unassigned variable "OPTION".
    Line: 178
    178 - say 'option' option

    So it seems that the variables going into the test are not defined. If that is on purpose to provoke the error I can not tell.

    If you do not want to pursue these items please close the ticket, I will comment out the problem cases and keep a log of what I did for later.

     
    • Rick McGuire

      Rick McGuire - 2018-11-21

      Since test_add is not a variable, that is the correct result. test_add() should be the name of an external function that has been added to the macrospace. That is the part that requires the rxapi daemon.

       
      • Per Olov Jonsson

        Just for my understanding;
        you are saying that this code is correct

        ::method test_add_three_args_option
        do option over "a", "b", "A", "B"
        self~assertEquals(self~OK, SysClearRexxMacroSpace())
        self~assertEquals(self~OK, SysAddRexxMacro("test_add", self~macroPath, option))
        self~assertEquals(option~upper, SysQueryRexxMacro("test_add"))
        /Dbg self~assertEquals(self~macroRc, test_add())/
        end

        In particular the call SysAddRexxMacro("test_add", self~macroPath, option) have the correct syntax, it is just failing (on the MAC) because of some problem with rxapi?

        Please note that I DO have the rxapi daemon running when I do the test, this is done with the BSF4ooRexx installer that have stood up to every other test I have thrown on it until now, except these ones.

        I have no idea on how to check this further at the moment but maybe the general discussion will provide the answer eventually.

        Von meinen Macbook gesendet

        Hälsningar/Regards/Grüsse,
        P.O. Jonsson
        oorexx@jonases.se

        Am 21.11.2018 um 15:49 schrieb Rick McGuire bigrixx@users.sourceforge.net:

        Since test_add is not a variable, that is the correct result. test_add() should be the name of an external function that has been added to the macrospace. That is the part that requires the rxapi daemon.

        [bugs:#1576] https://sourceforge.net/p/oorexx/bugs/1576/ Problems when running Macrospace testgroup on a MAC

        Status: open
        Group: 5.0.0
        Created: Wed Nov 21, 2018 07:39 AM UTC by Per Olov Jonsson
        Last Updated: Wed Nov 21, 2018 02:43 PM UTC
        Owner: nobody
        Attachments:

        Macrospace.testGroup, commented out assertions break the execution on MAC.txt https://sourceforge.net/p/oorexx/bugs/1576/attachment/Macrospace.testGroup%2C%20commented%20out%20assertions%20break%20the%20execution%20on%20MAC.txt (5.0 kB; text/plain)
        When running the macrospace.testgroup the execution breaks and no results are found at the end. I have gone through all the assertions and commented out the ones that breaks the execution. For some tests the execution continues but the testgroup finishes with a to low number of assertions.

        I have tried my own installer (without an rxapi daemon) but also th installer for BSF4ooRexx, WITH a daemon running, both have these problems.

        I have attached a file where I have commneted out the assertions that break the execution, all other tests run as they should.

        The commandline I used was

        rexx testOORexx.rex -R ./ooRexx/base/rexxutil -s -S -X native_api -f Macrospace.testGroup

        (Please note: I could not make the simpler syntax proposed by Erich rexx testOORexx.rex -f Macrospace.testGroup work, no testgroups are found with this syntax, I need the ./ on the MAC to locate the testgroups in subdirectories)

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1576/ https://sourceforge.net/p/oorexx/bugs/1576/
        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #1576

        • Rick McGuire

          Rick McGuire - 2018-11-21

          Yes, that is what I am saying. It runs fine on Windows and as far as I know, fine on every other platform (including Sun). Assuming you have an up-to-date build, this likely points to an issue with the rxapi daemon. Given you are not running a build provided by the project, this is not my problem to solve.

           
          • Anonymous

            Anonymous - 2018-11-21

            ooRexx in BSF4ooRexx is built with the project's CMake definitions right from the project's trunk without any edits.

            If I understood P.O. correctly all other tests run successfully also those that interface with rxapi, but the macrospace tests exhibit problems. So the setupaccording to Apple's rules works in principle.

            Short of being able to look into this myself right now (will be able to do so on the weekend) two speculative ideas: maybe the constant relaunching of rxapid on MacOSX causes this, or maybe the write flag needs to be set for rxapi* group or world, which would be prohibited on MacOSX for daemons.

             
  • Rony G. Flatscher

    Just finished creating a new BSF4ooRexx installation package for MacOSX which includes ooRexx from trunk (can be obtained from https://sourceforge.net/projects/bsf4oorexx/files/beta/20181002/).

    Ran all ooRexx test units in test/trunk/ooRexx/base/ which includes the Macorspace.testGroup and all tests pass in that environment.

     
  • Rick McGuire

    Rick McGuire - 2018-11-23
    • status: open --> invalid
    • Group: 5.0.0 --> None
     
  • Rick McGuire

    Rick McGuire - 2018-11-23

    This looks like an invalid setup, not a bug in the code.

     
  • Anonymous

    Anonymous - 2018-12-01

    Hmm, I have to correct my statement: running the Macrospace.testGroup tests on the latest MacOS stops the execution of testOORexx.rex without an error message or statistic output, rather:

    wu114184:trunk rony$ rexx testOORexx.rex -R ./ooRexx/base/rexxutil -f Macrospace.testGroup -s -S
    Searching for test containers..
    Executing automated test suite
    Executing testSuite [testCase: [] (an ooTestSuite@n/a_-4469113537)@-4469113537] with [2] test cases ...
    Executing testSuite [testCase: [The Macrospace.testGroup class] (an ooTestSuite@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)@-4469140289] with [36] test cases ...
    ... running TestCase object [testCase: [TEST_ADD_ARG_OPTION_ILLEGAL] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
    ... running TestCase object [testCase: [TEST_ADD_ARG_PATH_NOT_EXISTING] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
    ... running TestCase object [testCase: [TEST_ADD_ARG_PATH_NULL] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
    ... running TestCase object [testCase: [TEST_ADD_FOUR_ARGS_TOO_MANY] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
    ... running TestCase object [testCase: [TEST_ADD_NO_ARG_TOO_FEW] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
    ... running TestCase object [testCase: [TEST_ADD_ONE_ARG_TOO_FEW] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
    ... running TestCase object [testCase: [TEST_ADD_THREE_ARGS_OPTION] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
    wu114184:trunk rony$ 
    

    Not sure what the reason could be.

     
    • Erich

      Erich - 2018-12-01

      What is the return code when Rexx stops?

       
      • Anonymous

        Anonymous - 2018-12-01

        rc is zero (0).

        Ran it with address...with to be sure to get the pristine rc.

         
        • Anonymous

          Anonymous - 2018-12-01

          Forgot the rexxtry.rex-session:

           rc = 0 ....................................... rexxtry.rex on DARWIN
          cmd="rexx testOORexx.rex -R /Users/rony/dev/oorexx_allura/test/trunk -f Macrospace.testGroup -s -S"
            .............................................. rexxtry.rex on DARWIN
          address "" cmd with error using (err) output using (out); say "rc="rc;say "out:" out;say "err:" err
          rc=0
          out: Searching for test containers..
          Executing automated test suite
          Executing testSuite [testCase: [] (an ooTestSuite@n/a_-4393530353)@-4393530353] with [2] test cases ...
          Executing testSuite [testCase: [The Macrospace.testGroup class] (an ooTestSuite@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)@-4393557105] with [36] test cases ...
          err: ... running TestCase object [testCase: [TEST_ADD_ARG_OPTION_ILLEGAL] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
          ... running TestCase object [testCase: [TEST_ADD_ARG_PATH_NOT_EXISTING] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
          ... running TestCase object [testCase: [TEST_ADD_ARG_PATH_NULL] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
          ... running TestCase object [testCase: [TEST_ADD_FOUR_ARGS_TOO_MANY] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
          ... running TestCase object [testCase: [TEST_ADD_NO_ARG_TOO_FEW] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
          ... running TestCase object [testCase: [TEST_ADD_ONE_ARG_TOO_FEW] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
          ... running TestCase object [testCase: [TEST_ADD_THREE_ARGS_OPTION] (a Macrospace.testGroup@/Users/rony/dev/oorexx_allura/test/trunk/ooRexx/base/rexxutil/Macrospace.testGroup)] ...
            rc = 0 ....................................... rexxtry.rex on DARWIN
          
           
  • Erich

    Erich - 2018-12-02

    I've set up a Jenkins client on P.O.'s Mac to build and run tests for the rxapi sandbox version.
    It builds fine and passes all tests.

    Interpreter:        REXX-ooRexx_5.0.0(MT)_64-bit 6.05 2 Dec 2018
    OS Name:            DARWIN
    SysVersion:         Darwin Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64.17.7.0
    
    Tests ran:          22398
    Assertions:         375209
    Failures:           0
    Errors:             0
    

    I noticed, that it was difficult to get the recently built sandbox rxapi version of Rexx to run, as some older, already-installed components would always be picked up. Setting PATH was insufficient, and I had to CD into the install directory and start rexx from there.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB