[gnuplot5] 12/15: Simplify autopkgtest.

Anton Gladky gladk at moszumanska.debian.org
Tue Sep 30 21:57:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

gladk pushed a commit to branch master
in repository gnuplot5.

commit f69cc4eac72f63568275428c6b4a565df309779f
Author: Anton Gladky <gladk at debian.org>
Date:   Mon Sep 29 22:38:53 2014 +0200

    Simplify autopkgtest.
---
 debian/tests/arrowstyle  | 294 -----------------------------------------------
 debian/tests/control     |   2 +-
 debian/tests/epslatex    |  81 -------------
 debian/tests/fillstyle   |  79 -------------
 debian/tests/testgnuplot |  19 +++
 5 files changed, 20 insertions(+), 455 deletions(-)

diff --git a/debian/tests/arrowstyle b/debian/tests/arrowstyle
deleted file mode 100755
index 8b9294e..0000000
--- a/debian/tests/arrowstyle
+++ /dev/null
@@ -1,294 +0,0 @@
-#!/bin/sh
-# autopkgtest check
-# (C) 2014 Anton Gladky
-
-set -e
-
-WORKDIR=$(mktemp -d)
-trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
-cd $WORKDIR
-
-cat <<EOF > 1.dat
-#
--20.000000 -3.041676
--19.000000 -3.036427
--18.000000 -3.030596
--17.000000 -3.024081
--16.000000 -3.016755
--15.000000 -3.008456
--14.000000 -2.998978
--13.000000 -2.988049
--12.000000 -2.975310
--11.000000 -2.960273
--10.000000 -2.942255
--9.000000 -2.920278
--8.000000 -2.892883
--7.000000 -2.857799
--6.000000 -2.811295
--5.000000 -2.746802
--4.000000 -2.651635
--3.000000 -2.498092
--2.000000 -2.214297
--1.000000 -1.570796
-0.000000 0.000000
-1.000000 1.570796
-2.000000 2.214297
-3.000000 2.498092
-4.000000 2.651635
-5.000000 2.746802
-6.000000 2.811295
-7.000000 2.857799
-8.000000 2.892883
-9.000000 2.920278
-10.000000 2.942255
-11.000000 2.960273
-12.000000 2.975310
-13.000000 2.988049
-14.000000 2.998978
-15.000000 3.008456
-16.000000 3.016755
-17.000000 3.024081
-18.000000 3.030596
-19.000000 3.036427
-EOF
-
-cat <<EOF > 2.dat
-#
-#
-#
--20.000000 -6.083352
--19.000000 -6.072853
--18.000000 -6.061191
--17.000000 -6.048162
--16.000000 -6.033510
--15.000000 -6.016913
--14.000000 -5.997955
--13.000000 -5.976098
--12.000000 -5.950620
--11.000000 -5.920546
--10.000000 -5.884511
--9.000000 -5.840556
--8.000000 -5.785765
--7.000000 -5.715597
--6.000000 -5.622591
--5.000000 -5.493603
--4.000000 -5.303271
--3.000000 -4.996183
--2.000000 -4.428595
--1.000000 -3.141593
-0.000000 0.000000
-1.000000 3.141593
-2.000000 4.428595
-3.000000 4.996183
-4.000000 5.303271
-5.000000 5.493603
-6.000000 5.622591
-7.000000 5.715597
-8.000000 5.785765
-9.000000 5.840556
-10.000000 5.884511
-11.000000 5.920546
-12.000000 5.950620
-13.000000 5.976098
-14.000000 5.997955
-15.000000 6.016913
-16.000000 6.033510
-17.000000 6.048162
-18.000000 6.061191
-19.000000 6.072853
-EOF
-
-cat <<EOF > 3.dat
-#
-#
-#
--20.000000 -9.125028
--19.000000 -9.109280
--18.000000 -9.091787
--17.000000 -9.072243
--16.000000 -9.050265
--15.000000 -9.025369
--14.000000 -8.996933
--13.000000 -8.964147
--12.000000 -8.925931
--11.000000 -8.880819
--10.000000 -8.826766
--9.000000 -8.760835
--8.000000 -8.678648
--7.000000 -8.573396
--6.000000 -8.433886
--5.000000 -8.240405
--4.000000 -7.954906
--3.000000 -7.494275
--2.000000 -6.642892
--1.000000 -4.712389
-0.000000 0.000000
-1.000000 4.712389
-2.000000 6.642892
-3.000000 7.494275
-4.000000 7.954906
-5.000000 8.240405
-6.000000 8.433886
-7.000000 8.573396
-8.000000 8.678648
-9.000000 8.760835
-10.000000 8.826766
-11.000000 8.880819
-12.000000 8.925931
-13.000000 8.964147
-14.000000 8.996933
-15.000000 9.025369
-16.000000 9.050265
-17.000000 9.072243
-18.000000 9.091787
-19.000000 9.109280
-EOF
-
-cat <<EOF > arrowstyle.dat
--1000	37	-41
--959	11	-49
--918	-16	-48
--877	-42	-39
--836	-60	-24
--795	-69	-5
--755	-66	14
--714	-52	32
--673	-30	44
--632	-2	49
--591	24	46
--551	48	35
--510	64	18
--469	69	0
--428	63	-20
--387	46	-37
--346	22	-47
--306	-5	-49
--265	-32	-44
--224	-54	-31
--183	-67	-13
--142	-68	7
--102	-59	26
--61	-39	40
--20	-14	48
-20	14	48
-61	39	40
-102	59	26
-142	68	7
-183	67	-13
-224	54	-31
-265	32	-44
-306	5	-49
-346	-22	-47
-387	-46	-37
-428	-63	-20
-469	-69	-0
-510	-64	18
-551	-48	35
-591	-24	46
-632	2	49
-673	30	44
-714	52	32
-755	66	14
-795	69	-5
-836	60	-24
-877	42	-39
-918	16	-48
-959	-11	-49
-1000	-37	-41
-EOF
-
-cat <<EOF > arrowstyle.dem
-#
-#
-#
-set terminal postscript eps color 
-set xrange [-1000:1000]
-set yrange [-178:86]
-set tics scale 0
-
-set style line 1 lt 1 lw 2
-set style line 2 lt 3 lw 2
-
-set style arrow 1 head filled size screen 0.025,30,45 ls 1
-set style arrow 2 head nofilled size screen 0.03,15 ls 2
-set style arrow 3 head filled size screen 0.03,15,45 ls 1
-set style arrow 4 head filled size screen 0.03,15 ls 2
-set style arrow 5 heads filled size screen 0.03,15,135 ls 1
-set style arrow 6 head empty size screen 0.03,15,135 ls 2
-set style arrow 7 nohead ls 1
-set style arrow 8 heads size screen 0.008,90 ls 2
-
-print ' We have defined the following arrowstyles:'
-show style arrow
-
-set arrow from -500,-100 to 500,-100 as 1
-set arrow from -500,-110 to 500,-110 as 2
-set arrow from -500,-120 to 500,-120 as 3
-set arrow from -500,-130 to 500,-130 as 4
-set arrow from -500,-140 to 500,-140 as 5
-set arrow from -500,-150 to 500,-150 as 6
-set arrow from -500,-160 to 500,-160 as 7
-set arrow from -500,-170 to 500,-170 as 8
-
-set label 'arrowstyle 1:' at -520,-100 right
-set label 'arrowstyle 2:' at -520,-110 right
-set label 'arrowstyle 3:' at -520,-120 right
-set label 'arrowstyle 4:' at -520,-130 right
-set label 'arrowstyle 5:' at -520,-140 right
-set label 'arrowstyle 6:' at -520,-150 right
-set label 'arrowstyle 7:' at -520,-160 right
-set label 'arrowstyle 8:' at -520,-170 right
-
-set title 'Top: plot with vectors arrowstyle 1, Bottom: explicit arrows'
-plot \
-     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 1
-
-set title 'Top: plot with vectors arrowstyle 2, Bottom: explicit arrows'
-plot \
-     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 2
-
-set title 'Top: plot with vectors arrowstyle 3, Bottom: explicit arrows'
-plot \
-     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 3
-
-set title 'Top: plot with vectors arrowstyle 4, Bottom: explicit arrows'
-plot \
-     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 4
-
-set title 'Top: plot with vectors arrowstyle 5, Bottom: explicit arrows'
-plot \
-     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 5
-
-set title 'Top: plot with vectors arrowstyle 6, Bottom: explicit arrows'
-plot \
-     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 6
-
-set title 'Top: plot with vectors arrowstyle 7, Bottom: explicit arrows'
-plot \
-     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 7
-
-set title 'Top: plot with vectors arrowstyle 8, Bottom: explicit arrows'
-plot \
-     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 8
-
-#reset
-
-#
-# Show plot with data style vectors
-#
-set title "Plot 'file' with vectors <arrowstyle>"
-set key box opaque
-set xrange [*:*]
-set yrange [*:10]
-set for [i=1:8] style arrow i lc i
-plot '1.dat' using 1:2:(+1):(+1) with vectors lt 4 filled title 'filled', \
-     '2.dat' using 1:2:(+1):(+1) with vectors lt 1 heads title 'double-headed', \
-     '2.dat' using (\$1):(2-\$2/3):(+1):(+2.5):(int(\$0)%8 + 1) with vectors as var ti 'arrowstyle variable'
-#
-#
-reset
-EOF
-
-gnuplot < arrowstyle.dem
-
-echo "run: OK"
diff --git a/debian/tests/control b/debian/tests/control
index 27af8d6..430aa46 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,2 @@
-Tests: arrowstyle epslatex fillstyle
+Tests: testgnuplot
 Depends: gnuplot5-nox
diff --git a/debian/tests/epslatex b/debian/tests/epslatex
deleted file mode 100755
index ada121c..0000000
--- a/debian/tests/epslatex
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/sh
-# autopkgtest check
-# (C) 2014 Anton Gladky
-
-set -e
-
-WORKDIR=$(mktemp -d)
-trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
-cd $WORKDIR
-
-cat <<EOF > epslatex.dem
-#
-#
-# This file demonstrates new features in gnuplot 4.1
-print "\n This file demonstrates how to use the epslatex terminal."
-print " It will generate two files: epslatex-inc.eps and epslatex.tex."
-print " \nIf the file gnuplot.cfg is found by LaTeX it will be loaded"
-print " and can be used for further settings, e.g., here it provides"
-print " the package exscale.sty which enlargens the integral sign.\n"
-pause -1 "Hit return to continue"
-#
-xmin=-270.
-xmax=270.
-ymin=-1.1
-ymax=1.2
-#
-reset
-set terminal push
-set terminal epslatex standalone linewidth 2 rounded \
-  dashlen 4 color '' 12
-set output 'epslatex.tex'
-unset autoscale
-set xr [xmin:xmax]
-set yr [ymin:ymax]
-#
-set encoding iso_8859_1
-set format x '\$%g\$'
-set format y '\$%.1f\$'
-set xtics 90
-set xlabel '\$x\$ / °'
-set ylabel '\$y\$'
-set arrow from -120,0.8 to -60,0.8 lt 1 lw 2 nohead
-set arrow from -120,0.7 to -60,0.7 lt 2 lw 2 nohead
-set arrow from -120,0.6 to -60,0.6 lt 3 lw 2 nohead
-set arrow from -120,0.5 to -60,0.5 lt 4 lw 2 nohead
-set arrow from -120,0.4 to -60,0.4 lt 5 lw 2 nohead
-set arrow from -120,0.3 to -60,0.3 lt 6 lw 2 nohead
-set arrow from -120,0.2 to -60,0.2 lt 7 lw 2 nohead
-set arrow from -120,0.1 to -60,0.1 lt 8 lw 2 nohead
-set label '\$\displaystyle\tan\alpha = \frac{\sin\alpha}{\cos\alpha}\$' \
-  at 90,0 centre textcolor lt 3
-set label '\$\displaystyle\int x\mathrm{d}x = \frac12 x^2 + C_1\$' \
-  at 90,-0.5 centre textcolor lt 4
-plot sin(pi/180.*x) title '\$y = \sin x\$' w l lt 1 lw 4
-set output
-#
-set terminal epslatex standalone oldstyle linewidth 2 rounded \
-  dashlen 1 color '' 12
-set output 'epslatex-oldstyle.tex'
-set tics scale 2
-replot
-set output
-#
-print "\n Now, either run"
-print "   latex epslatex"
-print "   dvips epslatex"
-print " and have a look at epslatex.ps; or run"
-print "   epstopdf epslatex-inc.eps"
-print "   pdflatex epslatex"
-print " and have a look at epslatex.pdf."
-print " Do the same with epslatex-oldstyle.tex."
-#
-set terminal pop
-reset
-EOF
-
-
-gnuplot < epslatex.dem
-ls -ln
-
-echo "run: OK"
diff --git a/debian/tests/fillstyle b/debian/tests/fillstyle
deleted file mode 100755
index 65e8448..0000000
--- a/debian/tests/fillstyle
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/sh
-# autopkgtest check
-# (C) 2014 Anton Gladky
-
-set -e
-
-WORKDIR=$(mktemp -d)
-trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
-cd $WORKDIR
-
-cat <<EOF > fillstyle.dem
-#
-#
-# E A Merritt <merritt at u.washington.edu>          24-Sep-2002
-#
-# Demo for revised fillstyle code selected by 
-# ./configure --enable-filledboxes --enable-relative-boxwidth
-#
-reset
-set terminal postscript eps color 
-set samples 25
-unset xtics
-unset ytics
-set yrange [0:120]
-
-set title "A demonstration of boxes with default properties"
-plot [-10:10] 100/(1.0+x*x) title 'distribution' with boxes
-
-pause -1 "Now draw the boxes with solid fill"
-
-set title "A demonstration of boxes with style fill solid 1.0"
-set style fill solid 1.0
-replot
-
-pause -1 "Now draw the boxes with a black border"
-
-set title "A demonstration of boxes with style fill solid border -1"
-set style fill solid border -1
-replot
-
-pause -1 "Now make the boxes a little less wide"
-
-set title "Filled boxes of reduced width"
-set boxwidth 0.5 
-replot
-
-pause -1 "And now let's try a different fill density"
-
-set title "Filled boxes at 50% fill density"
-set style fill solid 0.25 border
-replot
-
-pause -1 "Now draw the boxes with no border"
-
-set title "A demonstration of boxes with style fill solid 0.25 noborder"
-set style fill solid 0.25 noborder
-replot
-
-pause -1 "Or maybe a pattern fill, instead?"
-
-set title "A demonstration of boxes in mono with style fill pattern"
-set samples 11
-set boxwidth 0.5 
-set style fill pattern border
-plot [-2.5:4.5] 100/(1.0+x*x) title 'pattern 0' with boxes lt -1, \
-                 80/(1.0+x*x) title 'pattern 1' with boxes lt -1, \
-                 40/(1.0+x*x) title 'pattern 2' with boxes lt -1, \
-                 20/(1.0+x*x) title 'pattern 3' with boxes lt -1
-
-pause -1 "Finished this demo"
-
-reset
-
-EOF
-
-
-gnuplot < fillstyle.dem
-
-echo "run: OK"
diff --git a/debian/tests/testgnuplot b/debian/tests/testgnuplot
new file mode 100755
index 0000000..67f187a
--- /dev/null
+++ b/debian/tests/testgnuplot
@@ -0,0 +1,19 @@
+#!/bin/sh
+# autopkgtest check
+# (C) 2014 Anton Gladky
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+cat <<EOF > test
+set terminal pngcairo
+set output 'a.png'
+test
+EOF
+
+gnuplot < test
+ls -ln
+echo "run: OK"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gnuplot5.git



More information about the debian-science-commits mailing list