Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
d9895407
Commit
d9895407
authored
Aug 11, 2011
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил новый тест: calibration
parent
14528e11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
1 deletion
+51
-1
Makefile.am
tests/Makefile.am
+5
-1
calibration.cc
tests/calibration.cc
+46
-0
No files found.
tests/Makefile.am
View file @
d9895407
...
...
@@ -4,7 +4,7 @@
SUBDIRS
=
JrnTests
noinst_PROGRAMS
=
passivetimer unixml ui umutex conftest iterator_test sscanf_hex
noinst_PROGRAMS
=
passivetimer unixml ui umutex conftest iterator_test sscanf_hex
calibration
passivetimer_SOURCES
=
passivetimer.cc
passivetimer_LDADD
=
$(top_builddir)
/lib/libUniSet.la
...
...
@@ -32,6 +32,10 @@ conftest_CPPFLAGS = -I$(top_builddir)/include
sscanf_hex_SOURCES
=
sscanf_hex.cc
calibration_SOURCES
=
calibration.cc
calibration_LDADD
=
$(top_builddir)
/lib/libUniSet.la
${
SIGC_LIBS
}
calibration_CPPFLAGS
=
-I
$(top_builddir)
/include
${
SIGC_CFLAGS
}
include
$(top_builddir)/conf/setting.mk
tests/calibration.cc
0 → 100644
View file @
d9895407
// --------------------------------------------------------------------------
#include <string>
#include "Debug.h"
#include "Configuration.h"
#include "ORepHelpers.h"
// --------------------------------------------------------------------------
using
namespace
std
;
using
namespace
UniSetTypes
;
// --------------------------------------------------------------------------
int
main
(
int
argc
,
const
char
**
argv
)
{
// if( argc>1 && strcmp(argv[1],"--help")==0 )
// {
// cout << "--confile - Configuration file. Default: test.xml" << endl;
// return 0;
// }
try
{
// string confile = UniSetTypes::getArgParam( "--confile", argc, argv, "test.xml" );
// conf = new Configuration(argc, argv, confile);
for
(
int
i
=-
5
;
i
<
5
;
i
++
)
{
cout
<<
"raw="
<<
(
817
+
i
)
<<
" cal="
<<
lcalibrate
(
817
+
i
,
817
,
4095
,
0
,
400
)
<<
endl
;
}
return
0
;
}
catch
(
SystemError
&
err
)
{
cerr
<<
"(calibration): "
<<
err
<<
endl
;
}
catch
(
Exception
&
ex
)
{
cerr
<<
"(calibration): "
<<
ex
<<
endl
;
}
catch
(...)
{
cerr
<<
"(calibration): catch(...)"
<<
endl
;
}
return
1
;
}
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