From 1e126d7c7a4cb661b87a920f80e2818e3bb881e3 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 25 Jun 2026 15:31:59 +0100 Subject: tests: Reference external CWL workflow by relative path. --- test-data/echo.cwl | 7 +++++++ test-data/external-cwl-workflow.scm | 7 +++++++ tests/lang.scm | 27 +++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 test-data/echo.cwl create mode 100644 test-data/external-cwl-workflow.scm create mode 100644 tests/lang.scm diff --git a/test-data/echo.cwl b/test-data/echo.cwl new file mode 100644 index 0000000..b957a59 --- /dev/null +++ b/test-data/echo.cwl @@ -0,0 +1,7 @@ +cwlVersion: v1.2 +class: CommandLineTool +baseCommand: echo +inputs: + message: + type: string +outputs: {} diff --git a/test-data/external-cwl-workflow.scm b/test-data/external-cwl-workflow.scm new file mode 100644 index 0000000..74c91c1 --- /dev/null +++ b/test-data/external-cwl-workflow.scm @@ -0,0 +1,7 @@ +(define echo + (cwl-workflow "echo.cwl")) + +;; TODO: Remove this workflow and return echo directly once bug +;; a9352f5 is fixed. +(workflow ((message #:type string)) + (echo #:message "foo")) diff --git a/tests/lang.scm b/tests/lang.scm new file mode 100644 index 0000000..247f2e1 --- /dev/null +++ b/tests/lang.scm @@ -0,0 +1,27 @@ +;;; ccwl --- Concise Common Workflow Language +;;; Copyright © 2026 Arun Isaac +;;; +;;; This file is part of ccwl. +;;; +;;; ccwl 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. +;;; +;;; ccwl 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 ccwl. If not, see . + +(use-modules (srfi srfi-64) + (ccwl lang)) + +(test-begin "lang") + +(test-assert "load source file referencing external CWL workflow relative to it" + (ccwl-load "test-data/external-cwl-workflow.scm")) + +(test-end "lang") -- cgit 1.4.1