Skip to content
Snippets Groups Projects
Commit 22ee4300 authored by Thibaud Antignac's avatar Thibaud Antignac
Browse files

Continue changes suggested by Julien’s review

parent 0ff41885
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,8 @@ This chapter summarizes the major changes in this documentation between each ...@@ -8,8 +8,8 @@ This chapter summarizes the major changes in this documentation between each
\section*{\framacversion} \section*{\framacversion}
\begin{itemize} \begin{itemize}
\item \textbf{Tutorial}: Update and completion of the Hello plug-in section \item \textbf{Tutorial}: Update and complete the Hello plug-in section
along with the ability to generate the plug-in by \texttt{make archives}. along with making it available online.
\item \textbf{Testing}: Explain the appropriate way to handle compilation \item \textbf{Testing}: Explain the appropriate way to handle compilation
of \texttt{.ml} scripts during tests of \texttt{.ml} scripts during tests
\item \textbf{Makefiles}: Remove any reference to obsolete \item \textbf{Makefiles}: Remove any reference to obsolete
......
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
\vfill \vfill
\title{Plug-in Development Guide}% \title{Plug-in Development Guide}%
{Release \framacversion} {Release \framacversion}
\author{Julien~Signoles with Loïc Correnson, Matthieu Lemerre and Virgile \author{Julien~Signoles with Thibaud~Antignac, Loïc~Correnson, Matthieu~Lemerre
Prevosto} and Virgile~Prevosto}
\begin{center} \begin{center}
CEA LIST, Software Security Laboratory, Saclay,F-91191 CEA LIST, Software Security Laboratory, Saclay,F-91191
\end{center} \end{center}
......
...@@ -508,9 +508,9 @@ presents how to properly test plug-ins. ...@@ -508,9 +508,9 @@ presents how to properly test plug-ins.
\subsection{Testing your Plug-in}\label{tut2:testing} \subsection{Testing your Plug-in}\label{tut2:testing}
\index{Plug-in!Testing}\index{Test} \index{Plug-in!Testing}\index{Test}
Frama-C supports non-regression testing of plug-ins. This is useful for Frama-C supports non-regression testing of plug-ins. This is useful to check
non-regression and test-driven development purposes. The tool allowing to that further plug-in modifications do not introduce new bugs. The tool allowing
perform the tests is called \ptests\index{Ptests}. to perform the tests is called \ptests\index{Ptests}.
To build these tests, the location of the subdirectories containing them must To build these tests, the location of the subdirectories containing them must
be indicated in the \texttt{Makefile} through the variable be indicated in the \texttt{Makefile} through the variable
...@@ -586,7 +586,7 @@ Then, \texttt{Command} shows the executed command for this test case followed ...@@ -586,7 +586,7 @@ Then, \texttt{Command} shows the executed command for this test case followed
by bash pipes to control the dataflow. (Note the \texttt{-hello} by bash pipes to control the dataflow. (Note the \texttt{-hello}
option which has been passed to \framac as requested by \texttt{OPT: -hello} option which has been passed to \framac as requested by \texttt{OPT: -hello}
in the \texttt{run.config}.) in the \texttt{run.config}.)
Two outputs are considered for each tests: Two outputs are considered as results for each test:
an \emph{error} output and a \emph{result} output. an \emph{error} output and a \emph{result} output.
These outputs are logged in the two following files: These outputs are logged in the two following files:
\texttt{./tests/hello/result/hello\_test.err.log} and \texttt{./tests/hello/result/hello\_test.err.log} and
......
...@@ -6,7 +6,7 @@ let run () = ...@@ -6,7 +6,7 @@ let run () =
Self.result "%s" msg Self.result "%s" msg
else else
let chan = open_out filename in let chan = open_out filename in
Printf.fprintf chan "%s\n" msg; Format.fprintf chan "%s@." msg;
close_out chan close_out chan
in in
output_fun "Hello, world!" output_fun "Hello, world!"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment