Merge branch 'lua_versions' into main/rendor-staging
[ryzomcore.git] / nel / tools / nel_unit_test / ut_misc_dynlibload.h
blob1da8c46529667b2157246ecd4ab2636450d62ebc
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef UT_MISC_DYNLIBLOAD
18 #define UT_MISC_DYNLIBLOAD
20 #include <nel/misc/dynloadlib.h>
22 class CUTMiscDynLibLoad : public Test::Suite
24 public:
25 CUTMiscDynLibLoad ()
27 TEST_ADD(CUTMiscDynLibLoad ::libraryNameDecoration)
30 void libraryNameDecoration()
32 string libName = "libmylib_with_dll_so_some_very_bad_rd_df_tag_inside_df";
33 string fileName = "some/path/to/add/difficulties/"+NLMISC::CLibrary::makeLibName(libName);
34 string cleanedName = NLMISC::CLibrary::cleanLibName(fileName);
36 TEST_ASSERT(cleanedName == libName);
40 #endif