<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=793526" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/b4n">@b4n</a>, <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=811085" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elextr">@elextr</a>: I just pushed another improvement for the on-hover-evaluation of expressions. It works like suggested by b4n and also allows spaces but it does only work on the current line.</p>
<p>I wanted to write unit tests for the function that parses the current line and extracts the expression to evaluate. But my unit tests don't build. I have setup an extra folder <code>tests</code>. In it are the test files. If I try to build the tests via <code>make check</code> then compilation for the scope unit tests fails because <code>check.h</code> cannot be found. Another thing is that if I remove the comments from <code>scope/tests/Makefile.am</code> then none of the tests source code files is compiled. It now looks like this:</p>
<pre><code>#if UNITTESTS

include $(top_srcdir)/build/vars.build.mk
plugin = scope

check_PROGRAMS = scope-check

scope_check_SOURCES  = unittests.c utils_test.c
scope_check_CPPFLAGS = -DTEST
scope_check_CFLAGS   = $(GEANY_CFLAGS) -DUNITTESTS
scope_check_LDADD    = @GEANY_LIBS@ $(INTLLIBS) @CHECK_LIBS@

TESTS = $(check_PROGRAMS)

#endif
</code></pre>
<p>So it seems that I have overseen one magic autotools switch which is still missing. Any help would be highly appreciated.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/823#issuecomment-466756660">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ3OWq04Hx68kYGcankJxwoK6boZeks5vQmJIgaJpZM4a_kyb">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJxoYsl6ROKT8iO76MuQnNiqfbVu-ks5vQmJIgaJpZM4a_kyb.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-plugins","title":"geany/geany-plugins","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-plugins"}},"updates":{"snippets":[{"icon":"PERSON","message":"@LarsGit223 in #823: @b4n, @elextr: I just pushed another improvement for the on-hover-evaluation of expressions. It works like suggested by b4n and also allows spaces but it does only work on the current line.\r\n\r\nI wanted to write unit tests for the function that parses the current line and extracts the expression to evaluate. But my unit tests don't build. I have setup an extra folder ```tests```. In it are the test files. If I try to build the tests via ```make check``` then compilation for the scope unit tests fails because ```check.h``` cannot be found. Another thing is that if I remove the comments from ```scope/tests/Makefile.am``` then none of the tests source code files is compiled. It now looks like this:\r\n```\r\n#if UNITTESTS\r\n\r\ninclude $(top_srcdir)/build/vars.build.mk\r\nplugin = scope\r\n\r\ncheck_PROGRAMS = scope-check\r\n\r\nscope_check_SOURCES  = unittests.c utils_test.c\r\nscope_check_CPPFLAGS = -DTEST\r\nscope_check_CFLAGS   = $(GEANY_CFLAGS) -DUNITTESTS\r\nscope_check_LDADD    = @GEANY_LIBS@ $(INTLLIBS) @CHECK_LIBS@\r\n\r\nTESTS = $(check_PROGRAMS)\r\n\r\n#endif\r\n```\r\nSo it seems that I have overseen one magic autotools switch which is still missing. Any help would be highly appreciated.\r\n"}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany-plugins/pull/823#issuecomment-466756660"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/823#issuecomment-466756660",
"url": "https://github.com/geany/geany-plugins/pull/823#issuecomment-466756660",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>