Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
906f6ac1
Unverified
Commit
906f6ac1
authored
Oct 13, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix all tests to work with embedded data, no CCD
parent
8d96e513
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
test/HEM.cif
+0
-0
test/structure-test.cpp
+4
-2
test/unit-test.cpp
+4
-1
No files found.
test/HEM.cif
0 → 100644
View file @
906f6ac1
This diff is collapsed.
Click to expand it.
test/structure-test.cpp
View file @
906f6ac1
...
...
@@ -60,8 +60,10 @@ BOOST_AUTO_TEST_CASE(init)
gTestDir
=
boost
::
unit_test
::
framework
::
master_test_suite
().
argv
[
1
];
// initialize CCD location
if
(
std
::
filesystem
::
exists
(
gTestDir
/
".."
/
"data"
/
"components.cif"
))
cif
::
addFileResource
(
"components.cif"
,
gTestDir
/
".."
/
"data"
/
"components.cif"
);
if
(
std
::
filesystem
::
exists
(
gTestDir
/
".."
/
"data"
/
"ccd-subset.cif"
))
cif
::
addFileResource
(
"components.cif"
,
gTestDir
/
".."
/
"data"
/
"ccd-subset.cif"
);
mmcif
::
CompoundFactory
::
instance
().
pushDictionary
(
gTestDir
/
"HEM.cif"
);
}
// --------------------------------------------------------------------
...
...
test/unit-test.cpp
View file @
906f6ac1
...
...
@@ -56,9 +56,12 @@ cif::File operator""_cf(const char* text, size_t length)
BOOST_AUTO_TEST_CASE
(
init
)
{
// not a test, just initialize test dir
if
(
boost
::
unit_test
::
framework
::
master_test_suite
().
argc
==
2
)
gTestDir
=
boost
::
unit_test
::
framework
::
master_test_suite
().
argv
[
1
];
// initialize CCD location
if
(
std
::
filesystem
::
exists
(
gTestDir
/
".."
/
"data"
/
"ccd-subset.cif"
))
cif
::
addFileResource
(
"components.cif"
,
gTestDir
/
".."
/
"data"
/
"ccd-subset.cif"
);
}
// --------------------------------------------------------------------
...
...
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