mniak/bench

Standardize commands

mniak opened this issue · 0 comments

mniak commented

Examples of use

Test

bench test .
bench test app.cpp
bench test app.exe
bench test app     #for linux executables

bench test dir01/
bench test dir01/app.cpp
bench test dir01/app.exe
bench test dir01/app
  • Remove --dir option (PR #9)

  • Allow both executable/interpretable and compilable files

    • When a compilable source file is provided, it must always also compile the program even if the respective compiled version already exists.
      • Add a flag to bypass this like --no-build
bench test examples dir01/app.cpp
bench test examples --no-build dir01/app.cpp
bench test examples dir01/app.exe
  • For now, dont accept any arguments for the tested program (PR #9)
    • Accept later (#8)

Test Examples

bench test examples .
bench test examples /absolute/path
bench test examples dir01/
bench test examples dir01/app.cpp
bench test examples dir01/app.exe
bench test examples dir01/app
  • Allow specification of examples directory
bench test examples --examples test_cases/ dir01/app.cpp