You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started this thread for discussing the current and future systest scripts.
The next script I can upload, which doesn't depend on other scripts, is lgp. Its purpose is to run link-grammar Python programs. By default, it runs tests.py. So I just type lgp in the branch I would like to test (it uses the branch's binaries, not the system's ones).
It sets PYTHONPATH to the branch's Pythos stuff.
It sets the LD_LIBRARY_PATH to the branch's dynamic library (including setting DLL / dylib on MinGW/Cygwin/macOS).
It sets LD_PRELOAD to use the libasan/libubsun if available so the Python and the LG library will be able to use them.
It may pass arguments to Python and/or the running script.
lgp log shows the test's log.
$ lgp --help
#%DESC Run a Python script (default is tests.py)
Flags:
--: End of "lgp" flags (next arguments are for the Python script)
-s: Python program (default "bindings/python-examples/tests.py", interactive if an empty string)
-p: Python interpreter (default "python")
-S: Don't use LSAN suppression file
-D: Run under "gdb"
-*: Pass these flags to Python (-mpdb to debug)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I started this thread for discussing the current and future
systest
scripts.The next script I can upload, which doesn't depend on other scripts, is
lgp
. Its purpose is to run link-grammar Python programs. By default, it runstests.py
. So I just typelgp
in the branch I would like to test (it uses the branch's binaries, not the system's ones).libasan
/libubsun
if available so the Python and the LG library will be able to use them.lgp log
shows the test's log.Beta Was this translation helpful? Give feedback.
All reactions