Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/rce-incorporated/Fiu into p…
Browse files Browse the repository at this point in the history
…r/Lonegwadiwaitor/44
  • Loading branch information
SnorlaxAssist committed Jul 3, 2024
2 parents a7a049b + 00677a7 commit 8d148d5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ const char* const fiuUnsupportedFlags[] = {
"LuauCompileTypeInfo",
"LuauCompileNoJumpLineRetarget",
};
const char* const fiuUnsupportedExperimentalTests[] = {
"Conformance/Deserializer",
};

TestCompileResult compileTest(string source, Luau::CompileOptions opts, const char* name = "Compiled", bool codegen = false)
{
Expand Down Expand Up @@ -882,6 +885,28 @@ int main(int argc, char* argv[])
else if (strcmp(argv[i], "-fiureadyflags") == 0)
{
fiuRunSupported = true;
std::map<std::string, std::vector<std::string>> filteredTestCases;
for (const auto& section : TestCases)
{
std::vector<std::string> filteredTestFiles;
for (const string& file : section.second)
{
bool supported = true;
for (const char* item : fiuUnsupportedExperimentalTests)
{
if (file.find(item) != string::npos)
{
supported = false;
break;
}
};
if (supported)
filteredTestFiles.push_back(file);
}
filteredTestCases.insert(pair(section.first, filteredTestFiles));
}

TestCases = filteredTestCases;
}
else
{
Expand Down

0 comments on commit 8d148d5

Please sign in to comment.