Skip to content
Snippets Groups Projects
Commit a02d995c authored by Amorilia's avatar Amorilia
Browse files

moved all testing files to new directory

parent 9d8166db
No related branches found
No related tags found
No related merge requests found
......@@ -385,11 +385,14 @@ blender/blender_niflib.cpp
# (SCons bug: SharedLibrary should also build .lib file, but this is broken; so for now just build static one)
niflib = env.StaticLibrary('niflib', [core_objfiles, gen_objfiles, obj_objfiles, NvTriStrip_files, TriStripper_files] , LIBPATH='.', CPPPATH = '.')
Export('env python_lib python_libpath python_include niflib')
# build Python wrapper
if PYWRAP:
SConscript('swig/SConscript' , exports=['env', 'python_lib', 'python_libpath', 'python_include', 'niflib', 'TEST'])
niflib_swig = SConscript('swig/SConscript')
Export('niflib_swig')
# A test program:
if TEST:
env.Program('niflib_test', 'niflib_test.cpp', LIBS=[niflib], LIBPATH=['.'])
SConscript('test/SConscript')
......@@ -2,8 +2,4 @@ Import('*')
niflib_python = env.SharedLibrary('_niflib', 'pyniflib.i', LIBS=[niflib] + python_lib, LIBPATH = python_libpath, SWIGFLAGS = '-c++ -python', CPPPATH = ['.'] + python_include, SHLIBPREFIX='')
if TEST:
import unittest
import niflib_test
unittest.main(niflib_test)
Return('niflib_python')
File moved
import unittest
import niflib_test
import os
# run test.cpp
os.system("test")
# run python tests
unittest.main(niflib_test)
#include <cassert>
#include "include/niflib.h"
#include "include/obj/NiNode.h"
#include "../include/niflib.h"
#include "../include/obj/NiNode.h"
using namespace Niflib;
using namespace std;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment