<div dir="ltr">Invalid directory. Sorry for the doubt.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 7, 2020 at 8:18 PM Richi Dubey <<a href="mailto:richidubey@gmail.com">richidubey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You should run all tests that doesn't explicitly configure a scheduler<br>with your new implementation.</blockquote><div>I understand. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Maybey add an<br>#ifndef CONFIGURE_MAXIMUM_PROCESSORS<br>#define CONFIGURE_MAXIMUM_PROCESSORS 1<br>#endif<br>before the default scheduler selection.</blockquote><div></div>This works.</div><div><br></div><div>I am getting this error: </div>./rtems-test \ --log=log_leon3_sis \ --rtems-bsp=leon3-sis \ ~/quick-start/build/b-smp-leon3/sparc-rtems5/c/leon3/testsuites<br>error: RTEMS Toolkit python wrapper not found, please report<br><div><br></div><div>As far as I remember, I had done --enable-tests while building my bsp.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 7, 2020 at 7:45 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 07/09/2020 16:09, Richi Dubey wrote:<br>
<br>
>     Did you<br>
>     use rtems-test before?<br>
><br>
> No. I'll do it now.<br>
><br>
> I am individually testing each smp test for now on this patch:<br>
You should run all tests that doesn't explicitly configure a scheduler <br>
with your new implementation.<br>
> ---<br>
>  cpukit/include/rtems/confdefs/scheduler.h | 2 +-<br>
>  1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/cpukit/include/rtems/confdefs/scheduler.h <br>
> b/cpukit/include/rtems/confdefs/scheduler.h<br>
> index 9305fc2d90..a93e765e53 100644<br>
> --- a/cpukit/include/rtems/confdefs/scheduler.h<br>
> +++ b/cpukit/include/rtems/confdefs/scheduler.h<br>
> @@ -55,7 +55,7 @@<br>
>    && !defined(CONFIGURE_SCHEDULER_STRONG_APA) \<br>
>    && !defined(CONFIGURE_SCHEDULER_USER)<br>
>    #if defined(RTEMS_SMP) && _CONFIGURE_MAXIMUM_PROCESSORS > 1<br>
> -    #define CONFIGURE_SCHEDULER_EDF_SMP<br>
> +    #define CONFIGURE_SCHEDULER_STRONG_APA<br>
>    #else<br>
>      #define CONFIGURE_SCHEDULER_PRIORITY<br>
>    #endif<br>
> -- <br>
><br>
> -----------------------------------------------------------------------------------<br>
> because your suggested patch gives this error:<br>
><br>
><br>
> -----------------------------------------------------------------------------------<br>
> In file included from <br>
> /home/richi/quick-start/src/rtems/cpukit/include/rtems/confdefs/scheduler.h:64:0,<br>
>                  from <br>
> /home/richi/quick-start/src/rtems/cpukit/include/rtems/confdefs/threads.h:48,<br>
>                  from <br>
> /home/richi/quick-start/src/rtems/cpukit/include/rtems/confdefs/objectsposix.h:47,<br>
>                  from <br>
> /home/richi/quick-start/src/rtems/cpukit/include/rtems/confdefs.h:77,<br>
>                  from <br>
> /home/richi/quick-start/src/rtems/c/src/../../testsuites/samples/base_sp/system.h:39,<br>
>                  from <br>
> /home/richi/quick-start/src/rtems/c/src/../../testsuites/samples/base_sp/init.c:15:<br>
> /home/richi/quick-start/src/rtems/cpukit/include/rtems/scheduler.h:260:37: <br>
> error: 'CONFIGURE_MAXIMUM_PROCESSORS' undeclared here (not in a <br>
> function); did you mean '_CONFIGURE_MAXIMUM_PROCESSORS'?<br>
>        Scheduler_strong_APA_CPU CPU[ CONFIGURE_MAXIMUM_PROCESSORS ]; \<br>
>                                      ^<br>
> /home/richi/quick-start/src/rtems/cpukit/include/rtems/confdefs/scheduler.h:149:7: <br>
> note: in expansion of macro 'RTEMS_SCHEDULER_STRONG_APA'<br>
>        RTEMS_SCHEDULER_STRONG_APA( \<br>
>        ^~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> /home/richi/quick-start/src/rtems/cpukit/include/rtems/confdefs/scheduler.h:236:3: <br>
> note: in expansion of macro 'CONFIGURE_SCHEDULER'<br>
>    CONFIGURE_SCHEDULER;<br>
>    ^~~~~~~~~~~~~~~~~~~<br>
> Makefile:939: recipe for target 'base_sp/base_sp-init.o' <br>
> failedp-init.o' failed<br>
><br>
> -----------------------------------------------------------------------------------<br>
><br>
> This is because single processor scheduler doesn't <br>
> have CONFIGURE_MAXIMUM_PROCESSORS defined, So, would you like for me <br>
> to make separate definition of CONFIGURE_SCHEDULER_STRONG_APA in <br>
> cpukit/include/rtems/scheduler.h for a single processor system or does <br>
> the current version that'd work only for SMP processor serve the purpose?<br>
<br>
Maybey add an<br>
<br>
#ifndef CONFIGURE_MAXIMUM_PROCESSORS<br>
<br>
#define CONFIGURE_MAXIMUM_PROCESSORS 1<br>
<br>
#endif<br>
<br>
before the default scheduler selection.<br>
<br>
</blockquote></div>
</blockquote></div>