Skip to content

Commit

Permalink
test(frontend): test TFHE-rs ML example
Browse files Browse the repository at this point in the history
  • Loading branch information
youben11 committed Dec 10, 2024
1 parent a6f5e09 commit 3c77fa0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions frontends/concrete-python/tests/execution/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,15 @@ def test_game_of_life(implementation, dimension, sample_input_output_pairs, help


def test_tfhers_example():
path_to_test_script = tfhers_utils = (
f"{os.path.dirname(os.path.abspath(__file__))}/../../examples/tfhers/"
)
path_to_test_script = f"{os.path.dirname(os.path.abspath(__file__))}/../../examples/tfhers/"
test_script_filename = "test.sh"
assert (
os.system(f"cd {path_to_test_script} && sh {test_script_filename}") == 0
), "test script failed"


def test_tfhers_ml_example():
path_to_test_script = f"{os.path.dirname(os.path.abspath(__file__))}/../../examples/tfhers-ml/"
test_script_filename = "test.sh"
assert (
os.system(f"cd {path_to_test_script} && sh {test_script_filename}") == 0
Expand Down

0 comments on commit 3c77fa0

Please sign in to comment.