[pyferret] 29/110: Enable tests
Alastair McKinstry
mckinstry at moszumanska.debian.org
Fri Jul 28 08:41:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
mckinstry pushed a commit to branch debian/master
in repository pyferret.
commit b8ee229f19b19a491feccc7212909370d89debc4
Author: Alastair McKinstry <mckinstry at debian.org>
Date: Sun May 10 00:31:17 2015 +0100
Enable tests
---
debian/patches/automate-tests.parch | 71 +++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 72 insertions(+)
diff --git a/debian/patches/automate-tests.parch b/debian/patches/automate-tests.parch
new file mode 100644
index 0000000..73a6308
--- /dev/null
+++ b/debian/patches/automate-tests.parch
@@ -0,0 +1,71 @@
+Author: Alastair McKinstry <mckinstry at debian.org>
+Description: local changes to make tests automated under Debian
+Last-Updated: 2015-05-12
+Forwarded: not-needed
+
+Index: pyferret-1.1.0/bench/run_all
+===================================================================
+--- pyferret-1.1.0.orig/bench/run_all
++++ pyferret-1.1.0/bench/run_all
+@@ -54,6 +54,8 @@
+ # for now you must also manually check the benchmark bn311_ez_order
+
+
++setenv HOSTTYPE debian
++
+ umask 002 # make all files group deletable 3/16
+
+ set rhlev = "0"
+@@ -92,8 +94,8 @@ if ($rhlev == six) then
+ echo six
+ endif
+
+-echo "Enter the path (including filename) to the FERRET version of choice"
+-set fver = $<
++# echo "Enter the path (including filename) to the FERRET version of choice"
++set fver = /usr/bin/ferret_c
+
+ # XGKS version ? (use "xg" as the indicator)
+ echo $fver | grep -s "xg"
+@@ -104,14 +106,14 @@ endif
+ # *acm* 4/5/05 optionally do externally-linked external function tests
+ #
+ echo "Run tests of externally-linked external functions? Enter y or n"
+-set do_shared_obj = $<
++set do_shared_obj = y
+
+
+ # which external function libraries to use
+ set efdir = n
+ if ( $do_shared_obj == "y" ) then
+ echo "Enter the directory containing the external function libraries"
+- set efdir = $<
++ set efdir = /usr/lib/ferret-vis/external_functions
+ echo "Contents of "$efdir" :"
+ echo " "
+ ls -1 $efdir
+@@ -121,11 +123,12 @@ endif
+
+ # background info to go in the benchmark file
+ echo "Enter your name"
+-set bmarker = $<
++set bmarker = "Debian Buildbot"
++echo $bmarker
+ echo "Enter comment about this benchmark or this version of Ferret"
+ # *kob* 4.01 linux needs quotes around the input or spaces throw it off
+-set bcomment = "$<"
+-
++set bcomment = "Automated Debian tests"
++echo $bcomment
+
+ set date_stamp = `date +'%d%h%yAT%H%M'|tr '[A-Z]' '[a-z]'`
+ set log_file = "all_${date_stamp}.${machine}_log"
+@@ -147,7 +150,7 @@ if ( ! -e $machine_stream ) then
+ echo To create $machine_stream compile and run make_stream_file.F
+ echo Then rename stream10by5.unf to $machine_stream
+ echo -n 'Continue anyway? (answer "y" for yes)'
+- set answer = $<
++ set answer = "y"
+ if ($answer != "y") exit 0
+ endif
+ rm -f stream_data_link.unf
diff --git a/debian/patches/series b/debian/patches/series
index 1808cda..2395bce 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
set-envvars.patch
+automate-tests.parch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyferret.git
More information about the debian-science-commits
mailing list