<div dir="ltr">On 28 February 2018 at 02:51, Anuj Mittal <span dir="ltr">&lt;<a href="mailto:anuj.mittal@intel.com" target="_blank">anuj.mittal@intel.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">+diff --git a/Makefile.am b/Makefile.am<br>
+index de057c4..42e90fe 100644<br>
+--- a/Makefile.am<br>
++++ b/Makefile.am<br>
+@@ -96,6 +96,9 @@ check-torture:<br>
+<br>
+ build-checks:<br>
+       $(MAKE) -C tests/check build-checks<br>
++<br>
++install-ptest:<br>
++      $(MAKE) -C tests/check DESTDIR=$(DESTDIR) $@<br>
+ else<br>
+ check-valgrind:<span style="color:rgb(34,34,34)"> </span></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">+       echo &quot;&#39;check&#39; library not installed, skipping&quot;<br>
</div></div></blockquote><div> </div><div>I&#39;d say not to bother patching the top-level and instead call the right makefile from do_install_ptest.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">++install-ptest: $(TESTS)<br>
++      @$(INSTALL) -d $(DESTDIR)<br>
++      @for dir in gst libs tools pipelines elements generic; do \<br>
++              if [ -x $$dir/.libs ]; then \<br>
++                      $(INSTALL) -d $(DESTDIR)/$$dir; \<br>
++                      $(INSTALL_PROGRAM) $$dir/.libs/* $(DESTDIR)/$$dir/; \<br>
++              fi \<br>
++      done<br></div></div></blockquote><div><br></div><div>Can this do string functions on TESTS instead of hard-coding the list of directories?</div><div><br></div><div>Ross</div></div></div></div>