Add test runner utility from David Thompson
[8sync.git] / tests / utils.scm
1 ;;; Totes taken from dave
2
3 ;;; srt2vtt --- SRT to WebVTT converter
4 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
5 ;;;
6 ;;; srt2vtt is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or
9 ;;; (at your option) any later version.
10 ;;;
11 ;;; srt2vtt is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 ;;; General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with srt2vtt.  If not, see <http://www.gnu.org/licenses/>.
18
19 (define-module (tests utils)
20   #:use-module (srfi srfi-64)
21   #:export (test-exit))
22
23 (define (test-exit)
24   (exit (= (test-runner-fail-count (test-runner-current)) 0)))