Implement multiplication
This commit is contained in:
1
tests/expectations/multiply.txt
Normal file
1
tests/expectations/multiply.txt
Normal file
@ -0,0 +1 @@
|
||||
10
|
1
tests/multiply.eln
Normal file
1
tests/multiply.eln
Normal file
@ -0,0 +1 @@
|
||||
! 5 * 2
|
@ -35,9 +35,14 @@ namespace elna
|
||||
}
|
||||
}
|
||||
|
||||
static std::filesystem::path in_build_directory()
|
||||
{
|
||||
return "build/riscv";
|
||||
}
|
||||
|
||||
static std::string in_build_directory(const std::filesystem::path& path)
|
||||
{
|
||||
return "build/riscv" / path;
|
||||
return in_build_directory() / path;
|
||||
}
|
||||
|
||||
static int build_test(const std::filesystem::directory_entry& test_entry)
|
||||
@ -136,7 +141,7 @@ namespace elna
|
||||
|
||||
int main()
|
||||
{
|
||||
boost::process::system("rake");
|
||||
std::filesystem::create_directory(elna::in_build_directory());
|
||||
|
||||
std::cout << "Run all tests and check the results" << std::endl;
|
||||
std::filesystem::path test_directory{ "tests" };
|
||||
|
Reference in New Issue
Block a user