#!@abs_top_srcdir@/pre-inst-env guile !# ;;;; Copyright (C) 2020 Julien Lepiller ;;;; ;;;; This library is free software; you can redistribute it and/or ;;;; modify it under the terms of the GNU Lesser General Public ;;;; License as published by the Free Software Foundation; either ;;;; version 3 of the License, or (at your option) any later version. ;;;; ;;;; This library 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 ;;;; Lesser General Public License for more details. ;;;; ;;;; You should have received a copy of the GNU Lesser General Public ;;;; License along with this library; if not, write to the Free Software ;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;;;; (use-modules (system vm coverage) (system vm vm)) (use-modules (test-modules online)) (define compact-test-url (string-append jsonld-test-url "compact-manifest.jsonld")) (define expand-test-url (string-append jsonld-test-url "expand-manifest.jsonld")) (define flatten-test-url (string-append jsonld-test-url "flatten-manifest.jsonld")) (define remote-test-url (string-append jsonld-test-url "remote-doc-manifest.jsonld")) (define (run-coverage) (let* ((currfile (dirname (current-filename))) (path (string-take currfile (string-rindex currfile #\/)))) (add-to-load-path path)) (call-with-values (lambda () (with-code-coverage (lambda () ;(run-test-suite (get-test-doc compact-test-url) '()) ;(run-test-suite (get-test-doc expand-test-url) '()) ;(run-test-suite (get-test-doc flatten-test-url) '()) (run-test-suite (get-test-doc remote-test-url) '())))) (lambda (data result) (let ((port (open-output-file "lcov.info"))) (coverage-data->lcov data port) (close port))))) (run-coverage)