X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=src%2Flibswift%2Ftests%2FSConscript;fp=src%2Flibswift%2Ftests%2FSConscript;h=6b753b1242815de92522f2ee642c8bf52a8d4927;hb=45963a7511531cd1656ad5d3847d2dafd015c54d;hp=0000000000000000000000000000000000000000;hpb=d069796805ad79542fd7e4406d1e9c6d2d8c2ef7;p=swifty.git diff --git a/src/libswift/tests/SConscript b/src/libswift/tests/SConscript new file mode 100644 index 0000000..6b753b1 --- /dev/null +++ b/src/libswift/tests/SConscript @@ -0,0 +1,95 @@ +import sys +import os + +Import("DEBUG") +Import("env") +Import("libs") +Import("libpath") + + +if DEBUG and sys.platform == "win32": + libs = ['libswift','gtestd'] + libs # order is important, crypto needs to be last +else: + libs = ['libswift','gtest'] + libs # order is important, crypto needs to be last + +cpppath = env["CPPPATH"] +if sys.platform == "win32": + cpppath += '..;' +else: + cpppath += '..:' +env.Append(CPPPATH=cpppath) + +env.Program( + target='binstest2', + source=['binstest2.cpp'], + CPPPATH=cpppath, + LIBS=libs, + LIBPATH=libpath+':..' ) + +env.Program( + target='binstest3', + source=['binstest3.cpp'], + CPPPATH=cpppath, + LIBS=libs, + LIBPATH=libpath+':..' ) + +env.Program( + target='dgramtest', + source=['dgramtest.cpp'], + CPPPATH=cpppath, + LIBS=libs, + LIBPATH=libpath+':..' ) + +env.Program( + target='hashtest', + source=['hashtest.cpp'], + CPPPATH=cpppath, + LIBS=libs, + LIBPATH=libpath+':..' ) + +# Arno: must be rewritten to libevent +#env.Program( +# target='ledbattest', +# source=['ledbattest.cpp'], +# CPPPATH=cpppath, +# LIBS=libs, +# LIBPATH=libpath ) + +# Arno: must be rewritten to libevent +#if sys.platform != "win32": +# # Arno: Needs getopt +# env.Program( +# target='ledbattest2', +# source=['ledbattest2.cpp'], +# CPPPATH=cpppath, +# LIBS=libs, +# LIBPATH=libpath ) + +env.Program( + target='freemap', + source=['freemap.cpp'], + CPPPATH=cpppath, + LIBS=libs, + LIBPATH=libpath+':..' ) + +env.Program( + target='bin64test', + source=['bin64test.cpp'], + CPPPATH=cpppath, + LIBS=libs, + LIBPATH=libpath+':..' ) + +env.Program( + target='transfertest', + source=['transfertest.cpp'], + CPPPATH=cpppath, + LIBS=libs, + LIBPATH=libpath+':..' ) + +env.Program( + target='connecttest', + source=['connecttest.cpp'], + CPPPATH=cpppath, + LIBS=libs, + LIBPATH=libpath+':..' ) +