Hi everyone, I’m currently working on a project that involves testing safety-related C code, and I’m considering using the CUnit tool. Has anyone here tried to qualify CUnit for ISO 26262 compliance? If so, could you share your experiences or any tips on the qualification process? Thanks in advance for your help!
I encountered an issue while running make after installing libtools, where I received the following error: mv: cannot stat `.deps/CUError.Tpo': No such file or directory After researching the problem, I [[discovered] that running autoreconf before make resolved the issue.
@anilsaharan, @jdpipe, @tlh2000, @maragkose: It is possible to give all rights to @inorton for the future of cunit? It will be better to have a continus project than a fork... Thanks in advance.
Tool Qualification
Building CUint on MacOS
CUnit is now maintained over at https://gitlab.com/cunity/cunit
Hi, A couple of years ago (with permission of some of the original CUnit authors) I adopted cunit and now maintain it over at https://gitlab.com/cunity/cunit You can now build it quite easily on windows via cmake
Do you use an IDE or call compiler and linker from commandline? But to answer your question: It is long time ago that I had build and installed CUnit. Download the file "CUnit-2.1-3.tar.bz2" Extract that archive file i.e. using 7zip or any other bz2-extraction program. Read the files README an INSTALL from the extracted place. If you get in trouble please describe your problems, i.e. give us information about error messages etc. Just to mention I am only a normal user of CUnit. Oh, yes ... if you...
How to install C Unit test framework in Windows?
Move VCS to git
Free Null pointer on CU_destroy_existing_registry()
Dear Authors, thank you very much for bringing us the means to benefit from unit testing. As I was honing my TDD skills with your excellent package, I realized that I missed the actual coloring of the test passing green or failing red. So I skimmed in the code and saw that Basic.c seemed to contain all I needed. I wrote a test_complete_message_handler along the lines of: static void basic_test_complete_message_handler(const CU_pTest pTest,… named it my_test_complete_message_handler inserted the escape...
can't build cunit with arm-none-eabi-gcc compiler in NXP S32DS IDE
[Build Error]: CUNIT build error for arm-none-eabi-gcc toolchain
Any plan to support Cunit for IBM OS400 ?
Hi, I need to generate the static library for cunit and i followed below steps on "CUnit-2.1-3.tar.bz2", but resulted in an error as there is no such file "configure". Steps: tar xjf CUnit-2.1-3.tar.bz2 cd CUnit-2.1.3 mkdir -p $HOME/local ./configure --prefix=$HOME/local make clean make make install When i executed above steps on "CUnit-2.1-2-src.tar.bz2", i could generate the libcunit.a. Am I missing any step? where can I get the src tar for version 2.1-3.
Hi, I need to generate the static library for cunit and i followed below steps on "CUnit-2.1-3.tar.bz2", but resulted in an error as there is no such file "configure". Steps: tar xjf CUnit-2.1-3.tar.bz2 cd CUnit-2.1.3 mkdir -p $HOME/local ./configure --prefix=$HOME/local make clean make make install When i executed below steps on "CUnit-2.1-2-src.tar.bz2", i could generate the libcunit.a. Am I missing any step? where can I get the src tar for version 2.1-3.
Hi, I've never seen this warning before. CUnit now lives at https://gitlab.com/cunity/cunit
Hi there. The original CUnit output could be formatted into a rendered web page using XSLT. CUnit has moved on quite a bit since then and now produces JUnit XML reports that can be understood by a number of tools directly or converted into HTML reports using junit2html. CUnit now lives at https://gitlab.com/cunity/cunit
Hi there, CUnit is now maintained over on gitlab at https://gitlab.com/cunity/cunit and there has been significant work in this area
Hi Shri, CUnit.h is generated from CUnit.h.in at configure time. It only alters a version number. You can copy the file and manually alter the version values if you wish. Please check over on gitlab at https://gitlab.com/cunity/cunit for the latest CUnit
I am currently working on developing CUnit tests for C code written for ARM platform. I set the compilation environment for the ARM SDK to compile the code to run on the target. When I try to compile CUnit code for the ARM environment, compilation always fails saying that CUnit.h is not available. Is it possible to compile CUnit code for an ARM target? If yes, please guide me how. I have used many library functions and linux system functions in my code and trying to test the success and failure cases...
I am currently working on developing CUnit tests for C code written for ARM platform. I set the compilation environment for the ARM SDK to compile the code to run on the target. When I try to compile CUnit code for the ARM environment, compilation always fails saying that CUnit.h is not available. Is it possible to compile CUnit code for an ARM target? Is yes, please guide me how. I have used many library functions and linux system functions in my code and trying to test the success and failure cases...
Our reference: AST-3754
Automated.h contains invalid prototype in gcc strict prototype mode
Yup, that's me
Unable to view automated test results
CU_assertImplementation's return value is NOT used
This is a duplicate of #74
Hi, CUnit now supports vs2015-2019 https://gitlab.com/cunity/cunit
I have logged this over in gitlab https://gitlab.com/cunity/cunit/issues/26
Many thanks, I have logged this over in Gitlab as https://gitlab.com/cunity/cunit/issues/25
Yes CUnit is now hosted on gitlab.com at https://gitlab.com/cunity/cunit
wrong fActive flag used in Automated.c L708
Hi there, CUnit is not thread or multi-process safe. if you call any of the CU_ASSERT functions or CUnit settings functions (or try to run suites in threads) in threads then CUnit will not work correctly. You can of course take care not to call any of cunits functions or asserts if you still want to create threads without test-code inside. Ian PS I maintain the cunity fork of cunit over at - https://gitlab.com/cunity/cunit
Is CUnit framework now thread -safe ?
Migrated to https://gitlab.com/cunity/cunit/issues/4
migrated this bug to https://gitlab.com/cunity/cunit/issues/3
CUnit Forked for Future Maintenance
I'd quite like that too. Please add it as a request over on https://gitlab.com/cunity/cunit where I'm attempting to maintain the code now.
Yes, CUnit run in Automated mode won't print that
Hi Herra, In general cunit alone won't help you trap division-by-zero. For that you are going to have to catch SIGILL and handle it. Otherwise your test application will be terminated. That said, building limited exception handling into CUnit might be a useful feature, CUnit could perhaps trap SIGILL, SIGPIPE and some others quite reliably (though SIGSEV would be risky). Ian
If you are still intrested in CUnit, please head on over to https://gitlab.com/cunity/cunit where I'm attempting to maintain the code now.
Hi Herra, In general cunit alone won't help you trap division-by-zero. For that you are going to have to catch SIGILL and handle it. Otherwise your test application will be terminated. That said, building limited exception handling into CUnit might be a useful feature, CUnit could perhaps trap SIGILL, SIGPIPE and some others quite reliably (though SIGSEV would be risky). If you are still intrested in CUnit, please head on over to https://gitlab.com/cunity/cunit where I'm attempting to maintain the...
Hi AntonishK, If you head on over to https://gitlab.com/cunity/cunit I've decided to maintain CUnit myself there and have chosen CMake over Jam.
Hi Herra, In general cunit alone won't help you trap division-by-zero. For that you are going to have to catch SIGILL and handle it. Otherwise your test application will be terminated. That said, building limited exception handling into CUnit might be a useful feature, CUnit could perhaps trap SIGILL, SIGPIPE and some others quite reliably (though SIGSEV would be risky). If you are still intrested in CUnit, please head on over to https://gitlab.com/cunity/cunit where I'm attempting to maintain the...
Hello, I would like to know about the performances of this tools. I've been using it for a bit, but just for small applications, now I'd like to know if there is a way to test complexe operations, like : division by 0, calling the right function... I'm also interested to the use limits of the tool. Feel free to share with me your experiences using CUnit. Thanks in advance :)
CUnit 2.1.3 User Guide wrong description in Shortcut Methods
Greetings. Anyone know of any C Unit code generators out in the wild that can parse existing C source and generate C Unit boilerplate? Cheers, m
Hi Sudhanshu, I am not very familiar with PPC cross compiling, but looking at the logs, looks like you may be missing libraries / dependent linking in the cross compilation environment:configure:2527: /sw/packages/gcc/c3.4.5-p5/i686-pc-linux/powerpc-eabi/bin/gcc -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -ansi -I/ws/sudhgarg-bgl/build/cunit/CUnit-2.1-3/CUnit/Headers -std=c99 -nostdlib -lgcc -L/sw/packages/gcc/c3.4.5-p5/i686-pc-linux/powerpc-eabi/lib/ -L/ws/sudhgarg-bgl/build/cunit/CUnit-2.1-3/CUnit/Sources...
I am working on a board with PPC Arch running Vxworks 5.4. I wish to use CUnit(2.1-3) for UT and I am configuring CUnit library with powerpc-eabi using following command: ./configure CC=/sw/packages/gcc/c3.4.5-p5/i686-pc-linux/powerpc-eabi/bin/gcc CXX=/sw/packages/gcc/c3.4.5-p5/i686-pc-linux/powerpc-eabi/bin/g++ --build=i686-pc-linux --host=powerpc-eabi LDFLAGS='-nostdlib -lgcc -L/sw/packages/gcc/c3.4.5-p5/i686-pc-linux/powerpc-eabi/lib/' --with-gnu-ld --prefix=/ws/sudhgarg-bgl/build/cunit/CUnit-2.1-3/local/...
I am working on a board with PPC Arch running Vxworks 5.4. I wish to use CUnit(2.1-3) for UT and I am configuring CUnit library with powerpc-eabi using following command: ./configure CC=/sw/packages/gcc/c3.4.5-p5/i686-pc-linux/powerpc-eabi/bin/gcc CXX=/sw/packages/gcc/c3.4.5-p5/i686-pc-linux/powerpc-eabi/bin/g++ --build=i686-pc-linux --host=powerpc-eabi LDFLAGS='-nostdlib -lgcc -L/sw/packages/gcc/c3.4.5-p5/i686-pc-linux/powerpc-eabi/lib/' --with-gnu-ld --prefix=/ws/sudhgarg-bgl/build/cunit/CUnit-2.1-3/local/...
Hi there, i am a long time user of CUnit and i had to build it in windows + mingw for the first time, so i thought it would be a good idea to have a cross platform build system. I see it supports jam but took the time to also contribute the CMake file. CMakeLists.txt: cmake_minimum_required(VERSION 2.8.6) PROJECT(CUnit) include(GenerateExportHeader) include_directories(Headers) file(GLOB cunit_SRCS "Sources/Automated/Automated.c" "Sources/Basic/Basic.c" "Sources/Console/Console.c" "Sources/Framework/*.c")...
CUnit fail to compile on Visual Studio 2015
Hi, Is it possible to "silence" libcunit? That is, avoid the print of: CUnit - A...
Hi, I've just added a patch that does just that: https://sourceforge.net/p/cunit/patches/27/...
Add support for Automatic output to stdout
Inactive test shows as active on test listing
Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...
Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...
Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...
Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...
Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...
Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...
Have also problems with this. Tried with configure and make as decribed in README:...
Have also problems with this. Tried with configure and make as decribed in README:...
Have also problems with this. Tried with configure and make as decribed in README:...
Have also problems with this. Tried with configure and make as decribed in README:...
Have also problems with this. Tried with configure and make as decribed in README:...
Have also problems with this. Tried with configure and make as decribed in README:...
The framework itself is not thread-safe (i.e. you cannot run CUnit instances / calls...
Can't speak to the current version. As of version 2, it was not designed for multiple...
This is a great framework for my work. I'd like to make sure is it thread-safe?
Use do { } while (0) in macroses
Function pointers cannot be asserted by PTR macros in pedantic, ANSI C
File truncated
Support for Visual Studio 2015
The if block above should update the result var.
A failed test reports as success
Number of failed/succeded tests is incorrectly counted
had the same problem. Solution was: autoconf -vif make sure that you have autoconf...
Sorry autoreconf -vif quick fix to my comment above
thanks
Hi, there is a file called "bootstrap" in root directory of the tar.bz2. Try to run...
Can not build CUnit 2.1-3 on Ubuntu 14.04
FeatureRequest: Need some way to get XML Output to stdout and not to a file
CUNIT 2.1-3 : Build sytem (static and dynamic library as release and debug version for mingw32 via msys)
It seem's that the build files are a bit old. I had the same problem and fixed it...
I found a nice solution. It is documented in http://www.doetzkies.eu/Publikation/cunit-teststep.html...
I found a nice solution. It is documented in http://www.doetzkies.eu/Publikation...
Hello, what is the preferred way to protocol parameters of a test? Assume void test...
Hi all, I made an xml stylesheet which makes use of bootstrap. It has a fresh, nice...
2.1-3 Release broken
C++ issue: cannot use literal str as test name
Using fprintf instead of printf
Remove unnecessary files
Remove unnecessary files
Thank you Daniel. The changes have been made. Committed revision 169. Committed revision...
Remove generated cache file
Removed generated files