summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2015-11-27 20:18:33 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2015-11-27 20:19:33 -0600
commit743fdb8a79e771cfbd98ed53a66a4d129f8fe2f6 (patch)
tree643d3bb7dfe3bc52d8c5eb6da253e3a630525242 /tests
parent4449ec393d0a0e2340511c6352f1096c5bee1fbf (diff)
download8sync-743fdb8a79e771cfbd98ed53a66a4d129f8fe2f6.tar.gz
Add test runner utility from David Thompson
Diffstat (limited to 'tests')
-rw-r--r--tests/test-agenda.scm8
-rw-r--r--tests/utils.scm24
2 files changed, 29 insertions, 3 deletions
diff --git a/tests/test-agenda.scm b/tests/test-agenda.scm
index bed9995..06f24f3 100644
--- a/tests/test-agenda.scm
+++ b/tests/test-agenda.scm
@@ -19,11 +19,12 @@
-s
!#
-(define-module (tests test-core)
+(define-module (tests test-agenda)
#:use-module (srfi srfi-64)
#:use-module (ice-9 q)
#:use-module (ice-9 receive)
- #:use-module (eightsync agenda))
+ #:use-module (eightsync agenda)
+ #:use-module (tests utils))
(test-begin "test-agenda")
@@ -335,5 +336,6 @@
;; End tests
(test-end "test-agenda")
-;; (test-exit)
+
+(test-exit)
diff --git a/tests/utils.scm b/tests/utils.scm
new file mode 100644
index 0000000..9ec2760
--- /dev/null
+++ b/tests/utils.scm
@@ -0,0 +1,24 @@
+;;; Totes taken from dave
+
+;;; srt2vtt --- SRT to WebVTT converter
+;;; Copyright © 2015 David Thompson <davet@gnu.org>
+;;;
+;;; srt2vtt is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or
+;;; (at your option) any later version.
+;;;
+;;; srt2vtt is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with srt2vtt. If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (tests utils)
+ #:use-module (srfi srfi-64)
+ #:export (test-exit))
+
+(define (test-exit)
+ (exit (= (test-runner-fail-count (test-runner-current)) 0)))