Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
95bc27cc
Commit
95bc27cc
authored
5 years ago
by
Mathieu Tillet
Browse files
Options
Downloads
Patches
Plain Diff
Removed the appendDataSearchSubDir so as not to modify the environment
parent
a9a71456
Branches
27855_ill_loaders_test
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/DataHandling/test/LoadILLTest.h
+23
-36
23 additions, 36 deletions
Framework/DataHandling/test/LoadILLTest.h
with
23 additions
and
36 deletions
Framework/DataHandling/test/LoadILLTest.h
+
23
−
36
View file @
95bc27cc
...
...
@@ -26,19 +26,6 @@ public:
static
LoadILLTest
*
createSuite
()
{
return
new
LoadILLTest
();
}
static
void
destroySuite
(
LoadILLTest
*
suite
)
{
delete
suite
;
}
void
setUp
()
override
{
std
::
string
instrumentPaths
[
12
]
=
{
"ILL/D11/"
,
"ILL/D22/"
,
"ILL/D33/"
,
"ILL/D20/"
,
"ILL/D2B/"
,
"ILL/IN4/"
,
"ILL/IN5/"
,
"ILL/IN6/"
,
"ILL/IN16B/"
,
"ILL/PANTHER/"
,
"ILL/D17/"
,
"ILL/Figaro/"
};
for
(
size_t
i
=
0
;
i
<
12
;
i
++
)
{
ConfigService
::
Instance
().
appendDataSearchSubDir
(
instrumentPaths
[
i
]);
}
ConfigService
::
Instance
().
setFacility
(
"ILL"
);
}
void
tearDown
()
override
{
AnalysisDataService
::
Instance
().
clear
();
}
void
checkLoader
(
std
::
string
filename
,
std
::
string
resultLoader
)
{
...
...
@@ -49,57 +36,57 @@ public:
TS_ASSERT_EQUALS
(
alg
.
getPropertyValue
(
"LoaderName"
),
resultLoader
)
}
void
test_LoadSANS_D11
()
{
checkLoader
(
"010560"
,
"LoadILLSANS"
);
}
void
test_LoadSANS_D11
()
{
checkLoader
(
"
ILL/D11/
010560"
,
"LoadILLSANS"
);
}
void
test_LoadSANS_D33
()
{
checkLoader
(
"002294"
,
"LoadILLSANS"
);
checkLoader
(
"042610"
,
"LoadILLSANS"
);
// D33 TOF
checkLoader
(
"
ILL/D33/
002294"
,
"LoadILLSANS"
);
checkLoader
(
"
ILL/D33/
042610"
,
"LoadILLSANS"
);
// D33 TOF
}
void
test_LoadSANS_D22
()
{
checkLoader
(
"192068"
,
"LoadILLSANS"
);
}
void
test_LoadSANS_D22
()
{
checkLoader
(
"
ILL/D22/
192068"
,
"LoadILLSANS"
);
}
void
test_LoadDiffraction_D2B
()
{
checkLoader
(
"535401"
,
"LoadILLDiffraction"
);
checkLoader
(
"
ILL/D2B/
535401"
,
"LoadILLDiffraction"
);
}
void
test_LoadDiffraction_D20
()
{
checkLoader
(
"967076"
,
"LoadILLDiffraction"
);
checkLoader
(
"967087"
,
"LoadILLDiffraction"
);
checkLoader
(
"
ILL/D20/
967076"
,
"LoadILLDiffraction"
);
checkLoader
(
"
ILL/D20/
967087"
,
"LoadILLDiffraction"
);
}
void
test_loadIndirect_IN16B
()
{
checkLoader
(
"090661"
,
"LoadILLIndirect"
);
// one wing qens
checkLoader
(
"083072"
,
"LoadILLIndirect"
);
// one wing efws
checkLoader
(
"083073"
,
"LoadILLIndirect"
);
// one wing ifws
checkLoader
(
"136558"
,
"LoadILLIndirect"
);
// two wings qens
checkLoader
(
"143720"
,
"LoadILLIndirect"
);
// two wings efws
checkLoader
(
"170300"
,
"LoadILLIndirect"
);
// two wings ifws
checkLoader
(
"215962"
,
"LoadILLIndirect"
);
// bats
checkLoader
(
"
ILL/IN16B/
090661"
,
"LoadILLIndirect"
);
// one wing qens
checkLoader
(
"
ILL/IN16B/
083072"
,
"LoadILLIndirect"
);
// one wing efws
checkLoader
(
"
ILL/IN16B/
083073"
,
"LoadILLIndirect"
);
// one wing ifws
checkLoader
(
"
ILL/IN16B/
136558"
,
"LoadILLIndirect"
);
// two wings qens
checkLoader
(
"
ILL/IN16B/
143720"
,
"LoadILLIndirect"
);
// two wings efws
checkLoader
(
"
ILL/IN16B/
170300"
,
"LoadILLIndirect"
);
// two wings ifws
checkLoader
(
"
ILL/IN16B/
215962"
,
"LoadILLIndirect"
);
// bats
}
void
test_loadTOF_IN4
()
{
checkLoader
(
"084446"
,
"LoadILLTOF"
);
}
void
test_loadTOF_IN4
()
{
checkLoader
(
"
ILL/IN4/
084446"
,
"LoadILLTOF"
);
}
void
test_loadTOF_IN5
()
{
checkLoader
(
"104007"
,
"LoadILLTOF"
);
checkLoader
(
"189171"
,
"LoadILLTOF"
);
checkLoader
(
"
ILL/IN5/
104007"
,
"LoadILLTOF"
);
checkLoader
(
"
ILL/IN5/
189171"
,
"LoadILLTOF"
);
}
void
test_loadTOF_IN6
()
{
checkLoader
(
"164192"
,
"LoadILLTOF"
);
checkLoader
(
"220010"
,
"LoadILLTOF"
);
checkLoader
(
"
ILL/IN6/
164192"
,
"LoadILLTOF"
);
checkLoader
(
"
ILL/IN6/
220010"
,
"LoadILLTOF"
);
}
void
test_loadTOF_PANTHER
()
{
checkLoader
(
"001036"
,
"LoadILLTOF"
);
checkLoader
(
"001723"
,
"LoadILLTOF"
);
checkLoader
(
"
ILL/PANTHER/
001036"
,
"LoadILLTOF"
);
// monochromatic PANTHER
checkLoader
(
"
ILL/PANTHER/
001723"
,
"LoadILLTOF"
);
}
void
test_loadReflectometry_D17
()
{
checkLoader
(
"317370"
,
"LoadILLReflectometry"
);
checkLoader
(
"
ILL/D17/
317370"
,
"LoadILLReflectometry"
);
}
void
test_loadReflectometry_FIGARO
()
{
checkLoader
(
"000002"
,
"LoadILLReflectometry"
);
checkLoader
(
"
ILL/Figaro/
000002"
,
"LoadILLReflectometry"
);
}
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment