How to build LWIP test on linux

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

How to build LWIP test on linux

Sachin Gole
Package : lwip_2.1.2.orig source folder
Building test on Linux with following commands

cmake CMakeLists.txt -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"

How to compile further to get unit test ?

I’m protected online with Avast Free Antivirus. Get it here — it’s free forever.

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

goldsimon@gmx.de
Am 12.03.2020 um 07:35 schrieb Sachin Gole:
> Package : lwip_2.1.2.orig source folder
> Building test on Linux with following commands
>
> cmake CMakeLists.txt -DCMAKE_C_COMPILER="/usr/bin/gcc"
> -DCMAKE_CXX_COMPILER="/usr/bin/g++"
>
> How to compile further to get unit test ?

My bash history:
cd dev/lwip/lwip/contrib/ports/unix/check/
ls
mkdir build
cd build/
cmake ..
cmake --build .
./lwip_unittests

Of course you can also use make. See travis.sh in top level directory.

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

Sachin Gole
In reply to this post by Sachin Gole
In 2.1.2 version, There is no dev folder to run lwip_unittest


~/Downloads/lwip-2.1.2$ ls
build      CMakeCache.txt  cmake_install.cmake  COPYING            CPackSourceConfig.cmake  FEATURES  Makefile  src   UPGRADING
CHANGELOG  CMakeFiles      CMakeLists.txt       CPackConfig.cmake  doc                      FILES     README    test


Great help if you can suggest.

On Thu, Mar 12, 2020 at 12:05 PM Sachin Gole <[hidden email]> wrote:
Package : lwip_2.1.2.orig source folder
Building test on Linux with following commands

cmake CMakeLists.txt -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"

How to compile further to get unit test ?

I’m protected online with Avast Free Antivirus. Get it here — it’s free forever.


--
Best regards,
Sachin
9970501145

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

goldsimon@gmx.de


Am 14. März 2020 18:47:01 MEZ schrieb Sachin Gole <[hidden email]>:

>In 2.1.2 version, There is no dev folder to run lwip_unittest
>
>
>~/Downloads/lwip-2.1.2$ ls
>build      CMakeCache.txt  cmake_install.cmake  COPYING
> CPackSourceConfig.cmake  FEATURES  Makefile  src   UPGRADING
>CHANGELOG  CMakeFiles      CMakeLists.txt       CPackConfig.cmake  doc
>                 FILES     README    test
>
>
>Great help if you can suggest.

Oh come on, really? I'm sure you can figure out the path from what I wrote.

Cheers,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

Sachin Gole
In reply to this post by Sachin Gole

Using lwip-2.1.2 version, below steps doesn't get compiled with these steps.

rajgad:~/Downloads/lwip-2.1.2$ ls
CHANGELOG  CMakeLists.txt  COPYING  doc  FEATURES  FILES  README  src  test  UPGRADING
rajgad:~/Downloads/lwip-2.1.2$ mkdir build
rajgad:~/Downloads/lwip-2.1.2$ cd build/
rajgad:~/Downloads/lwip-2.1.2/build$ cmake ../CMakeLists.txt -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") found components: doxygen missing components: dot
Doxygen build started
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sachin/Downloads/lwip-2.1.2
rajgad:~/Downloads/lwip-2.1.2/build$
rajgad:~/Downloads/lwip-2.1.2/build$ ls
rajgad:~/Downloads/lwip-2.1.2/build$ cd ..
rajgad:~/Downloads/lwip-2.1.2$ ls
build      CMakeCache.txt    CMakeDoxygenDefaults.cmake  cmake_install.cmake  COPYING            CPackSourceConfig.cmake  FEATURES  Makefile  src   UPGRADING
CHANGELOG  CMakeDoxyfile.in  CMakeFiles                  CMakeLists.txt       CPackConfig.cmake  doc                      FILES     README    test
rajgad:~/Downloads/lwip-2.1.2$ cmake --build .
rajgad:~/Downloads/lwip-2.1.2$ 

New to lwip unix version, not getting unit test executable.


On Sat, Mar 14, 2020 at 11:17 PM Sachin Gole <[hidden email]> wrote:
In 2.1.2 version, There is no dev folder to run lwip_unittest


~/Downloads/lwip-2.1.2$ ls
build      CMakeCache.txt  cmake_install.cmake  COPYING            CPackSourceConfig.cmake  FEATURES  Makefile  src   UPGRADING
CHANGELOG  CMakeFiles      CMakeLists.txt       CPackConfig.cmake  doc                      FILES     README    test


Great help if you can suggest.

On Thu, Mar 12, 2020 at 12:05 PM Sachin Gole <[hidden email]> wrote:
Package : lwip_2.1.2.orig source folder
Building test on Linux with following commands

cmake CMakeLists.txt -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"

How to compile further to get unit test ?

I’m protected online with Avast Free Antivirus. Get it here — it’s free forever.


--
Best regards,
Sachin
9970501145


--
Best regards,
Sachin
9970501145

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

goldsimon@gmx.de
Am 15.03.2020 um 17:26 schrieb Sachin Gole:
>
> Using lwip-2.1.2 version, below steps doesn't get compiled with these steps.

OK, so it seems I'm in a good mood today, so...

What in my mail from 2 days ago have you missed?
You complained about not finding a 'dev' directory in lwIP but haven't
tried to remove the first parts of the path to find a match? Thats funny.

Anyway, let me repeat what I wrote back then, but remove the
'dev/lwip/lwip' part at the start...

My bash history:
cd contrib/ports/unix/check/
ls
mkdir build
cd build/
cmake ..
cmake --build .
./lwip_unittests

Does that work for you?

>
> rajgad:~/Downloads/lwip-2.1.2$ ls
> CHANGELOG  CMakeLists.txt  COPYING  doc  FEATURES  FILES  README  src
>  test  UPGRADING
> rajgad:~/Downloads/lwip-2.1.2$ mkdir build
> rajgad:~/Downloads/lwip-2.1.2$ cd build/
> rajgad:~/Downloads/lwip-2.1.2/build$ cmake ../CMakeLists.txt

make that 'cmake ..', not 'cmake ../CMakeLists.txt'

> -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"
> -- The C compiler identification is GNU 5.4.0
> -- The CXX compiler identification is GNU 5.4.0
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc - works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/g++
> -- Check for working CXX compiler: /usr/bin/g++ - works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") found
> components: doxygen missing components: dot
> Doxygen build started
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/sachin/Downloads/lwip-2.1.2
> rajgad:~/Downloads/lwip-2.1.2/build$
> rajgad:~/Downloads/lwip-2.1.2/build$ ls

Nothing here. You've missed the '--build' phase. Cmake without '--build'
creates the build infrastructure but does not compile anything.

> rajgad:~/Downloads/lwip-2.1.2/build$ cd ..
> rajgad:~/Downloads/lwip-2.1.2$ ls
> build      CMakeCache.txt    CMakeDoxygenDefaults.cmake
>  cmake_install.cmake  COPYING            CPackSourceConfig.cmake
>  FEATURES  Makefile  src   UPGRADING
> CHANGELOG  CMakeDoxyfile.in  CMakeFiles                  CMakeLists.txt
>       CPackConfig.cmake  doc                      FILES     README    test
> rajgad:~/Downloads/lwip-2.1.2$ cmake --build .
> rajgad:~/Downloads/lwip-2.1.2$ 
>
> New to lwip unix version, not getting unit test executable.

Keeping that aside, the unit tests are build from a different path (see
above).

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

Sachin Gole
In reply to this post by Sachin Gole
Provided commands doesn't work, Looks like needs to be updated in wiki pages or README.
Tested logs are attached.

On Sun, Mar 15, 2020 at 9:56 PM Sachin Gole <[hidden email]> wrote:

Using lwip-2.1.2 version, below steps doesn't get compiled with these steps.

rajgad:~/Downloads/lwip-2.1.2$ ls
CHANGELOG  CMakeLists.txt  COPYING  doc  FEATURES  FILES  README  src  test  UPGRADING
rajgad:~/Downloads/lwip-2.1.2$ mkdir build
rajgad:~/Downloads/lwip-2.1.2$ cd build/
rajgad:~/Downloads/lwip-2.1.2/build$ cmake ../CMakeLists.txt -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") found components: doxygen missing components: dot
Doxygen build started
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sachin/Downloads/lwip-2.1.2
rajgad:~/Downloads/lwip-2.1.2/build$
rajgad:~/Downloads/lwip-2.1.2/build$ ls
rajgad:~/Downloads/lwip-2.1.2/build$ cd ..
rajgad:~/Downloads/lwip-2.1.2$ ls
build      CMakeCache.txt    CMakeDoxygenDefaults.cmake  cmake_install.cmake  COPYING            CPackSourceConfig.cmake  FEATURES  Makefile  src   UPGRADING
CHANGELOG  CMakeDoxyfile.in  CMakeFiles                  CMakeLists.txt       CPackConfig.cmake  doc                      FILES     README    test
rajgad:~/Downloads/lwip-2.1.2$ cmake --build .
rajgad:~/Downloads/lwip-2.1.2$ 

New to lwip unix version, not getting unit test executable.


On Sat, Mar 14, 2020 at 11:17 PM Sachin Gole <[hidden email]> wrote:
In 2.1.2 version, There is no dev folder to run lwip_unittest


~/Downloads/lwip-2.1.2$ ls
build      CMakeCache.txt  cmake_install.cmake  COPYING            CPackSourceConfig.cmake  FEATURES  Makefile  src   UPGRADING
CHANGELOG  CMakeFiles      CMakeLists.txt       CPackConfig.cmake  doc                      FILES     README    test


Great help if you can suggest.

On Thu, Mar 12, 2020 at 12:05 PM Sachin Gole <[hidden email]> wrote:
Package : lwip_2.1.2.orig source folder
Building test on Linux with following commands

cmake CMakeLists.txt -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"

How to compile further to get unit test ?

I’m protected online with Avast Free Antivirus. Get it here — it’s free forever.


--
Best regards,
Sachin
9970501145


--
Best regards,
Sachin
9970501145


--
Best regards,
Sachin
9970501145

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

contrib-2_1_0.logs (3K) Download Attachment
lwip_2_1_2.logs (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

goldsimon@gmx.de
Am 17.03.2020 um 13:19 schrieb Sachin Gole:
> Provided commands doesn't work, Looks like needs to be updated in wiki
> pages or README.

Wiki is not from us. Where did you pull your steps from? Why don't you
answer to my latest mail where I tried to help you? I'm getting a bit
tired of this by now...

Regards,
Simon

> Tested logs are attached.
>
> On Sun, Mar 15, 2020 at 9:56 PM Sachin Gole <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>     Using lwip-2.1.2 version, below steps doesn't get compiled with
>     these steps.
>
>     rajgad:~/Downloads/lwip-2.1.2$ ls
>     CHANGELOG  CMakeLists.txt  COPYING  doc  FEATURES  FILES  README
>      src  test  UPGRADING
>     rajgad:~/Downloads/lwip-2.1.2$ mkdir build
>     rajgad:~/Downloads/lwip-2.1.2$ cd build/
>     rajgad:~/Downloads/lwip-2.1.2/build$ cmake ../CMakeLists.txt
>     -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++"
>     -- The C compiler identification is GNU 5.4.0
>     -- The CXX compiler identification is GNU 5.4.0
>     -- Check for working C compiler: /usr/bin/gcc
>     -- Check for working C compiler: /usr/bin/gcc - works
>     -- Detecting C compiler ABI info
>     -- Detecting C compiler ABI info - done
>     -- Detecting C compile features
>     -- Detecting C compile features - done
>     -- Check for working CXX compiler: /usr/bin/g++
>     -- Check for working CXX compiler: /usr/bin/g++ - works
>     -- Detecting CXX compiler ABI info
>     -- Detecting CXX compiler ABI info - done
>     -- Detecting CXX compile features
>     -- Detecting CXX compile features - done
>     -- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") found
>     components: doxygen missing components: dot
>     Doxygen build started
>     -- Configuring done
>     -- Generating done
>     -- Build files have been written to: /home/sachin/Downloads/lwip-2.1.2
>     rajgad:~/Downloads/lwip-2.1.2/build$
>     rajgad:~/Downloads/lwip-2.1.2/build$ ls
>     rajgad:~/Downloads/lwip-2.1.2/build$ cd ..
>     rajgad:~/Downloads/lwip-2.1.2$ ls
>     build      CMakeCache.txt    CMakeDoxygenDefaults.cmake
>      cmake_install.cmake  COPYING            CPackSourceConfig.cmake
>      FEATURES  Makefile  src   UPGRADING
>     CHANGELOG  CMakeDoxyfile.in  CMakeFiles                
>      CMakeLists.txt       CPackConfig.cmake  doc                    
>      FILES     README    test
>     rajgad:~/Downloads/lwip-2.1.2$ cmake --build .
>     rajgad:~/Downloads/lwip-2.1.2$ 
>
>     New to lwip unix version, not getting unit test executable.
>
>
>     On Sat, Mar 14, 2020 at 11:17 PM Sachin Gole <[hidden email]
>     <mailto:[hidden email]>> wrote:
>
>         In 2.1.2 version, There is no dev folder to run lwip_unittest
>
>
>         ~/Downloads/lwip-2.1.2$ ls
>         build      CMakeCache.txt  cmake_install.cmake  COPYING        
>            CPackSourceConfig.cmake  FEATURES  Makefile  src   UPGRADING
>         CHANGELOG  CMakeFiles      CMakeLists.txt      
>         CPackConfig.cmake  doc                      FILES     README    test
>
>
>         Great help if you can suggest.
>
>         On Thu, Mar 12, 2020 at 12:05 PM Sachin Gole <[hidden email]
>         <mailto:[hidden email]>> wrote:
>
>             Package : lwip_2.1.2.orig source folder
>             Building test on Linux with following commands
>
>             cmake CMakeLists.txt -DCMAKE_C_COMPILER="/usr/bin/gcc"
>             -DCMAKE_CXX_COMPILER="/usr/bin/g++"
>
>             How to compile further to get unit test ?
>
>             <https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=7e912056-8b4a-47a3-8a10-bb11901d552d>
>             I’m protected online with Avast Free Antivirus. Get it here
>             — it’s free forever.
>             <https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=7e912056-8b4a-47a3-8a10-bb11901d552d>
>
>
>             <#m_6405870859724551637_m_-3031064198876534678_m_-7456139197348001846_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
>
>
>         --
>         Best regards,
>         Sachin
>         9970501145
>
>
>
>     --
>     Best regards,
>     Sachin
>     9970501145
>
>
>
> --
> Best regards,
> Sachin
> 9970501145
>
> _______________________________________________
> lwip-users mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

Sachin Gole
In reply to this post by Sachin Gole

I have tried steps which you have provided, please see attached logs.




_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

contrib-2_1_0.logs (3K) Download Attachment
lwip_2_1_2.logs (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

David Lockyer

Hi Sachin,

I guess if you are new to software development this may seem confusing, but the output does spell out what is wrong, looking at your output logs:

CMake Error at CMakeLists.txt:30 (include):
  include could not find load file:

    /home/sachin/Downloads/contrib-2.1.0/ports/unix/check/../../../../lwip/src/Filelists.cmake

You can see the problem, it can't find directory lwip in Downloads, so either rename your lwip-2.1.2 directory to lwip, or modify

/home/sachin/Downloads/contrib-2.1.0/ports/unix/check/CMakeLists.txt

i.e. change line:

set(LWIP_DIR         ${CMAKE_CURRENT_SOURCE_DIR}/../../../../lwip)

to

set(LWIP_DIR         ${CMAKE_CURRENT_SOURCE_DIR}/../../../../lwip-2.1.2)

Best regards,
David

On 17/03/2020 17:26, Sachin Gole wrote:

I have tried steps which you have provided, please see attached logs.




______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

goldsimon@gmx.de
Am 18.03.2020 um 09:26 schrieb David Lockyer:

> Hi Sachin,
>
> I guess if you are new to software development this may seem confusing,
> but the output does spell out what is wrong, looking at your output logs:
>
> CMake Error at CMakeLists.txt:30 (include):
>   include could not find load file:
>
>    
> /home/sachin/Downloads/contrib-2.1.0/ports/unix/check/../../../..//*lwip*//src/Filelists.cmake

Oh, I just now see that you're using 2.1.x, where contrib is still
separate. Got to make the 2.2.0 release soon...

Cheers,
Simon

>
> You can see the problem, it can't find directory lwip in Downloads, so
> either rename your lwip-2.1.2 directory to lwip, or modify
>
> /home/sachin/Downloads/contrib-2.1.0/ports/unix/check/CMakeLists.txt
>
> i.e. change line:
>
> set(LWIP_DIR         ${CMAKE_CURRENT_SOURCE_DIR}/../../../../lwip)
>
> to
>
> set(LWIP_DIR         ${CMAKE_CURRENT_SOURCE_DIR}/../../../../lwip-2.1.2)
>
> Best regards,
> David
>
> On 17/03/2020 17:26, Sachin Gole wrote:
>>
>> I have tried steps which you have provided, please see attached logs.
>>
>>
>>
>>
>> ______________________________________________________________________
>> This email has been scanned by the Symantec Email Security.cloud service.
>> For more information please visit http://www.symanteccloud.com
>> ______________________________________________________________________
>>
>> _______________________________________________
>> lwip-users mailing list
>> [hidden email]
>> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>
> _______________________________________________
> lwip-users mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

Sachin Gole
In reply to this post by Sachin Gole
Hi David,

Thanks for your appropriate help, now I am able to build and run lwip unit test.

sachin@sachin-VirtualBox:~/Downloads/contrib-2.1.0/ports/unix/check/build$ ./lwip_unittests
Running suite(s): IPv4
 IPv6
 UDP
 TCP
 TCP_OOS
 DEF
 MEM
 NETIF
 PBUF
 TIMERS
 ETHARP
 DHCP
 MDNS
 MQTT
 SOCKETS
100%: Checks: 108, Failures: 0, Errors: 0


Is there any way to enable test logs ?
Is there any way to test individual unit test ?



_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

goldsimon@gmx.de
Am 18.03.2020 um 11:43 schrieb Sachin Gole:

> Hi David,
>
> Thanks for your appropriate help, now I am able to build and run lwip
> unit test.
>
>
> sachin@sachin-VirtualBox:~/Downloads/contrib-2.1.0/ports/unix/check/build$
> ./lwip_unittests
> Running suite(s): IPv4
>  IPv6
>  UDP
>  TCP
>  TCP_OOS
>  DEF
>  MEM
>  NETIF
>  PBUF
>  TIMERS
>  ETHARP
>  DHCP
>  MDNS
>  MQTT
>  SOCKETS
> 100%: Checks: 108, Failures: 0, Errors: 0
>
>
> Is there any way to enable test logs ?

You posted the log :-)

> Is there any way to test individual unit test ?

No.

Nowadays, the 'check' framework does seem a bit outdated... If I would
start that again, I would probably use google test...

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

Sachin Gole
In reply to this post by Sachin Gole

Thanks for comments. Google test framework has better control on test execution. 

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build LWIP test on linux

goldsimon@gmx.de
Am 19.03.2020 um 03:47 schrieb Sachin Gole:
>
> Thanks for comments. Google test framework has better control on test
> execution.

Well, I know. I'm using it elsewhere, too. I'm just too lazy and a bit
hesistant to switch test frameworks right now.

Regards,
Simon

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users