Skip to content

Commit fe9dc4e

Browse files
authored
test: add test to bash script to check params are set
1 parent b49ac99 commit fe9dc4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_script/scripts/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
test "${snakemake_params[string]}" = "foo"
4+
35
echo "The first input file is ${snakemake_input[0]}" > "${snakemake_output[0]}" 2> "${snakemake_log[0]}"
46
echo "The named input file is ${snakemake_input[named]}" >> "${snakemake_output[0]}" 2>> "${snakemake_log[0]}"
57
echo "The requested number of threads is ${snakemake[threads]}" >> "${snakemake_output[0]}" 2>> "${snakemake_log[0]}"

0 commit comments

Comments
 (0)