Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-s-python

To run this project, you must have python and pip installed in your pc.

sudo apt install python3-pip

Steps

Choose where you wanna clone the repo

I 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/

Setup

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.

Running the Project

Run:

make

to 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 tests

Output

For 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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages