-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathclutil.feature
48 lines (46 loc) · 1.28 KB
/
clutil.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Feature: clutil command
Scenario: Install modules in a repository
When I run the following commands:
"""
CLOE_PATH=$PWD/.cloe clutil install https://github.com/cloe-lang/examples
"""
Then I run the following commands:
"""
PATH=$PWD/.cloe/bin:$PATH hello
"""
And the exit status should be 0
And the output should contain "Hello, world!"
Scenario: Update repositories in a language directory
Given I run the following commands:
"""
CLOE_PATH=$PWD/.cloe clutil install https://github.com/cloe-lang/examples
"""
When I run the following commands:
"""
CLOE_PATH=$PWD/.cloe clutil update
"""
And the exit status should be 0
Scenario: Clean up a language directory
Given I run the following commands:
"""
CLOE_PATH=$PWD/.cloe clutil install https://github.com/cloe-lang/examples
"""
And I run the following commands:
"""
ls $PWD/.cloe
"""
And the exit status should be 0
When I run the following commands:
"""
CLOE_PATH=$PWD/.cloe clutil clean
"""
Then I run the following commands:
"""
ls $PWD/.cloe/src
"""
And the exit status should not be 0
And I run the following commands:
"""
ls $PWD/.cloe/bin
"""
And the exit status should not be 0