mniak/bench

Program not found

Closed this issue · 1 comments

mniak commented

When trying to run test examples from a folder, the program is not built and then it complains that the program was not found.

Example

Files

my-program/
├─main.cpp
└─examples/
    test01.input.txt
    test01.output.txt

main.cpp

#include <iostream>
#include <string>

using namespace std;
void main()
{
    string name;
    getline(cin, name);
    cout << "Hello, " << name << "!" << endl;
}

examples/test01.input.txt

John Doe

examples/test01.output.txt

Hello, John Doe!

Command

bench test examples my-program/

Output

Test test01 running...
program not found

mniak commented
  • _TesterWithFileFinder.Start("my-program/")
  • _FinderOnDirByFilenameAndExtensions["main", "main.sh"].Find("my-program/")

Does not find because there is only the source code.
It should build it before trying to run #28