Skip to content

Commit

Permalink
wip for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFola committed Feb 11, 2024
1 parent 8beb04c commit 39da9c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:
shell: bash
run: |
export ASAN_OPTIONS=detect_odr_violation=0
./unittests '*'
./unittests
- name: Unit tests
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion tests/unittests/ASTSuite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ ut::suite<"AST"> ast_suite = [] {
}));

std::string json = compiler.compile();
expect(that % json == Ark::Utils::readFile(expected_path.string()));
std::string expected = Ark::Utils::readFile(expected_path.string());
expect(that % json == expected);
};
}
};
Expand Down
7 changes: 2 additions & 5 deletions tests/unittests/Main.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#include <boost/ut.hpp>

int main(int argc, const char** argv)
int main()
{
using namespace boost;
using namespace boost::ut::literals;
using namespace boost::ut::operators;

ut::expect((argc == 2_i) >> ut::fatal) << "Not enough parameters!";
ut::cfg<ut::override> = { .filter = argv[1] };
ut::cfg<ut::override> = { .filter = "*" };
return ut::cfg<ut::override>.run();
}

0 comments on commit 39da9c0

Please sign in to comment.