forked from vieter-v/vieter
17 lines
350 B
Coq
17 lines
350 B
Coq
|
module build
|
||
|
|
||
|
import models { GitRepo }
|
||
|
|
||
|
fn test_create_build_script() {
|
||
|
repo := GitRepo{
|
||
|
id: 1
|
||
|
url: 'https://examplerepo.com'
|
||
|
branch: 'main'
|
||
|
repo: 'vieter'
|
||
|
}
|
||
|
build_script := create_build_script('https://example.com', repo, 'x86_64')
|
||
|
expected := $embed_file('build_script.sh')
|
||
|
|
||
|
assert build_script == expected.to_string().trim_space()
|
||
|
}
|