From b23b46e1a2c14cb156000f6fdf24cc71459d921d Mon Sep 17 00:00:00 2001 From: Erwan Jahier <erwan.jahier@univ-grenoble-alpes.fr> Date: Fri, 8 Dec 2017 10:44:30 +0100 Subject: [PATCH] Add tests. --- .gitignore | 3 +++ doc/version.tex | 6 +++--- setup.ml | 2 +- src/lutilsVersion.ml | 4 ++-- test/Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 test/Makefile diff --git a/.gitignore b/.gitignore index ea759e4..0e1d1bd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ _build/ *.native *.byte *.rif +*~ +#* log myocamlbuild.ml @@ -21,4 +23,5 @@ linux linux64/ *.cmt Makefile.local +Makefile.version bin/ diff --git a/doc/version.tex b/doc/version.tex index ca9b1b5..633133a 100644 --- a/doc/version.tex +++ b/doc/version.tex @@ -1,4 +1,4 @@ -\newcommand{\version}{1.20} -\newcommand{\sha}{06600af} +\newcommand{\version}{1.21} +\newcommand{\sha}{fb28a81} \newcommand{\versionname}{none} -\newcommand{\versiondate}{07-12-17} +\newcommand{\versiondate}{08-12-17} diff --git a/setup.ml b/setup.ml index 50f9e5e..7925d3f 100644 --- a/setup.ml +++ b/setup.ml @@ -1,4 +1,4 @@ -(* setup.ml generated for the first time by OASIS v0.4.5 *) +(* setup.ml generated for the first time by OASIS v0.4.10 *) (* OASIS_START *) (* DO NOT EDIT (digest: 9b558962553bf4cacdb94a84135503ac) *) diff --git a/src/lutilsVersion.ml b/src/lutilsVersion.ml index 397aba0..fa3d892 100644 --- a/src/lutilsVersion.ml +++ b/src/lutilsVersion.ml @@ -1,2 +1,2 @@ -let str="1.20" -let sha="06600af" +let str="1.21" +let sha="fb28a81" diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..6efa785 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,44 @@ +GNUPLOTRIF=./gnuplot-rif + +pdf: + $(GNUPLOTRIF) ControleurPorte.rif -pdf + $(GNUPLOTRIF) heater_float.rif -pdf + +ps: + $(GNUPLOTRIF) ControleurPorte.rif -ps + $(GNUPLOTRIF) heater_float.rif -ps + +cps: + $(GNUPLOTRIF) ControleurPorte.rif -cps + $(GNUPLOTRIF) heater_float.rif -cps + + +eps: + $(GNUPLOTRIF) ControleurPorte.rif -eps + $(GNUPLOTRIF) heater_float.rif -eps + +jpg: + $(GNUPLOTRIF) ControleurPorte.rif -jpg + $(GNUPLOTRIF) heater_float.rif -jpg + +tex: + $(GNUPLOTRIF) ControleurPorte.rif -latex + $(GNUPLOTRIF) heater_float.rif -latex + + + +test-batch: pdf ps cps eps jpg tex + ls + sleep 1 + make clean + echo " ==> Test went fine!" + +test: pdf ps cps eps jpg tex + sleep 1 + xpdf ControleurPorte.pdf + xpdf heater_float.pdf + geeqie + make clean + +clean: + rm -f *.log *.p* *.gp *.tex *.eps *.jpg -- GitLab