
# change directory to the test sets root directory cd tests For example, assuming that you will be using YAP as backend Prolog compiler, the contents of your ~/.profile file would contain something like:

You will also need to add the $LOGTALKHOME/scripts and $LOGTALKHOME/integration directories plus the backend Prolog compiler executable directories to the system path environment variable. After installation, you can start the bash shell by selecting Git Bash from the context menu. In alternative to the logtalk_tester.ps1 PowerShell script, it’s also possible to use the logtalk_tester.sh Bash script on Windows operating-systems by installing either the Windows Subsystem for Linux (WSL) or Git for Windows, which includes a bash shell implementation. These issues can only be fixed by the developers of those Prolog compilers. The most common issues are non-standard exception handling and syntax errors due to parser bugs. Note that, when running the unit tests using stable Logtalk releases, failed tests usually result from bugs in the backend Prolog compilers or from their lack of compliance with official and de facto standards. Also, running the tests in optimal mode may flag errors not reported when running in normal mode due to e.g. Be aware, however, that running the unit tests in debug mode will be slower compared with the other two modes. The logtalk_tester accepts an option, -m, to set the mode to be used to run the unit tests.
Logtalk cheat sheet code#
Logtalk source code can be compiled in three different modes: optimal, normal, and debug.
