Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
e226bfc3
Commit
e226bfc3
authored
Dec 13, 2015
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests updated to vs2015
parent
7bf45bcf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
10 deletions
+18
-10
tests/file_helper.cpp
tests/file_helper.cpp
+1
-1
tests/file_log.cpp
tests/file_log.cpp
+2
-2
tests/tests.vcxproj
tests/tests.vcxproj
+7
-5
tests/tests.vcxproj.filters
tests/tests.vcxproj.filters
+6
-0
tests/utils.cpp
tests/utils.cpp
+1
-1
tests/utils.h
tests/utils.h
+1
-1
No files found.
tests/file_helper.cpp
View file @
e226bfc3
...
...
@@ -36,7 +36,7 @@ TEST_CASE("file_helper_size", "[file_helper::size()]]")
write_with_helper
(
helper
,
expected_size
);
REQUIRE
(
helper
.
size
()
==
expected_size
);
}
REQUIRE
(
filesize
(
filename
)
==
expected_size
);
REQUIRE
(
get_
filesize
(
filename
)
==
expected_size
);
}
...
...
tests/file_log.cpp
View file @
e226bfc3
...
...
@@ -52,9 +52,9 @@ TEST_CASE("rotating_file_logger2", "[rotating_logger]]")
logger
->
info
(
"Test message {}"
,
i
);
logger
->
flush
();
REQUIRE
(
filesize
(
filename
)
<=
1024
);
REQUIRE
(
get_
filesize
(
filename
)
<=
1024
);
auto
filename1
=
basename
+
".1.txt"
;
REQUIRE
(
filesize
(
filename1
)
<=
1024
);
REQUIRE
(
get_
filesize
(
filename1
)
<=
1024
);
}
...
...
tests/tests.vcxproj
View file @
e226bfc3
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"1
2
.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"1
4
.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup
Label=
"ProjectConfigurations"
>
<ProjectConfiguration
Include=
"Debug|Win32"
>
<Configuration>
Debug
</Configuration>
...
...
@@ -26,26 +26,26 @@
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
Application
</ConfigurationType>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
v1
2
0
</PlatformToolset>
<PlatformToolset>
v1
4
0
</PlatformToolset>
<CharacterSet>
MultiByte
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
Label=
"Configuration"
>
<ConfigurationType>
Application
</ConfigurationType>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
v1
2
0
</PlatformToolset>
<PlatformToolset>
v1
4
0
</PlatformToolset>
<CharacterSet>
MultiByte
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
Application
</ConfigurationType>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
v1
2
0
</PlatformToolset>
<PlatformToolset>
v1
4
0
</PlatformToolset>
<WholeProgramOptimization>
true
</WholeProgramOptimization>
<CharacterSet>
MultiByte
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
Label=
"Configuration"
>
<ConfigurationType>
Application
</ConfigurationType>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
v1
2
0
</PlatformToolset>
<PlatformToolset>
v1
4
0
</PlatformToolset>
<WholeProgramOptimization>
true
</WholeProgramOptimization>
<CharacterSet>
MultiByte
</CharacterSet>
</PropertyGroup>
...
...
@@ -126,10 +126,12 @@
<ClCompile
Include=
"format.cpp"
/>
<ClCompile
Include=
"main.cpp"
/>
<ClCompile
Include=
"registry.cpp"
/>
<ClCompile
Include=
"utils.cpp"
/>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"catch.hpp"
/>
<ClInclude
Include=
"includes.h"
/>
<ClInclude
Include=
"utils.h"
/>
</ItemGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
...
...
tests/tests.vcxproj.filters
View file @
e226bfc3
...
...
@@ -30,6 +30,9 @@
<ClCompile
Include=
"file_helper.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
<ClCompile
Include=
"utils.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"includes.h"
>
...
...
@@ -38,5 +41,8 @@
<ClInclude
Include=
"catch.hpp"
>
<Filter>
Header Files
</Filter>
</ClInclude>
<ClInclude
Include=
"utils.h"
>
<Filter>
Header Files
</Filter>
</ClInclude>
</ItemGroup>
</Project>
\ No newline at end of file
tests/utils.cpp
View file @
e226bfc3
...
...
@@ -34,7 +34,7 @@ std::size_t count_lines(const std::string& filename)
return
counter
;
}
std
::
ifstream
::
pos_type
filesize
(
const
std
::
string
&
filename
)
std
::
size_t
get_
filesize
(
const
std
::
string
&
filename
)
{
std
::
ifstream
ifs
(
filename
,
std
::
ifstream
::
ate
|
std
::
ifstream
::
binary
);
if
(
!
ifs
)
...
...
tests/utils.h
View file @
e226bfc3
...
...
@@ -11,5 +11,5 @@ std::string file_contents(const std::string& filename);
std
::
size_t
count_lines
(
const
std
::
string
&
filename
);
std
::
ifstream
::
pos_type
filesize
(
const
std
::
string
&
filename
);
std
::
size_t
get_
filesize
(
const
std
::
string
&
filename
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment