[ARVADOS] updated: d3a82af33386c99c0fd3d6471df7e6696560089c

Git user git at public.curoverse.com
Wed Apr 12 12:11:00 EDT 2017


Summary of changes:
 sdk/cwl/arvados_cwl/arv-cwl-schema.yml             |  2 +-
 sdk/cwl/tests/arvados-tests.yml                    | 36 ++++++++++++++++++++++
 .../cwl/tests/tmp1/tmp2/tmp3}/.gitkeep             |  0
 sdk/cwl/tests/wf/listing_deep.cwl                  | 15 +++++++++
 sdk/cwl/tests/wf/listing_none.cwl                  | 15 +++++++++
 sdk/cwl/tests/wf/listing_shallow.cwl               | 15 +++++++++
 6 files changed, 82 insertions(+), 1 deletion(-)
 copy {services/api/vendor/plugins => sdk/cwl/tests/tmp1/tmp2/tmp3}/.gitkeep (100%)
 create mode 100644 sdk/cwl/tests/wf/listing_deep.cwl
 create mode 100644 sdk/cwl/tests/wf/listing_none.cwl
 create mode 100644 sdk/cwl/tests/wf/listing_shallow.cwl

       via  d3a82af33386c99c0fd3d6471df7e6696560089c (commit)
      from  d72f1d79c0a53056a7cecad6c65fd57a183059b0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit d3a82af33386c99c0fd3d6471df7e6696560089c
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Wed Apr 12 12:08:52 2017 -0400

    10401: Add integration tests for directory listing behavior.

diff --git a/sdk/cwl/arvados_cwl/arv-cwl-schema.yml b/sdk/cwl/arvados_cwl/arv-cwl-schema.yml
index 133638c..4e48216 100644
--- a/sdk/cwl/arvados_cwl/arv-cwl-schema.yml
+++ b/sdk/cwl/arvados_cwl/arv-cwl-schema.yml
@@ -21,7 +21,7 @@ $graph:
         - "null"
         - type: enum
           name: LoadListingEnum
-          symbols: [shallow, deep]
+          symbols: [no_listing, shallow_listing, deep_listing]
 
 - name: RunInSingleContainer
   type: record
diff --git a/sdk/cwl/tests/arvados-tests.yml b/sdk/cwl/tests/arvados-tests.yml
index 1beadb9..87528b2 100644
--- a/sdk/cwl/tests/arvados-tests.yml
+++ b/sdk/cwl/tests/arvados-tests.yml
@@ -46,3 +46,39 @@
   output: {}
   tool: cat.cwl
   doc: Test hashes in filenames
+
+- job: listing-job.yml
+  output: {
+    "out": {
+        "class": "File",
+        "location": "output.txt",
+        "size": 5,
+        "checksum": "sha1$724ba28f4a9a1b472057ff99511ed393a45552e1"
+    }
+  }
+  tool: wf/listing_shallow.cwl
+  doc: test shallow directory listing
+
+- job: listing-job.yml
+  output: {
+    "out": {
+        "class": "File",
+        "location": "output.txt",
+        "size": 5,
+        "checksum": "sha1$724ba28f4a9a1b472057ff99511ed393a45552e1"
+    }
+  }
+  tool: wf/listing_none.cwl
+  doc: test no directory listing
+
+- job: listing-job.yml
+  output: {
+    "out": {
+        "class": "File",
+        "location": "output.txt",
+        "size": 5,
+        "checksum": "sha1$724ba28f4a9a1b472057ff99511ed393a45552e1"
+    }
+  }
+  tool: wf/listing_deep.cwl
+  doc: test deep directory listing
diff --git a/sdk/cwl/tests/tmp1/tmp2/tmp3/.gitkeep b/sdk/cwl/tests/tmp1/tmp2/tmp3/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sdk/cwl/tests/wf/listing_deep.cwl b/sdk/cwl/tests/wf/listing_deep.cwl
new file mode 100644
index 0000000..79ab368
--- /dev/null
+++ b/sdk/cwl/tests/wf/listing_deep.cwl
@@ -0,0 +1,15 @@
+class: CommandLineTool
+cwlVersion: v1.0
+$namespaces:
+  cwltool: "http://commonwl.org/cwltool#"
+requirements:
+  cwltool:LoadListingRequirement:
+    loadListing: deep_listing
+  InlineJavascriptRequirement: {}
+inputs:
+  d: Directory
+outputs:
+  out: stdout
+stdout: output.txt
+arguments:
+  [echo, "${if(inputs.d.listing[0].class === 'Directory' && inputs.d.listing[0].listing[0].class === 'Directory') {return 'true';} else {return 'false';}}"]
diff --git a/sdk/cwl/tests/wf/listing_none.cwl b/sdk/cwl/tests/wf/listing_none.cwl
new file mode 100644
index 0000000..584c8f5
--- /dev/null
+++ b/sdk/cwl/tests/wf/listing_none.cwl
@@ -0,0 +1,15 @@
+class: CommandLineTool
+cwlVersion: v1.0
+$namespaces:
+  cwltool: http://commonwl.org/cwltool#
+requirements:
+  cwltool:LoadListingRequirement:
+    loadListing: no_listing
+  InlineJavascriptRequirement: {}
+inputs:
+  d: Directory
+outputs:
+  out: stdout
+stdout: output.txt
+arguments:
+  [echo, "${if(inputs.d.listing === undefined) {return 'true';} else {return 'false';}}"]
\ No newline at end of file
diff --git a/sdk/cwl/tests/wf/listing_shallow.cwl b/sdk/cwl/tests/wf/listing_shallow.cwl
new file mode 100644
index 0000000..b54f348
--- /dev/null
+++ b/sdk/cwl/tests/wf/listing_shallow.cwl
@@ -0,0 +1,15 @@
+class: CommandLineTool
+cwlVersion: v1.0
+$namespaces:
+  cwltool: http://commonwl.org/cwltool#
+requirements:
+  cwltool:LoadListingRequirement:
+    loadListing: shallow_listing
+  InlineJavascriptRequirement: {}
+inputs:
+  d: Directory
+outputs:
+  out: stdout
+stdout: output.txt
+arguments:
+  [echo, "${if(inputs.d.listing[0].class === 'Directory' && inputs.d.listing[0].listing === undefined) {return 'true';} else {return 'false';}}"]

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list