2019-12-01 12:50:13 +03:00
|
|
|
module main
|
|
|
|
|
2020-04-26 09:32:05 +03:00
|
|
|
import os
|
|
|
|
import testing
|
2019-12-01 12:50:13 +03:00
|
|
|
|
|
|
|
fn main() {
|
2020-12-20 20:01:02 +03:00
|
|
|
args_string := os.args[1..].join(' ')
|
2019-12-05 14:22:54 +03:00
|
|
|
params := args_string.all_before('build-examples')
|
2020-09-08 01:38:24 +03:00
|
|
|
if testing.v_build_failing(params, 'examples') {
|
2019-12-05 00:14:23 +03:00
|
|
|
exit(1)
|
|
|
|
}
|
2020-09-08 01:38:24 +03:00
|
|
|
if testing.v_build_failing(params + '-live', os.join_path('examples', 'hot_reload')) {
|
2019-12-01 12:50:13 +03:00
|
|
|
exit(1)
|
|
|
|
}
|
|
|
|
}
|