Template for a Frama-C plug-in following good practices.
This template can be used for external plug-ins (not distributed with Frama-C), but it also allows the plug-in to be internalized and distributed with custom versions of Frama-C.
- Clone this repository and rename it to your plug-in's name;
- Replace all occurrences of SKELETON/Skeleton/skeleton with your plug-in's name
(do NOT rename
PLUGIN_*variables; they must remain asPLUGIN_*), in all files; - Rename
Skeleton.mliandtests/skeleton; - Add test dirs and tests inside
tests/; - Open
configure.acand update it according to its instructions; - Open
Makefile.inand update it according to its instructions; - Update the
opamfile.- Ideally, test with all Frama-C versions it should be compatible with and add constraints to blacklist incompatible versions if needed;
- Don't forget to notify the Frama-C developers about your plug-in!
- Run
autoconf -fto regenerateconfigure; - Run
./configureto generate the Makefile; - Run
makeand thenmake installto install the plug-in; - Run
make Skeleton_TESTS(replacingSkeletonwith your plug-in name) to runptestson all test directories. For more information about thepteststool, see the Frama-C Plug-in Development guide.