Devtools » History » Revision 10
Revision 9 (laforge, 01/15/2017 02:20 PM) → Revision 10/12 (laforge, 05/11/2018 10:31 AM)
h1. Development tools h2. C tools * @Lindent@ (from kernel source), reformat C code to the Linux kernel (and osmocom) coding standards * @cflow@ to generate flow-graphs from source code h2. Patches * @git format-patch -1@, generate a patch * @checkpatch.pl@, check patches for common errors (Ignore x-signed-off-by) * @make distcheck@ catches quite a few errors, run it before sending patches. * @git send-email -1@ Send a patch to the mailing list (after configuration) h2. Testing * @make check@: run it and don't introduce regressions * @make distcheck@: run it to make sure that @make dist@ contains everything needed and you didn't forget to add any files to Makefile.am * Our extensive [[Titan_TTCN3_Testsuites]] h2. Misc * pahole (dwarves), http://www.ohloh.net/p/pahole See the memory layout of structures * gdb, debugging * valgrind, http://valgrind.org/, dynamic analysis of memory management/threading * mudflap (gcc option), check array/pointer accesses. See http://zecke.blogspot.com/2012/10/know-your-tools-mudflap.html h2. Python tools h3. Formatting * pep8, https://pypi.python.org/pypi/pep8 Check formatting for pep8 compliance * autopep8, https://github.com/hhatto/autopep8 Reformat code to be pep8-complient h3. Checking/analysis * pyflakes, https://pypi.python.org/pypi/pyflakes Statically find some errors