From: Peter Amstutz Date: Mon, 6 Aug 2018 18:13:16 +0000 (-0400) Subject: 13931: Add test that file sizes are available. X-Git-Tag: 1.2.0~42^2~4 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/d49a9ee4cd176e35f1929c1bb60caa751b53903d?ds=sidebyside 13931: Add test that file sizes are available. Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/sdk/cwl/tests/13931-size-job.yml b/sdk/cwl/tests/13931-size-job.yml new file mode 100644 index 0000000000..97b46dd360 --- /dev/null +++ b/sdk/cwl/tests/13931-size-job.yml @@ -0,0 +1,3 @@ +fastq1: + class: File + location: keep:20850f01122e860fb878758ac1320877+71/sample1_S01_R1_001.fastq.gz \ No newline at end of file diff --git a/sdk/cwl/tests/13931-size.cwl b/sdk/cwl/tests/13931-size.cwl new file mode 100644 index 0000000000..aed1bd6351 --- /dev/null +++ b/sdk/cwl/tests/13931-size.cwl @@ -0,0 +1,10 @@ +cwlVersion: v1.0 +class: CommandLineTool +inputs: + fastq1: File +outputs: + out: stdout +baseCommand: echo +arguments: + - $(inputs.fastq1.size) +stdout: size.txt \ No newline at end of file diff --git a/sdk/cwl/tests/arvados-tests.sh b/sdk/cwl/tests/arvados-tests.sh index 4869e3e524..8635aae655 100755 --- a/sdk/cwl/tests/arvados-tests.sh +++ b/sdk/cwl/tests/arvados-tests.sh @@ -12,4 +12,8 @@ fi if ! arv-get 4d8a70b1e63b2aad6984e40e338e2373+69 > /dev/null ; then arv-put --portable-data-hash secondaryFiles/hello.txt* fi +if ! arv-get 20850f01122e860fb878758ac1320877+71 > /dev/null ; then + arv-put --portable-data-hash samples/sample1_S01_R1_001.fastq.gz +fi + exec cwltest --test arvados-tests.yml --tool arvados-cwl-runner $@ -- --disable-reuse --compute-checksum