[caffe] 01/01: tests: update autopkgtest scripts

Zhou Mo cdluminate-guest at moszumanska.debian.org
Wed Oct 26 07:26:26 UTC 2016


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

cdluminate-guest pushed a commit to branch master
in repository caffe.

commit 73ecbd1de68a987ac170ac97d4c1936caa03aff6
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Wed Oct 26 07:25:32 2016 +0000

    tests: update autopkgtest scripts
---
 debian/changelog                                             | 6 ++++++
 debian/tests/{python-caffe-test.py => .python-caffe-test.py} | 0
 debian/tests/control                                         | 8 ++++++--
 debian/tests/python3caffetestsuite                           | 2 --
 debian/tests/simply.run                                      | 7 +++++++
 debian/tests/{simple => test.forward.backward.lenet}         | 0
 debian/tests/test.python3.import                             | 7 +++++++
 debian/tests/test.python3.simple.forward                     | 6 ++++++
 8 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9c8d90c..90514c4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+caffe (1.0.0~rc3+20160930-ga7f950b-2) UNRELEASED; urgency=medium
+
+  * Update autopkgtest scripts.
+
+ -- Zhou Mo <cdluminate at gmail.com>  Wed, 26 Oct 2016 07:23:11 +0000
+
 caffe (1.0.0~rc3+20160930-ga7f950b-1) experimental; urgency=medium
 
   * Import upstream snapshot (a7f950baafd7657732a40286e6db89f2c3baef63).
diff --git a/debian/tests/python-caffe-test.py b/debian/tests/.python-caffe-test.py
similarity index 100%
rename from debian/tests/python-caffe-test.py
rename to debian/tests/.python-caffe-test.py
diff --git a/debian/tests/control b/debian/tests/control
index be21b5a..bf30ddc 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,7 @@
-Tests: simple
+Tests: simply.run
 
-Tests: python3caffetestsuite
+Tests: test.forward.backward.lenet
+
+Tests: test.python3.import
+
+Tests: test.python3.simple.forward
diff --git a/debian/tests/python3caffetestsuite b/debian/tests/python3caffetestsuite
deleted file mode 100755
index 35a1865..0000000
--- a/debian/tests/python3caffetestsuite
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-python3 python-caffe-test.py
diff --git a/debian/tests/simply.run b/debian/tests/simply.run
new file mode 100755
index 0000000..96333c4
--- /dev/null
+++ b/debian/tests/simply.run
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# simply run caffe to see if it explodes.
+caffe
+
+exit 0
diff --git a/debian/tests/simple b/debian/tests/test.forward.backward.lenet
similarity index 100%
rename from debian/tests/simple
rename to debian/tests/test.forward.backward.lenet
diff --git a/debian/tests/test.python3.import b/debian/tests/test.python3.import
new file mode 100755
index 0000000..fa5371b
--- /dev/null
+++ b/debian/tests/test.python3.import
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# we want to know if it imports correctly
+python3 -c 'import caffe'
+
+exit 0
diff --git a/debian/tests/test.python3.simple.forward b/debian/tests/test.python3.simple.forward
new file mode 100755
index 0000000..2272cec
--- /dev/null
+++ b/debian/tests/test.python3.simple.forward
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# perform a simple functional test
+python3 debian/tests/.python-caffe-test.py
+
+exit 0

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



More information about the debian-science-commits mailing list