Euphoria Ticket #135: Ability to test code on other platforms

It might be useful for the interpreter to accept the -plat argument. The effect would be similar to the translator, but with the additional effect of adding the -test argument.

This would provide a way to test to see if some change had been made that broke platforms other than the one on which you were currently working. The main purpose for this would be to add a unit test for the standard library (and probably the various front ends, too) to ensure that they weren't obviously broken.

It wouldn't be meant to be a thorough test, but would catch obvious mistakes like missing a declaration on a platform.


Type: Feature Request Severity: Normal Category: Interpreter
Assigned To: jimcbrown Status: New Reported Release:
Fixed in SVN #: View VCS: none Milestone: 4.1.0

1. Comment by SPringle May 14, 2010

The syntax would be checked but in the end, you need to actually test it on the said platform to know it is correct anyway.

2. Comment by mattlewis May 14, 2010

Yes, it obviously wouldn't allow real testing, but could allow us to catch mistakes earlier.

3. Comment by jeremy Dec 08, 2010

When I began working on OpenBSD working through issues there an entire of section of code looked like:

    constant abc = 1, 
        def = 2 
        xyz = 10 
        abc123 = 99 

Needless to say it didn't compile. All of our current tests didn't catch it, nor did our eyes. However, the said test here may not catch similar cases because if the ifdef were setup properly, it would have never had a elsedef. I fixed the problem further up in code by changing:

elsdef FREEBSD or SUNOS then 


elsedef BSD or SUNOS then 


Quick Links

User menu

Not signed in.

Misc Menu