feat: adopt VoidLibrary VL-001..VL-013, self-building build.cpp, live logs, and generated CLI help
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 10s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 10s
This commit is contained in:
1 parent
ab64147f9d
commit
363fb8200e
33 files changed
+1754
-3155
No files matched your search
@@ -35,13 +35,23 @@ foreach(profile IN ITEMS debug release)
|
||||
expect_json(file targets 0 sources 0 kind)
|
||||
expect_json(src/Build.cpp targets 0 sources 0 path)
|
||||
expect_json(public targets 0 include_directories 0 visibility)
|
||||
expect_json(vbs targets 1 name)
|
||||
expect_json(executable targets 1 kind)
|
||||
expect_json(VoidBuildCore targets 1 name)
|
||||
expect_json(static_library targets 1 kind)
|
||||
expect_json(VoidBuildSdk targets 1 links 0 target)
|
||||
expect_json(private targets 1 links 0 visibility)
|
||||
expect_json(public targets 1 links 0 visibility)
|
||||
expect_json(VoidLibrary targets 1 links 1 dependency)
|
||||
expect_json(Void::Configuration targets 1 links 1 target)
|
||||
foreach(index IN ITEMS 0 1)
|
||||
expect_json(GenerateBootstrapConfig targets 2 name)
|
||||
expect_json(custom_action targets 2 kind)
|
||||
expect_json(vbs targets 3 name)
|
||||
expect_json(executable targets 3 kind)
|
||||
expect_json(VoidBuildCore targets 3 links 0 target)
|
||||
expect_json(private targets 3 links 0 visibility)
|
||||
expect_json(VoidBuildRegistry targets 4 name)
|
||||
expect_json(static_library targets 4 kind)
|
||||
expect_json(vbs-registry targets 5 name)
|
||||
expect_json(executable targets 5 kind)
|
||||
foreach(index IN ITEMS 0 1 3 4 5)
|
||||
if(compiler STREQUAL "gcc")
|
||||
expect_json(-Wduplicated-cond targets "${index}" compile_options 2)
|
||||
else()
|
||||
@@ -49,7 +59,7 @@ foreach(profile IN ITEMS debug release)
|
||||
endif()
|
||||
endforeach()
|
||||
expect_json(git dependencies 0 source kind)
|
||||
expect_json(9931c5ffc4844a5e09e1b1db35b3d29c5097c3a5 dependencies 0 source revision)
|
||||
expect_json(3e254055e081a104f08df68dde39711bc7813518 dependencies 0 source revision)
|
||||
expect_json(cmake dependencies 0 builder)
|
||||
string(JSON option_type TYPE "${graph}" dependencies 0 options BUILD_SHARED_LIBS)
|
||||
if(NOT option_type STREQUAL "BOOLEAN")
|
||||
@@ -58,6 +68,13 @@ foreach(profile IN ITEMS debug release)
|
||||
endforeach()
|
||||
endforeach()
|
||||
|
||||
execute_process(COMMAND "${DESCRIBE}" --help
|
||||
RESULT_VARIABLE help_code OUTPUT_VARIABLE help_out ERROR_VARIABLE help_err TIMEOUT 10)
|
||||
if(NOT "${help_code}" STREQUAL "0" OR NOT "${help_err}" STREQUAL "" OR
|
||||
NOT help_out MATCHES "Usage: vbs_describe")
|
||||
message(FATAL_ERROR "vbs_describe --help failed: code=${help_code}\nstdout=[${help_out}]\nstderr=[${help_err}]")
|
||||
endif()
|
||||
|
||||
function(expect_error expected)
|
||||
execute_process(COMMAND "${DESCRIBE}" ${ARGN}
|
||||
RESULT_VARIABLE code OUTPUT_VARIABLE out ERROR_VARIABLE err TIMEOUT 10)
|
||||
@@ -71,5 +88,4 @@ expect_error("unknown compiler 'msvc' (expected gcc or clang)" --compiler msvc)
|
||||
expect_error("option '--profile' requires a value" --profile)
|
||||
expect_error("unknown option: --invalid" --invalid)
|
||||
expect_error("unexpected positional argument: invalid" invalid)
|
||||
expect_error("--help must be used alone" --help --invalid)
|
||||
message(STATUS "Four runtime profile/compiler contexts and six error contracts verified")
|
||||
message(STATUS "Four runtime profile/compiler contexts, generated help, and five error contracts verified")
|
||||
Reference in new issue
Block a user