summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py')
-rw-r--r--third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py b/third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py
deleted file mode 100644
index b400102d1c..0000000000
--- a/third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py
+++ /dev/null
@@ -1,18 +0,0 @@
-import os
-import ctypes
-from bazel_tools.tools.python.runfiles import runfiles
-import subprocess
-
-r = runfiles.Create()
-
-path = r.Rlocation('io_tweag_rules_haskell/tests/cc_haskell_import/hs-lib-b-wrapped.so')
-
-foreignlib = ctypes.cdll.LoadLibrary(path)
-
-# ATTN: If you remove this print *statement* hs_init will segfault!
-# If you use the python3 print *function*, it will segfault as well!
-# TODO: wtf?
-print foreignlib
-
-foreignlib.hs_init()
-assert(str(foreignlib.add_one_hs(1)) == "2")