To run this project, you must have python and pip installed in your pc.
sudo apt install python3-pipI have cloned this repo outside my tp directory. Here´s an example:
-
tp-dir/This directory represents the tp folder.bin/tp1.out: Is the executable for tp.
-
this_repo/
After git clone, open Makefile and check if PYTHON and PIP are correclty for your environment.
Open cpp_to_excel.py file and check if those variables are correclty:
excel_file = "data.xlsx"
# Put your path for tp here
relative_tp_path = "../logic-expressions/bin/"
# As this repository and my tp folder are sibling,
# i just have to comeback one folder to hit the parent and then hit the tp folder.
executable_name = "tp1.out"Download the sheets and put it on root.
Run:
maketo install pandas and run the tests.
You just need to run make once. If you just want to run the tests after build, run:
make testsFor each failed test, the output will be
Test "0 | 1 & 2 | ( 3 | 4 )" ee000 failed, expect result was X XXXXX and your output is Y YYYYY
Number of failed tests 1
If everything has passed, the output will be:
Number of failed tests 0