Skip to content

Commit

Permalink
Add extra bash scripts for grading
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinMeimar committed Jul 29, 2024
1 parent 359684b commit 524aede
Show file tree
Hide file tree
Showing 11 changed files with 311 additions and 992 deletions.
3 changes: 0 additions & 3 deletions include/toolchain/ToolChain.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ class ToolChain {
// Gets a brief description of the toolchain.
std::string getBriefDescription() const;

// Get commands
std::vector<Command>& getCommands() { return commands; }

// Ostream operator.
friend std::ostream& operator<<(std::ostream&, const ToolChain&);

Expand Down
7 changes: 0 additions & 7 deletions src/testharness/TestHarness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ bool TestHarness::runTestsForToolChain(std::string exeName, std::string tcName)
std::cout << "With toolchain: " << tcName << " -> " << toolChain.getBriefDescription() << '\n';

unsigned int toolChainCount = 0, toolChainPasses = 0; // Stat tracking for toolchain tests.
std::vector<TestFile*> failedTests;

// Iterate over each package.
for (auto& [packageName, package] : testSet) {
Expand All @@ -96,7 +95,6 @@ bool TestHarness::runTestsForToolChain(std::string exeName, std::string tcName)
++subPackagePasses;
} else {
failed = true;
failedTests.push_back(test.get());
}
} else {
std::cout << " " << (Colors::YELLOW + "[INVALID]" + Colors::RESET) << " "
Expand Down Expand Up @@ -124,11 +122,6 @@ bool TestHarness::runTestsForToolChain(std::string exeName, std::string tcName)
std::cout << " Skipped: " << test->getTestPath().filename().stem() << std::endl
<< " Error: " << Colors::YELLOW << test->getParseErrorMsg() << Colors::RESET << "\n";
}

for (auto test : failedTests) {
std::cout << " Failed: " << test->getTestPath().filename().stem() << std::endl;
}

std::cout << "\n";

return failed;
Expand Down
Loading

0 comments on commit 524aede

Please sign in to comment.