add some dsl examples
This commit is contained in:
23
example/showcase/01-minimal.jdg
Normal file
23
example/showcase/01-minimal.jdg
Normal file
@@ -0,0 +1,23 @@
|
||||
// Минимальный рабочий suite на structured DSL.
|
||||
// Декларируем один toolchain, один build, одну группу с одним тестом.
|
||||
// С этого можно копипастить для новых задач.
|
||||
|
||||
toolchains {
|
||||
gcc { platforms = "linux" }
|
||||
}
|
||||
|
||||
build "release" {
|
||||
language = "c"
|
||||
standard = "c11"
|
||||
sources = "solution.c"
|
||||
output = "solution"
|
||||
profile = release
|
||||
}
|
||||
|
||||
group("basic") {
|
||||
weight = 1.0
|
||||
|
||||
test("hello") {
|
||||
stdout = "Hello, World!\n"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user