[ECOS] Why tests in CDL are 'calculated'.

Sergei Organov osv@javad.ru
Wed Apr 12 01:33:00 GMT 2000


Jesper,

Thanks for hint. I've made an attempt to pass CFLAGS=-O2 to the make one time
(to get rid of -g option) but immediately figured out that it doesn't work
because  it is CFLAGS that holds all the relevant compiler options. After that 
I decided to don't play with make command line.

To solve the problem I've changed all the definitions of tests to have
'default_value' instead of 'calculated', and now I just change the strings in
the 'ecos.ecc'. This works perfectly for me, but apparently there is some
reason behind the current status of these options that I don't see. So I've
decided to ask.

BTW, the fact that setting CFLAGS to something simple as -O2 doesn't work is a 
little bit confusing for those who worked a lot with sources being configured
by automake/autoconf. Wasn't it considered to put most of the required
compiler flags to another make variables to leave CFLAGS, CXXFLAGS, and LDFLAGS
available for simple modification in the command line?

Not that I believe it's very important, - Just Yet Another Suggestion.

Sergei.

Jesper Skov <jskov@redhat.com> writes:
> >>>>> "Sergei" == Sergei Organov <osv@javad.ru> writes:
> 
> Sergei> Hello, I wonder why all the test lists in CDL files have
> Sergei> property 'calculated' and not just 'default_value'? It's so
> Sergei> useful to turn off building of tests that are not required
> Sergei> while debugging!
> 
> If you just want to build a certain set of tests, do:
> 
>  % make
>  % make -C kernel/current tests
> 
> or even
> 
>  % make -C kernel/current tests TESTS=tests/tm_basic
> 
> Jesper



More information about the Ecos-discuss mailing list