[med-svn] [cnrun] 03/14: top Makefile: new target 'test'

andrei zavada hmmr-guest at moszumanska.debian.org
Sat Feb 21 15:07:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository cnrun.

commit 8721c3e10374b63c5d18591b33cab789d7036644
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sat Nov 29 17:07:18 2014 +0200

    top Makefile: new target 'test'
---
 upstream/Makefile.am | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/upstream/Makefile.am b/upstream/Makefile.am
index 1b4d752..6d15c4c 100644
--- a/upstream/Makefile.am
+++ b/upstream/Makefile.am
@@ -17,3 +17,12 @@ endif
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libcnrun.pc
+
+test:
+	(cd doc/examples && \
+	 _cwd=`pwd`; rm -rf _test && mkdir -p _test && cd _test && \
+	 ln -s ../../../src/lua-cnrun/.libs/libcnrun-lua.so cnrun.so && \
+	 ln -s ../m.nml . && \
+	 LUA_CPATH="./?.so;$$LUA_CPATH" \
+	 LD_PRELOAD=../../../src/libcnrun/.libs/libcnrun.so.2.0.0:$$LD_PRELOAD \
+	  lua ../example1.lua; e=$$?; cd $$_cwd && rm -rf _test; exit $$e)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/cnrun.git



More information about the debian-med-commit mailing list