Compare commits
1 Commits
2da70f051d
...
09c92d666c
Author | SHA1 | Date | |
---|---|---|---|
09c92d666c |
@ -548,45 +548,45 @@ void entry_point(Slice<char* const> arguments, Slice<char* const> envp)
|
|||||||
|
|
||||||
bool has_debug_info_array[] = {true, false};
|
bool has_debug_info_array[] = {true, false};
|
||||||
|
|
||||||
// for (auto name: names)
|
for (auto name: names)
|
||||||
// {
|
{
|
||||||
// for (BuildMode build_mode = BuildMode::debug_none; build_mode < BuildMode::count; build_mode = (BuildMode)((backing_type(BuildMode))build_mode + 1))
|
for (BuildMode build_mode = BuildMode::debug_none; build_mode < BuildMode::count; build_mode = (BuildMode)((backing_type(BuildMode))build_mode + 1))
|
||||||
// {
|
{
|
||||||
// for (bool has_debug_info : has_debug_info_array)
|
for (bool has_debug_info : has_debug_info_array)
|
||||||
// {
|
{
|
||||||
// auto position = arena->position;
|
auto position = arena->position;
|
||||||
//
|
|
||||||
// String relative_file_path_parts[] = { string_literal("tests/"), name, string_literal(".bbb") };
|
String relative_file_path_parts[] = { string_literal("tests/"), name, string_literal(".bbb") };
|
||||||
// auto relative_file_path = arena_join_string(arena, array_to_slice(relative_file_path_parts));
|
auto relative_file_path = arena_join_string(arena, array_to_slice(relative_file_path_parts));
|
||||||
//
|
|
||||||
// auto executable_path = compile_file(arena, {
|
auto executable_path = compile_file(arena, {
|
||||||
// .relative_file_path = relative_file_path,
|
.relative_file_path = relative_file_path,
|
||||||
// .build_mode = build_mode,
|
.build_mode = build_mode,
|
||||||
// .has_debug_info = has_debug_info,
|
.has_debug_info = has_debug_info,
|
||||||
// .silent = true,
|
.silent = true,
|
||||||
// });
|
});
|
||||||
//
|
|
||||||
// char* const arguments[] =
|
char* const arguments[] =
|
||||||
// {
|
{
|
||||||
// (char*)executable_path.pointer,
|
(char*)executable_path.pointer,
|
||||||
// 0,
|
0,
|
||||||
// };
|
};
|
||||||
// Slice<char* const> arg_slice = array_to_slice(arguments);
|
Slice<char* const> arg_slice = array_to_slice(arguments);
|
||||||
// arg_slice.length -= 1;
|
arg_slice.length -= 1;
|
||||||
// auto execution = os_execute(arena, arg_slice, environment, {});
|
auto execution = os_execute(arena, arg_slice, environment, {});
|
||||||
// auto success = execution.termination_kind == TerminationKind::exit && execution.termination_code == 0;
|
auto success = execution.termination_kind == TerminationKind::exit && execution.termination_code == 0;
|
||||||
// if (!success)
|
if (!success)
|
||||||
// {
|
{
|
||||||
// print(string_literal("Test failed: "));
|
print(string_literal("Test failed: "));
|
||||||
// print(executable_path);
|
print(executable_path);
|
||||||
// print(string_literal("\n"));
|
print(string_literal("\n"));
|
||||||
// bb_fail();
|
bb_fail();
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// arena_restore(arena, position);
|
arena_restore(arena, position);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
for (BuildMode compiler_build_mode = BuildMode::debug_none; compiler_build_mode < BuildMode::count; compiler_build_mode = (BuildMode)((backing_type(BuildMode))compiler_build_mode + 1))
|
for (BuildMode compiler_build_mode = BuildMode::debug_none; compiler_build_mode < BuildMode::count; compiler_build_mode = (BuildMode)((backing_type(BuildMode))compiler_build_mode + 1))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user