mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
JSSpecCompiler: Add our first test :^)
This commit is contained in:
parent
107a3b44fa
commit
00928764e9
4 changed files with 138 additions and 1 deletions
|
@ -29,7 +29,17 @@ constexpr StringView stderr_capture_filename = "stderr"sv;
|
|||
constexpr StringView compiler_binary_name = "JSSpecCompiler"sv;
|
||||
constexpr StringView relative_path_to_test = "Tests"sv;
|
||||
|
||||
Array<TestDescription, 0> const regression_tests = {};
|
||||
constexpr TestDescription::Flag always_dump_ast = {
|
||||
.name = "all"sv,
|
||||
.dump_ast = true,
|
||||
};
|
||||
|
||||
const Array regression_tests = {
|
||||
TestDescription {
|
||||
.sources = { "simple.cpp"sv },
|
||||
.flags = { always_dump_ast },
|
||||
},
|
||||
};
|
||||
|
||||
static const LexicalPath path_to_compiler_binary = [] {
|
||||
auto path_to_self = LexicalPath(MUST(Core::System::current_executable_path())).parent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue