×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    82

    automated builds

    Hi,

    I would like to do automated builds (using batch file and cruise control) for my application, most compilers set Errorlevel to greater than 0 if the error occuried, however it seems Metrowerks and GCC-E doesn't do it.

    Is there other way to check that the build failed?

    Thanks.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: automated builds

    One way out is Write a Perl Script to Trap the Errors in batch build, atleast it work for me.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Location
    Bengaluru, India
    Posts
    747

    Re: automated builds

    Quote Originally Posted by rpunskyy
    Hi,

    I would like to do automated builds (using batch file and cruise control) for my application, ...
    Check this link, it'll be interesting for you: a little help about the script

  4. #4
    Registered User
    Join Date
    Feb 2007
    Posts
    2

    Re: automated builds

    I expect that you'll have difficulty with this. One problem we found is that the symbian batchfiles (autogenerated and otherwise) consistently use this idiom (this example is from a generated ABLD.BAT):

    Code:
    perl -S ABLD.PL "\symbian\my-app-dir\" %1 %2 %3 %4 %5 %6 %7 %8 %9
    if errorlevel==1 goto CheckPerl
    goto End
    
    :CheckPerl
    perl -v >NUL
    if errorlevel==1 echo Is Perl, version 5.003_07 or later, installed?
    goto End
    which is unfortunately broken -- if perl returns an error code we go to the CheckPerl test, which (assuming it succeeds, as it will on a properly set up system) will cause the whole script to exit with a success status anyway. These scripts ought to be fixed to propagate error status properly.

    I notice that Carbide works around some of these problems by invoking the perl scripts directly rather than via the batch file wrappers...

Similar Threads

  1. automated testing tool for j2me
    By jini_1 in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2009-09-24, 07:11
  2. Editing automated voice dialling tags 6270
    By ashcash2003 in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-10-16, 08:35
  3. Please test the fast builds!
    By jplauril in forum Symbian
    Replies: 13
    Last Post: 2005-11-20, 10:42
  4. Automated testing & remote handset access
    By yorammizrachi in forum General Development Questions
    Replies: 1
    Last Post: 2005-09-08, 09:05
  5. automated response
    By phil_nok in forum General Messaging
    Replies: 2
    Last Post: 2003-06-05, 09:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×