Permalink
Browse files

API refinements, signal handling, refactoring, clean up

  • Loading branch information...
1 parent f4a3ba5 commit b38d182c7770e96be7d59d2a3895829dcea5f539 @jecklgamis committed Feb 17, 2013
Showing with 6,292 additions and 12,405 deletions.
  1. +2 −0 CONTRIBUTORS
  2. +0 −109 README
  3. +24 −1 README.md
  4. +0 −1 autogen.sh
  5. +0 −205 build/win32_lib_msvc6/rcunit_lib.dep
  6. +0 −142 build/win32_lib_msvc6/rcunit_lib.dsp
  7. +0 −29 build/win32_lib_msvc6/rcunit_lib.dsw
  8. BIN build/win32_lib_msvc6/rcunit_lib.ncb
  9. BIN build/win32_lib_msvc6/rcunit_lib.opt
  10. +0 −87 build/win32_lib_msvc6/rcunit_lib.plg
  11. +0 −19 build/win32_samples_msvc6/rcunit_sample_app_1.dep
  12. +0 −106 build/win32_samples_msvc6/rcunit_sample_app_1.dsp
  13. +0 −89 build/win32_samples_msvc6/rcunit_sample_app_1.plg
  14. +0 −19 build/win32_samples_msvc6/rcunit_sample_app_2.dep
  15. +0 −106 build/win32_samples_msvc6/rcunit_sample_app_2.dsp
  16. +0 −19 build/win32_samples_msvc6/rcunit_sample_app_3.dep
  17. +0 −106 build/win32_samples_msvc6/rcunit_sample_app_3.dsp
  18. +0 −19 build/win32_samples_msvc6/rcunit_sample_app_4.dep
  19. +0 −106 build/win32_samples_msvc6/rcunit_sample_app_4.dsp
  20. +0 −18 build/win32_samples_msvc6/rcunit_sample_app_5.dep
  21. +0 −98 build/win32_samples_msvc6/rcunit_sample_app_5.dsp
  22. +0 −18 build/win32_samples_msvc6/rcunit_sample_app_6.dep
  23. +0 −98 build/win32_samples_msvc6/rcunit_sample_app_6.dsp
  24. +0 −19 build/win32_samples_msvc6/rcunit_sample_app_7.dep
  25. +0 −98 build/win32_samples_msvc6/rcunit_sample_app_7.dsp
  26. +0 −18 build/win32_samples_msvc6/rcunit_samples.dep
  27. +0 −98 build/win32_samples_msvc6/rcunit_samples.dsp
  28. +0 −170 build/win32_samples_msvc6/rcunit_samples.dsw
  29. BIN build/win32_samples_msvc6/rcunit_samples.ncb
  30. BIN build/win32_samples_msvc6/rcunit_samples.opt
  31. +0 −1,047 build/win32_samples_msvc6/rcunit_samples.plg
  32. +0 −3 build/win32_test_msvc6/debug/out/clean.bat
  33. +0 −3 build/win32_test_msvc6/debug/out/rcunit_test_no_stdout.bat
  34. +0 −46 build/win32_test_msvc6/rcunit_test.dep
  35. +0 −98 build/win32_test_msvc6/rcunit_test.dsp
  36. +0 −44 build/win32_test_msvc6/rcunit_test.dsw
  37. BIN build/win32_test_msvc6/rcunit_test.ncb
  38. BIN build/win32_test_msvc6/rcunit_test.opt
  39. +0 −293 build/win32_test_msvc6/rcunit_test.plg
  40. +0 −3 build/win32_test_msvc6/release/out/clean.bat
  41. +0 −3 build/win32_test_msvc6/release/out/rcunit_test_no_stdout.bat
  42. +7 −4 configure.ac
  43. +0 −397 doc/fdl.txt
  44. +420 −0 doc/rcunit-docs.txt
  45. +0 −921 doc/rcunit.doxy
  46. +0 −1,302 doc/rcunit.texi
  47. +0 −41 doc/rcunit_sample_app_1.c
  48. +0 −70 doc/rcunit_sample_app_2.c
  49. +0 −35 doc/rcunit_sample_app_3.c
  50. +0 −35 doc/rcunit_sample_app_4.c
  51. +0 −61 doc/rcunit_sample_app_5.c
  52. +0 −72 doc/rcunit_sample_app_6.c
  53. +0 −43 doc/rcunit_sample_app_functions.c
  54. +0 −76 doc/rcunit_sample_app_test_functions.c
  55. +14 −20 samples/Makefile.am
  56. +0 −41 samples/rcunit_sample_app_1.c
  57. +0 −70 samples/rcunit_sample_app_2.c
  58. +0 −35 samples/rcunit_sample_app_3.c
  59. +0 −35 samples/rcunit_sample_app_4.c
  60. +0 −61 samples/rcunit_sample_app_5.c
  61. +0 −43 samples/rcunit_sample_app_7.c
  62. +62 −0 samples/rcunit_sample_app_demo.c
  63. 0 samples/{rcunit_sample_app_6.c → rcunit_sample_app_exception.c}
  64. +0 −22 samples/rcunit_sample_app_externs.h
  65. +29 −0 samples/rcunit_sample_app_function_table.c
  66. +0 −43 samples/rcunit_sample_app_functions.c
  67. +17 −0 samples/rcunit_sample_app_module.c
  68. +4 −4 doc/rcunit_sample_app_7.c → samples/rcunit_sample_app_non_test_assertions.c
  69. +19 −0 samples/rcunit_sample_app_run_hook.c
  70. +19 −0 samples/rcunit_sample_app_signal.c
  71. +12 −0 samples/rcunit_sample_app_simple.c
  72. +0 −76 samples/rcunit_sample_app_test_functions.c
  73. +21 −20 src/Makefile.am
  74. +131 −1,991 src/rcunit.c
  75. +271 −306 src/rcunit.h
  76. +109 −0 src/rcunit_api.h
  77. +260 −0 src/rcunit_assert.c
  78. +63 −67 src/rcunit_assert.h
  79. +42 −79 src/rcunit_config.h
  80. +128 −0 src/rcunit_config_env.h
  81. +58 −71 src/rcunit_error.c
  82. +54 −59 src/rcunit_error.h
  83. +135 −57 src/rcunit_exception.c
  84. +109 −60 src/rcunit_exception.h
  85. +232 −0 src/rcunit_function.c
  86. +38 −63 src/rcunit_hashtable.c
  87. +34 −23 src/rcunit_hashtable.h
  88. +74 −143 src/rcunit_helpers.h
  89. +56 −48 src/rcunit_list.c
  90. +46 −30 src/rcunit_list.h
  91. +195 −0 src/rcunit_machine.c
  92. +68 −91 src/rcunit_mem.c
  93. +31 −21 src/rcunit_mem.h
  94. +337 −0 src/rcunit_module.c
  95. +245 −306 src/rcunit_mtrace.c
  96. +84 −76 src/rcunit_mtrace.h
  97. +52 −0 src/rcunit_queue.c
  98. +45 −0 src/rcunit_queue.h
  99. +28 −34 src/rcunit_random.c
  100. +26 −16 src/rcunit_random.h
  101. +431 −0 src/rcunit_registry.c
  102. +70 −601 src/rcunit_report.c
  103. +46 −36 src/rcunit_report.h
  104. +32 −0 src/rcunit_report_html.c
  105. +32 −0 src/rcunit_report_json.c
  106. +123 −0 src/rcunit_report_plaintext.c
  107. +32 −0 src/rcunit_report_xml.c
  108. +101 −0 src/rcunit_thread.c
  109. +55 −0 src/rcunit_thread.h
  110. +59 −36 src/rcunit_types.h
  111. +213 −0 src/rcunit_util.c
  112. +7 −13 tests/Makefile.am
  113. +103 −239 tests/rcunit_test.c
  114. +28 −45 tests/rcunit_test.h
  115. +116 −70 tests/rcunit_test_assertions.c
  116. +164 −22 tests/rcunit_test_exceptions.c
  117. +40 −103 tests/rcunit_test_framework.c
  118. +84 −233 tests/rcunit_test_function.c
  119. +95 −374 tests/rcunit_test_module.c
  120. +12 −59 tests/rcunit_test_mtrace.c
  121. +140 −168 tests/rcunit_test_registry.c
  122. +137 −0 tests/testmoko.c
  123. +134 −0 tests/testmoko.h
  124. +122 −0 tests/testmoko_config_env.h
  125. +181 −0 tests/testmoko_exception.c
  126. +134 −0 tests/testmoko_exception.h
View
@@ -0,0 +1,2 @@
+Tomasz Kantecki <tomasz.kantecki@gmail.com>
+Abigail Gamis <abigailgamis@gmail.com>
View
@@ -1,109 +0,0 @@
- RCUNIT
- A Robust C Unit Testing Framework
- http://rcunit.sourceforge.net
-
-I. Introduction
-
-This is the README file of RCUNIT distribution version 0.9. This is
-is the prerelease version of 1.0. There were no major changes from
-version 0.1.
-
-II. About RCUNIT
-
- RCUNIT is a robust C unit testing framework. It is built as a static
-library for linking with the user test code. RCUNIT should work in any
-platform with an ANSI/ISO-compliant C compiler.
-
- See NEWS for new features.
- See ChangeLog file for source code changes.
- See INSTALL file for detailed installation procedures.
-
-III. Documentation
-
- 1. User manual (Info and HTML formats, generated by GNU makefile)
- 2. Source documentation (HTML, generated by Doxygen)
-
-The Info documentation is installed as part of the standard
-installation procedure "make install". The user manual and source
-documentation can be generated manually.
-
-To generate the HTML user manual, go to the "doc" directory and run the
-following command.
-
- $makeinfo --html rcunit.texi
-
-A directory "rcunit" containing the HTML documentation will be created.
-
-To generate the HTML source documentation, go to the "doc" directory
-and run the following command.
-
- $doxygen rcunit.doxy
-
-A directory "srcdoc/html" containing the HTML documentation will be created.
-
-IV. Building RCUNIT
-
-Unix/Linux platform:
---------------------
-
- 1. Configure the package
- $./configure
-
- To configure the package for debug mode:
-
- $./configure --enable-debug=yes
-
- The --prefix={installation directory} can be given to the
- configure script. If not given, the default prefix (/usr/local) is
- used.
-
- 2. Build the package, samples, basic tests, and documentation
- $make
-
- 3. Install the package
- $make install
-
- 4. To uninstall the package
- $make uninstall
-
- See the INSTALL file for more details.
-
-What Gets Installed?
-
- 1. RCUNIT static library (librcunit.a) in {prefix}/lib
- 2. RCUNIT header files in {prefix}/include
- 3. Info documentation in {prefix}/info
-
-Windows Platform :
-------------------
-
-A. Microsoft Visual C++ Version 6
-
- 1. Build the package, samples, basic tests
- To build RCUNIT alone:
- a. Open build\win32_lib_msvc6\rcunit_lib.dsw
- b. Perform a `Rebuild All`
-
- To build RCUNIT and samples :
- a. Open build\win32_samples_msvc6\rcunit_samples.dsw
- b. Perform a `Rebuild All`
-
- To build RCUNIT and basic tests:
- a. Open build\win32_test_msvc6\rcunit_test.dsw
- b. Perform a `Rebuild All`
-
- To build the debug-mode version of RCUNIT, select the Debug
- configuration and perform a `Rebuild All`.
-
- 2. To use RCUNIT, the library file (rcunit.lib) and header files
- (rcunit_*.h) must be setup in the build environment of the user
- test code.
-
-V. Licenses
-
- RCUNIT souce code is licensed under the GNU General Public License.
- See the file COPYING.
-
- RCUNIT documentation is licensed under the GNU Free Documentation
- License.
- See the file fdl.txt in "doc" directory.
View
@@ -1,4 +1,27 @@
rcunit
======
-A C unit testing framework
+ RCUNIT is a small framework for testing C programs. It uses non-local jumps to
+emulate exceptions and handles program terminating signals (e.g. SIGILL)
+during test runs. RCUNIT allows creation of test fixtures, either per test
+or per test group. RCUNIT is free, you can use it in accordance with the terms
+of the MIT License.
+
+Documentation
+ see doc/rcunit-docs.txt
+
+Building and Installing RCUNIT (Unix platform)
+Requirements : (git@github.com:jecklgamis/logmoko.git)
+
+ $ git clone git@github.com:jecklgamis/rcunit.git
+ $ ./autogen.sh
+ $ ./configure
+ $ make all
+ $ sudo make install
+
+What Gets Installed?
+ - RCUNIT static library (librcunit.a) in /usr/local/lib
+ - RCUNIT header files in /usr/local/include
+
+Note you can change the installation path by re-running ./configure with the
+--prefix=<dir> option. By default it uses /usr/local
View
@@ -1,4 +1,3 @@
#!/bin/bash
touch NEWS README AUTHORS ChangeLog
autoreconf --force --install
-./configure
@@ -1,205 +0,0 @@
-# Microsoft Developer Studio Generated Dependency File, included by rcunit_lib.mak
-
-..\..\src\rcunit.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_error.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_exception.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_hashtable.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_list.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_log.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_log_hnd_file.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_log_hnd_stdout.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_mem.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_mtrace.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_random.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
-
-..\..\src\rcunit_report.c : \
- "..\..\src\rcunit.h"\
- "..\..\src\rcunit_assert.h"\
- "..\..\src\rcunit_config.h"\
- "..\..\src\rcunit_error.h"\
- "..\..\src\rcunit_exception.h"\
- "..\..\src\rcunit_hashtable.h"\
- "..\..\src\rcunit_helpers.h"\
- "..\..\src\rcunit_list.h"\
- "..\..\src\rcunit_log.h"\
- "..\..\src\rcunit_mem.h"\
- "..\..\src\rcunit_mtrace.h"\
- "..\..\src\rcunit_random.h"\
- "..\..\src\rcunit_report.h"\
- "..\..\src\rcunit_types.h"\
-
Oops, something went wrong.

0 comments on commit b38d182

Please sign in to comment.