find nunit location automagically
This commit is contained in:
parent
2bf5acd26c
commit
4826a70883
1 changed files with 9 additions and 2 deletions
|
|
@ -39,7 +39,14 @@ dotnettestenv = dotnetenv.Clone()
|
||||||
|
|
||||||
#dotnettestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
#dotnettestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
||||||
#dotnettests = ['t/hammer.t']
|
#dotnettests = ['t/hammer.t']
|
||||||
dotnettestenv.Append(CILLIBS=['/usr/lib/cli/nunit.core-2.6/nunit.core.dll','/usr/lib/cli/nunit.util-2.6/nunit.util.dll','/usr/lib/cli/nunit.framework-2.6/nunit.framework.dll','/usr/lib/cli/nunit.core.interfaces-2.6/nunit.core.interfaces.dll', thisdir + "/hammer.dll"])
|
|
||||||
|
def makeCIL(env, cmd):
|
||||||
|
libs = cmd.split(' ')
|
||||||
|
for lib in libs:
|
||||||
|
env.Append(CILLIBS=[lib[3:]])
|
||||||
|
|
||||||
|
dotnettestenv.ParseConfig('pkg-config --libs nunit', makeCIL)
|
||||||
|
dotnettestenv.Append(CILLIBS=[thisdir + "/hammer.dll"])
|
||||||
dotnettestlib = dotnettestenv.CLILibrary('hammer_test.dll', Glob('test/*.cs'))
|
dotnettestlib = dotnettestenv.CLILibrary('hammer_test.dll', Glob('test/*.cs'))
|
||||||
Depends(dotnettestlib, hammer_dll)
|
Depends(dotnettestlib, hammer_dll)
|
||||||
|
|
||||||
|
|
@ -49,7 +56,7 @@ Depends(dotnettestlib, hammer_dll)
|
||||||
Depends(dotnettestlib, libhammer_dotnet)
|
Depends(dotnettestlib, libhammer_dotnet)
|
||||||
dotnettest = Alias("testdotnet", [dotnettestexec], dotnettestexec)
|
dotnettest = Alias("testdotnet", [dotnettestexec], dotnettestexec)
|
||||||
AlwaysBuild(dotnettestexec)
|
AlwaysBuild(dotnettestexec)
|
||||||
testruns.append(dotnettestlib)
|
testruns.extend(dotnettestlib)
|
||||||
|
|
||||||
#dotnetinstallexec = dotnetenv.Command(None, libhammer_dotnet, "make install -C " + targetdir)
|
#dotnetinstallexec = dotnetenv.Command(None, libhammer_dotnet, "make install -C " + targetdir)
|
||||||
#dotnetinstall = Alias("installdotnet", [dotnetinstallexec], dotnetinstallexec)
|
#dotnetinstall = Alias("installdotnet", [dotnetinstallexec], dotnetinstallexec)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue