Activity for C Unit Testing Framework

  • Petru Gabriel Petru Gabriel posted a comment on discussion Open Discussion

    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!

  • Mian Hamza Ahmad Mian Hamza Ahmad posted a comment on discussion 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.

  • Neustradamus Neustradamus posted a comment on ticket #25

    @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.

  • Anonymous created ticket #39

    Tool Qualification

  • Anonymous created ticket #38

    Building CUint on MacOS

  • Ian Norton Ian Norton posted a comment on ticket #25

    CUnit is now maintained over at https://gitlab.com/cunity/cunit

  • Ian Norton Ian Norton posted a comment on ticket #37

    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

  • Robert Hartmann Robert Hartmann posted a comment on ticket #37

    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...

  • Anonymous created ticket #37

    How to install C Unit test framework in Windows?

  • Tomasz Kłoczko Tomasz Kłoczko created ticket #25

    Move VCS to git

  • Anonymous created ticket #28

    Free Null pointer on CU_destroy_existing_registry()

  • Vincent LAFAGE Vincent LAFAGE posted a comment on discussion Help

    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...

  • Anonymous created ticket #36

    can't build cunit with arm-none-eabi-gcc compiler in NXP S32DS IDE

  • Anonymous created ticket #77

    [Build Error]: CUNIT build error for arm-none-eabi-gcc toolchain

  • Madhusudhan G L Madhusudhan G L posted a comment on discussion Open Discussion

    Any plan to support Cunit for IBM OS400 ?

  • Tushar Tushar modified a comment on discussion Open Discussion

    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.

  • Tushar Tushar posted a comment on discussion Open Discussion

    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.

  • Ian Norton Ian Norton posted a comment on ticket #75

    Hi, I've never seen this warning before. CUnit now lives at https://gitlab.com/cunity/cunit

  • Ian Norton Ian Norton posted a comment on ticket #35

    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

  • Ian Norton Ian Norton posted a comment on ticket #76

    Hi there, CUnit is now maintained over on gitlab at https://gitlab.com/cunity/cunit and there has been significant work in this area

  • Ian Norton Ian Norton posted a comment on discussion Help

    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

  • Shri Shri modified a comment on discussion Help

    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...

  • Shri Shri posted a comment on discussion Help

    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...

  • M6KVM M6KVM posted a comment on ticket #76

    Our reference: AST-3754

  • M6KVM M6KVM created ticket #76

    Automated.h contains invalid prototype in gcc strict prototype mode

  • brewmanz brewmanz posted a comment on ticket #35

    Yup, that's me

  • Anonymous created ticket #35

    Unable to view automated test results

  • wangyushui wangyushui created ticket #75

    CU_assertImplementation's return value is NOT used

  • Ian Norton Ian Norton posted a comment on ticket #70

    This is a duplicate of #74

  • Ian Norton Ian Norton posted a comment on ticket #24

    Hi, CUnit now supports vs2015-2019 https://gitlab.com/cunity/cunit

  • Ian Norton Ian Norton posted a comment on ticket #10

    I have logged this over in gitlab https://gitlab.com/cunity/cunit/issues/26

  • Ian Norton Ian Norton posted a comment on ticket #74

    Many thanks, I have logged this over in Gitlab as https://gitlab.com/cunity/cunit/issues/25

  • Ian Norton Ian Norton posted a comment on ticket #10

    Yes CUnit is now hosted on gitlab.com at https://gitlab.com/cunity/cunit

  • Anonymous created ticket #74

    wrong fActive flag used in Automated.c L708

  • Ian Norton Ian Norton posted a comment on discussion Help

    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

  • Abhishek sr Abhishek sr posted a comment on discussion Help

    Is CUnit framework now thread -safe ?

  • Ian Norton Ian Norton posted a comment on ticket #69

    Migrated to https://gitlab.com/cunity/cunit/issues/4

  • Ian Norton Ian Norton posted a comment on ticket #71

    migrated this bug to https://gitlab.com/cunity/cunit/issues/3

  • Ian Norton Ian Norton created ticket #73

    CUnit Forked for Future Maintenance

  • Ian Norton Ian Norton posted a comment on discussion Open Discussion

    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.

  • Ian Norton Ian Norton posted a comment on discussion Help

    Yes, CUnit run in Automated mode won't print that

  • Ian Norton Ian Norton modified a comment on discussion Help

    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

  • Ian Norton Ian Norton modified a comment on discussion Help

    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.

  • Ian Norton Ian Norton posted a comment on discussion Help

    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...

  • Ian Norton Ian Norton posted a comment on discussion Open Discussion

    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.

  • Ian Norton Ian Norton posted a comment on discussion Help

    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...

  • Herra Herra posted a comment on discussion Help

    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 :)

  • Peut Kotze Peut Kotze created ticket #72

    CUnit 2.1.3 User Guide wrong description in Shortcut Methods

  • Michael J. Dailey Michael J. Dailey posted a comment on discussion Open Discussion

    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

  • Anil Kumar Anil Kumar posted a comment on discussion Open Discussion

    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...

  • Sudhanshu Garg Sudhanshu Garg posted a comment on discussion Open Discussion

    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/...

  • Sudhanshu Garg Sudhanshu Garg posted a comment on discussion Help

    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/...

  • AntonisK AntonisK posted a comment on discussion Open Discussion

    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")...

  • Anonymous created ticket #71

    CUnit fail to compile on Visual Studio 2015

  • Simon A. F. Lund Simon A. F. Lund posted a comment on discussion Help

    Hi, Is it possible to "silence" libcunit? That is, avoid the print of: CUnit - A...

  • John Smits John Smits posted a comment on ticket #23

    Hi, I've just added a patch that does just that: https://sourceforge.net/p/cunit/patches/27/...

  • John Smits John Smits created ticket #27

    Add support for Automatic output to stdout

  • Anonymous created ticket #70

    Inactive test shows as active on test listing

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...

  • Martin Pischky Martin Pischky posted a comment on ticket #32

    Hallo, got it running this way: $ tar xjf CUnit-2.1-3.tar.bz2 $ cd CUnit-2.1-3 $...

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Have also problems with this. Tried with configure and make as decribed in README:...

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Have also problems with this. Tried with configure and make as decribed in README:...

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Have also problems with this. Tried with configure and make as decribed in README:...

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Have also problems with this. Tried with configure and make as decribed in README:...

  • Martin Pischky Martin Pischky modified a comment on ticket #32

    Have also problems with this. Tried with configure and make as decribed in README:...

  • Martin Pischky Martin Pischky posted a comment on ticket #32

    Have also problems with this. Tried with configure and make as decribed in README:...

  • Anil Kumar Anil Kumar posted a comment on discussion Help

    The framework itself is not thread-safe (i.e. you cannot run CUnit instances / calls...

  • Jerry S. Jerry S. posted a comment on discussion Help

    Can't speak to the current version. As of version 2, it was not designed for multiple...

  • fan xin fan xin posted a comment on discussion Help

    This is a great framework for my work. I'd like to make sure is it thread-safe?

  • Alexander Drozdov Alexander Drozdov created ticket #26

    Use do { } while (0) in macroses

  • Anonymous created ticket #69

    Function pointers cannot be asserted by PTR macros in pedantic, ANSI C

  • Anonymous created ticket #68

    File truncated

  • Anonymous created ticket #24

    Support for Visual Studio 2015

  • Adrian Tineo Adrian Tineo posted a comment on ticket #67

    The if block above should update the result var.

  • Adrian Tineo Adrian Tineo created ticket #67

    A failed test reports as success

  • Adrian Tineo Adrian Tineo created ticket #66

    Number of failed/succeded tests is incorrectly counted

  • Anonymous posted a comment on ticket #64

    had the same problem. Solution was: autoconf -vif make sure that you have autoconf...

  • Anonymous posted a comment on ticket #64

    Sorry autoreconf -vif quick fix to my comment above

  • Anonymous posted a comment on ticket #64

    thanks

  • Robert Hartmann Robert Hartmann posted a comment on ticket #34

    Hi, there is a file called "bootstrap" in root directory of the tar.bz2. Try to run...

  • Anonymous created ticket #34

    Can not build CUnit 2.1-3 on Ubuntu 14.04

  • Robert Hartmann Robert Hartmann created ticket #23

    FeatureRequest: Need some way to get XML Output to stdout and not to a file

  • Robert Hartmann Robert Hartmann created ticket #65

    CUNIT 2.1-3 : Build sytem (static and dynamic library as release and debug version for mingw32 via msys)

  • Daouzli Daouzli posted a comment on ticket #64

    It seem's that the build files are a bit old. I had the same problem and fixed it...

  • Fritz Fritz modified a comment on discussion Open Discussion

    I found a nice solution. It is documented in http://www.doetzkies.eu/Publikation/cunit-teststep.html...

  • Fritz Fritz posted a comment on discussion Open Discussion

    I found a nice solution. It is documented in http://www.doetzkies.eu/Publikation...

  • Fritz Fritz posted a comment on discussion Open Discussion

    Hello, what is the preferred way to protocol parameters of a test? Assume void test...

  • haertel, ruediger haertel, ruediger posted a comment on discussion Open Discussion

    Hi all, I made an xml stylesheet which makes use of bootstrap. It has a fresh, nice...

  • Anonymous created ticket #64

    2.1-3 Release broken

  • Anil Kumar Anil Kumar modified ticket #15

    C++ issue: cannot use literal str as test name

  • Anil Kumar Anil Kumar modified ticket #25

    Using fprintf instead of printf

  • Anil Kumar Anil Kumar modified ticket #18

    Remove unnecessary files

  • Anil Kumar Anil Kumar modified ticket #18

    Remove unnecessary files

  • Anil Kumar Anil Kumar posted a comment on ticket #18

    Thank you Daniel. The changes have been made. Committed revision 169. Committed revision...

  • Anil Kumar Anil Kumar committed [r170]

    Remove generated cache file

  • Anil Kumar Anil Kumar committed [r169]

    Removed generated files

1 >