Commit Graph

  • 4e40b1043c Common header needed by generated stubs master v0.2 Martin Winkler 2021-12-30 22:23:14 +01:00
  • f09a9997ba Normalize all the line endings Martin Winkler 2021-12-30 22:22:12 +01:00
  • 97fb7857ef Define line endings in gitattributes Martin Winkler 2021-12-30 22:17:35 +01:00
  • 907e7e7012 Include generated git version string in executable and generated stub files Martin Winkler 2021-12-30 22:16:41 +01:00
  • be58adaa4a Pre-build step to generate version.h including git version string Martin Winkler 2021-12-30 22:13:38 +01:00
  • 5782449388 Use a static array of testdata, to initialize stub pointer Martin Winkler 2021-12-24 00:19:07 +01:00
  • d7f6efd0a6 Helper function returns if a c file hast functions with pointer parameter Martin Winkler 2021-12-24 00:04:07 +01:00
  • 8926a7dc75 Rearange header for separation between stubs, test and test subject Martin Winkler 2021-12-22 08:59:46 +01:00
  • f234d7613e Helper function returns if a c file uses variable parameter lists Martin Winkler 2021-12-22 08:57:53 +01:00
  • 404f69493d Fix function detection with tab character between data type and function name Martin Winkler 2021-12-22 08:54:12 +01:00
  • ebf093d8fd Remove multiple definitions of const Martin Winkler 2021-12-16 16:58:07 +01:00
  • 448478cd9c Remove const from expected variables as needed Martin Winkler 2021-12-15 11:22:20 +01:00
  • 6c446888b4 Functions, their init_ and prototypes with variable parameter "marker" are stubbed correctly. Actual variable parameter are not tested (yet). Martin Winkler 2021-12-15 08:12:34 +01:00
  • a994a9170d Fix file header Martin Winkler 2021-05-02 00:18:58 +02:00
  • 067013d849 Fix typo Martin Winkler 2021-01-03 12:09:36 +01:00
  • cee5f89fa6 Fix typo Martin Winkler 2020-10-13 10:27:27 +02:00
  • a833742fa1 Adding a first basic description. Martin Winkler 2019-10-10 12:25:09 +02:00
  • 7be516fc49 Merge remote-tracking branch 'origin/WIP_multiline' Martin Winkler 2019-04-04 16:03:46 +02:00
  • 1699b336ec Replacing pseudonym Martin Winkler 2019-04-04 15:45:29 +02:00
  • 7928bb4209 Fix binary name in eclipse project settings Martin Winkler 2019-04-04 15:31:36 +02:00
  • 9350133b2c Adding readme for gitea Martin Winkler 2019-04-04 14:11:20 +01:00
  • 7827505862 Convert svn:ignore to .gitignore Martin Winkler 2019-04-04 14:02:07 +01:00
  • fc12aa8bb2 Convert svn:ignore to .gitignore Martin Winkler 2019-04-04 14:00:40 +01:00
  • 47e79f04dc output with value for CU_ASSERT_EQUAL_OUTPUT Martin Winkler 2018-09-07 05:50:58 +00:00
  • c90f479de9 stub init with fail condition initializes expected parameter with default, keeping structure array clean for further tests Martin Winkler 2018-09-05 13:52:36 +00:00
  • c26b8dc13a post build step to copy exe directly to cygwin/bin Martin Winkler 2018-09-05 13:51:38 +00:00
  • f64696daac Initializing expected parameter in declaration and after each instance run to ensure reproducibility. Assert for invalid STUB_PASS values Martin Winkler 2018-09-05 08:24:30 +00:00
  • 6d894b634e NULL pointer check for memcpy stub structure default initialization for pointer check Martin Winkler 2018-09-04 13:21:02 +00:00
  • 66cdebd7c1 Using _size parameter = 0 to also disable address detection selectively Code comment enhancements for stubser and resulting stubs Martin Winkler 2018-09-04 11:46:58 +00:00
  • f313252d79 Supporting comma separated variable definition (int8_t varA, varB, varC[], *varD, varE[12];) Martin Winkler 2018-08-31 12:19:01 +00:00
  • 335b74a844 Adding means to inject values via stub function pointer to test subject. Resulting stubs are not backward compatible. If stubbed functions contain pointer as parameter the tests need to be addapted. Martin Winkler 2018-08-30 09:14:34 +00:00
  • b148884185 - update project name Martin Winkler 2017-03-23 06:52:10 +00:00
  • 106c030fa7 - detect "const" for variables Martin Winkler 2017-03-16 13:46:57 +00:00
  • cd9838808f - calling user init functions after standard init functions (globals and expected) Martin Winkler 2017-03-16 13:46:29 +00:00
  • 97603f9001 - create also stub user c file (not overwritten if exist) - calling user functions in init and check Martin Winkler 2017-03-16 08:50:54 +00:00
  • e100189aa9 - fix doxygen file header Martin Winkler 2017-03-15 16:18:47 +00:00
  • f392bb586d - detecting empty array size even when containing spaces Martin Winkler 2017-03-15 13:14:52 +00:00
  • 6291fa4b78 - detect empty array size for globals and initialize as pointer Martin Winkler 2017-03-15 12:54:07 +00:00
  • 26f5a868e8 - support function pointer globals Martin Winkler 2017-03-15 12:13:50 +00:00
  • f39460e907 - support for function pointer as parameter - todo: function pointer globals Martin Winkler 2017-03-15 09:48:03 +00:00
  • f891492347 - improved regex for standard data types Martin Winkler 2017-03-15 05:41:03 +00:00
  • a2c91798c5 - fix: calltest was not initialized - create parameter type sepcific checks Martin Winkler 2017-03-15 05:40:44 +00:00
  • 506bb44c58 - improved globals and expected initializatian and testing Martin Winkler 2017-03-13 19:46:07 +00:00
  • 1fa51576e3 - detect arrays and save size in structure - static variables not in stub Martin Winkler 2017-03-13 19:42:03 +00:00
  • 6b4f3f4137 - stub variable specific initialization and check Martin Winkler 2017-03-13 14:00:56 +00:00
  • c6231c4007 - work on warnings counting and console output Martin Winkler 2017-03-13 10:11:55 +00:00
  • 0e0addd8d2 - cleaning debug output Martin Winkler 2017-03-11 12:42:05 +00:00
  • 4a4abfa46f - added function to init both (globals and expected) - cleaning debug output Martin Winkler 2017-03-11 12:41:39 +00:00
  • 0a1f9a39cf - fix: detecting pointer arguments Martin Winkler 2017-03-11 12:40:36 +00:00
  • adf425bb1a - added creating function to work with stub global variables (init expected, init globals, check globals) Martin Winkler 2017-03-10 22:48:29 +00:00
  • ad2deb3b32 - fix: create stubs only for regular files (STATIC functions are treated as regular) Martin Winkler 2017-03-10 15:07:19 +00:00
  • e421f81375 - added TODO: special handling for function pointer Martin Winkler 2017-03-10 15:06:55 +00:00
  • 8690c0845a - WIP creating user header and including it stub.c - todo: write stubs even when there are warnings for some lines Martin Winkler 2017-03-10 15:01:07 +00:00
  • 726077eef4 - WIP populated cfile structure with variables, functions and according element type - cleaned unused variable and function definitions - cleaned debug output calls - todo: create and include "user defined" header for including missing headers to stub.c (will not be overwritten if exists) - todo: include "includes" in cfile structure Martin Winkler 2017-03-10 14:27:24 +00:00
  • 5e967dc12e WIP multiline parser running (detecting variables, function, prototypes as whole string) - TODO parsing result of first pass (detecting C elements) - TODO #include, #if, ... not included Martin Winkler 2017-03-10 09:10:04 +00:00
  • 11d281fe75 WIP recursive line worker detects C variable and function definitions - todo: detect expressione type (function, variable, ...) Martin Winkler 2017-03-09 08:04:29 +00:00
  • 4fd1780b42 WIP detect multiple C expressions also on one line Martin Winkler 2017-03-09 07:59:24 +00:00
  • 19e0c2c6ba - populate mandatory includes Martin Winkler 2017-03-07 16:06:09 +00:00
  • 2dddba429e Martin Winkler 2017-03-06 15:40:10 +00:00
  • ff6169a266 - fix include guard warning - additional debug comments Martin Winkler 2017-03-06 15:39:36 +00:00
  • 16f0c0224a - possibility to ignore block starts within block (warning is issued to stdout); used for removing comments Martin Winkler 2017-03-06 15:39:04 +00:00
  • 39e5ad42bb - fix: added error detection for block removal error (error in one file influenced evaluation in following files) Martin Winkler 2017-03-06 14:47:34 +00:00
  • 57f349be10 - fix gnu_basename() to also detect windows path ("\\") Martin Winkler 2017-03-06 14:46:20 +00:00
  • 28fb99e4b6 - new directory traversal method - using debug output from debug.h Martin Winkler 2017-03-06 12:43:23 +00:00
  • 07aef603ff - implemented include guards Martin Winkler 2017-03-04 18:55:04 +00:00
  • 5f38527b03 - WIP also creating stub header (include guards missing) Martin Winkler 2017-03-04 18:48:10 +00:00
  • 0f2af9f368 - creating stub.c complete (quick review done) Martin Winkler 2017-03-04 18:29:52 +00:00
  • 3b5ada1a83 - WIP on stub generation Martin Winkler 2017-03-04 08:12:35 +00:00
  • 9557e97bab - processing of function parameter added (first tests successful) - next stage -> constructing stub files (.c and .h) Martin Winkler 2017-03-03 14:07:38 +00:00
  • 444b9fb078 - still WIP for parsing of parameter - new blockdetection and -removal functions (used for comments and function bodies) Martin Winkler 2017-03-03 11:08:07 +00:00
  • 8f5e44c372 - additional test for matchgroup Martin Winkler 2017-03-03 11:06:48 +00:00
  • 7586365595 - new function for removing inline- and block comments from one ore more lines of c code Martin Winkler 2017-03-02 07:12:43 +00:00
  • ea0939d74d - WIP (dynamic function structure implementation; parameter parcing missing) Martin Winkler 2017-03-01 14:36:53 +00:00
  • da56a3b6cf - WIP (dynamic function structure implementation started; only function type at the moment; running) Martin Winkler 2017-03-01 08:02:44 +00:00
  • 53f530fb6f - missing includes Martin Winkler 2017-02-28 17:16:07 +00:00
  • 0974cc3ecf - cleaning and refactoring functionality - parser function new WIP (old included as comment-> must be integrated) Martin Winkler 2017-02-28 17:11:57 +00:00
  • 05dd972ec7 - refactored to modular structure Martin Winkler 2017-02-27 07:28:38 +00:00
  • ba8c750b75 first commit (work in progress) Martin Winkler 2017-02-23 10:10:12 +00:00
  • f3feb46f5f Create project 'stubgenerator' Martin Winkler 2017-02-23 10:04:32 +00:00