summaryrefslogtreecommitdiff
path: root/yarns/architecture.yarn
blob: d8b1182c2e7356e1e6a6601344bc12b41d03bcc0 (plain)
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
Morph Architecture Tests
========================

    SCENARIO building a system for a different architecture
    GIVEN a git server
    AND a system called base-system-testarch.morph for the test architecture in the git server
    WHEN the user clones definitions
    AND the user attempts to build the system base-system-testarch.morph in branch master
    THEN morph failed
    AND the build error message includes the string "Are you trying to cross-build?"
    FINALLY the git server is shut down

    SCENARIO cross-bootstrapping a system for a different architecture
    GIVEN a git server
    AND a system called base-system-testarch.morph for the test architecture in the git server
    WHEN the user clones definitions
    AND the user attempts to cross-bootstrap the system base-system-testarch.morph in branch master of repo test:definitions to the arch testarch
    THEN morph succeeded
    FINALLY the git server is shut down

    SCENARIO cross-bootstrapping a system for an unknown architecture
    GIVEN a git server
    AND a system called base-system-testarch.morph for the test architecture in the git server
    WHEN the user clones definitions
    AND the user attempts to cross-bootstrap the system base-system-testarch.morph in branch master of repo test:definitions to the arch unknown-archicture
    THEN morph failed
    AND the cross-bootstrap error message includes the string "Unsupported architecture "unknown-archicture"
    FINALLY the git server is shut down

    SCENARIO building a system with no architecture
    GIVEN a git server
    AND a system called base-system-noarch.morph with no architecture in the git server
    WHEN the user clones definitions
    AND the user attempts to build the system base-system-testarch.morph in branch master
    THEN morph failed
    FINALLY the git server is shut down