File tree 1 file changed +13
-6
lines changed
tests/checks/params-dsl.nf
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
2
2
echo "Test successful run"
3
+ echo
3
4
$NXF_RUN --input ./data &> stdout
4
5
5
- [[ $( grep -c 'params.input = [./data]' stdout) == 1 ]] || false
6
- [[ $( grep -c 'params.save_intermeds = false' stdout) == 1 ]] || false
6
+ < stdout grep -F 'params.input = [./data]'
7
+ < stdout grep -F 'params.save_intermeds = false'
7
8
9
+ echo
8
10
echo "Test missing required param"
11
+ echo
9
12
$NXF_RUN &> stdout
10
13
11
- [[ $( grep -c 'Parameter `input` is required' stdout) == 1 ]] || false
14
+ < stdout grep -F 'Parameter `input` is required'
12
15
16
+ echo
13
17
echo "Test overwrite script param from config profile"
18
+ echo
14
19
$NXF_RUN -c ../../params-dsl.config -profile test &> stdout
15
20
16
- [[ $( grep -c 'params.input = [alpha, beta, delta]' stdout) == 1 ]] || false
17
- [[ $( grep -c 'params.save_intermeds = true' stdout) == 1 ]] || false
21
+ < stdout grep -F 'params.input = [alpha, beta, delta]'
22
+ < stdout grep -F 'params.save_intermeds = true'
18
23
24
+ echo
19
25
echo "Test invalid param"
26
+ echo
20
27
$NXF_RUN --inputs ./data &> stdout
21
28
22
- [[ $( grep -c 'Parameter `inputs` was specified' stdout) == 1 ]] || false
29
+ < stdout grep -F 'Parameter `inputs` was specified'
You can’t perform that action at this time.
0 commit comments