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
ce100cdc
Commit
ce100cdc
authored
Oct 06, 2014
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(test): перевёл запуск тестов на (autools)"make check"
parent
e27c65f9
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
17 deletions
+35
-17
catch-test-run.sh
Utilities/scripts/catch-test-run.sh
+3
-0
configure.ac
configure.ac
+9
-0
Makefile.am
extensions/Makefile.am
+0
-2
Calibration.cc
extensions/lib/Calibration.cc
+3
-2
Makefile.am
extensions/tests/Makefile.am
+6
-1
Makefile.am
tests/Makefile.am
+13
-2
tests_with_conf.sh
tests/tests_with_conf.sh
+1
-1
uitest.sh
tests/uitest.sh
+0
-9
No files found.
Utilities/scripts/catch-test-run.sh
0 → 100755
View file @
ce100cdc
#!/bin/sh
exec
$1
${
CATCH_TEST_ARGS
}
-o
$1
.test.log 1>/dev/null 2>/dev/null
configure.ac
View file @
ce100cdc
...
@@ -12,6 +12,15 @@ AC_CONFIG_HEADER(uniset-config.h)
...
@@ -12,6 +12,15 @@ AC_CONFIG_HEADER(uniset-config.h)
dnl Initialize maintainer mode
dnl Initialize maintainer mode
AM_MAINTAINER_MODE
AM_MAINTAINER_MODE
dnl Initialize test suite
#CATCH_TEST_ARGS="-s"
CATCH_TEST_ARGS=
AC_SUBST(CATCH_TEST_ARGS)
TESTS_ENVIRONMENT="CATCH_TEST_ARGS=\"${CATCH_TEST_ARGS}\" \$(top_builddir)/Utilities/scripts/catch-test-run.sh"
AC_SUBST(TESTS_ENVIRONMENT)
dnl Checks for programs.
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_CC
...
...
extensions/Makefile.am
View file @
ce100cdc
...
@@ -16,5 +16,3 @@ pkgconfig_DATA = libUniSet2Extensions.pc
...
@@ -16,5 +16,3 @@ pkgconfig_DATA = libUniSet2Extensions.pc
else
else
SUBDIRS
=
SUBDIRS
=
endif
endif
extensions/lib/Calibration.cc
View file @
ce100cdc
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include "UniXML.h"
#include "UniXML.h"
#include "Exceptions.h"
#include "Exceptions.h"
#include "Calibration.h"
#include "Calibration.h"
#include "Extensions.h"
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
using
namespace
std
;
using
namespace
std
;
using
namespace
UniSetTypes
;
using
namespace
UniSetTypes
;
...
@@ -188,7 +189,7 @@ void Calibration::build( const string& name, const string& confile, xmlNode* roo
...
@@ -188,7 +189,7 @@ void Calibration::build( const string& name, const string& confile, xmlNode* roo
if
(
p
.
x
==
0
||
p
.
y
==
0
)
if
(
p
.
x
==
0
||
p
.
y
==
0
)
{
{
cerr
<<
myname
<<
"(Calibration::build): (warn) x="
dwarn
<<
myname
<<
"(Calibration::build): (warn) x="
<<
p
.
x
<<
" y="
<<
p
.
y
<<
endl
;
<<
p
.
x
<<
" y="
<<
p
.
y
<<
endl
;
}
}
...
@@ -233,7 +234,7 @@ void Calibration::build( const string& name, const string& confile, xmlNode* roo
...
@@ -233,7 +234,7 @@ void Calibration::build( const string& name, const string& confile, xmlNode* roo
}
}
catch
(
Exception
&
ex
)
catch
(
Exception
&
ex
)
{
{
cerr
<<
myname
<<
"(Calibration::build): Failed open "
<<
confile
<<
endl
;
dcrit
<<
myname
<<
"(Calibration::build): Failed open "
<<
confile
<<
endl
;
throw
;
throw
;
}
}
}
}
...
...
extensions/tests/Makefile.am
View file @
ce100cdc
SUBDIR
=
SMemoryTest
SUBDIR
=
SMemoryTest
noinst_PROGRAMS
=
tests tests_with_conf tests_with_sm
#noinst_PROGRAMS = tests tests_with_conf tests_with_sm
check_PROGRAMS
=
tests tests_with_conf tests_with_sm
TESTS
=
tests tests_with_conf.sh tests_with_sm.sh
tests_SOURCES
=
tests.cc digitalfilter.cc
tests_SOURCES
=
tests.cc digitalfilter.cc
tests_LDADD
=
$(top_builddir)
/lib/libUniSet2.la
$(top_builddir)
/extensions/lib/libUniSet2Extensions.la
tests_LDADD
=
$(top_builddir)
/lib/libUniSet2.la
$(top_builddir)
/extensions/lib/libUniSet2Extensions.la
...
@@ -16,3 +19,5 @@ tests_with_sm_LDADD = $(top_builddir)/lib/libUniSet2.la $(top_builddir)/exte
...
@@ -16,3 +19,5 @@ tests_with_sm_LDADD = $(top_builddir)/lib/libUniSet2.la $(top_builddir)/exte
tests_with_sm_CPPFLAGS
=
-I
$(top_builddir)
/include
-I
$(top_builddir)
/extensions/include
-I
$(includedir)
/Catch
\
tests_with_sm_CPPFLAGS
=
-I
$(top_builddir)
/include
-I
$(top_builddir)
/extensions/include
-I
$(includedir)
/Catch
\
-I
$(top_builddir)
/extensions/SharedMemory
$(SIGC_CFLAGS)
$(COMCPP_CFLAGS)
-I
$(top_builddir)
/extensions/SharedMemory
$(SIGC_CFLAGS)
$(COMCPP_CFLAGS)
clean-local
:
rm
-rf
*
.log
tests/Makefile.am
View file @
ce100cdc
...
@@ -2,8 +2,13 @@
...
@@ -2,8 +2,13 @@
# This file is part of the UniSet library #
# This file is part of the UniSet library #
############################################################################
############################################################################
noinst_PROGRAMS
=
tests tests_with_conf
check_PROGRAMS
=
tests tests_with_conf
#ui umutex sscanf_hexthreadtst dlog
#TESTS_ENVIRONMENT = CATCH_TEST_ARGS="$(CATCH_TEST_ARGS)" ./test-run.sh
TESTS
=
tests tests_with_conf.sh
EXTRA_DIR
=
$(TESTS)
#umutex sscanf_hexthreadtst dlog
tests_SOURCES
=
tests.cc passivetimer.cc hourglass.cc delaytimer.cc unixml.cc
tests_SOURCES
=
tests.cc passivetimer.cc hourglass.cc delaytimer.cc unixml.cc
tests_LDADD
=
$(top_builddir)
/lib/libUniSet2.la
tests_LDADD
=
$(top_builddir)
/lib/libUniSet2.la
...
@@ -31,3 +36,9 @@ tests_with_conf_CPPFLAGS = -I$(top_builddir)/include -I$(includedir)/Catch
...
@@ -31,3 +36,9 @@ tests_with_conf_CPPFLAGS = -I$(top_builddir)/include -I$(includedir)/Catch
# dlog_LDADD = $(top_builddir)/lib/libUniSet2.la ${SIGC_LIBS} $(COMCPP_LIBS)
# dlog_LDADD = $(top_builddir)/lib/libUniSet2.la ${SIGC_LIBS} $(COMCPP_LIBS)
# dlog_CPPFLAGS = -I$(top_builddir)/include ${SIGC_CFLAGS} $(COMCPP_CFLAGS)
# dlog_CPPFLAGS = -I$(top_builddir)/include ${SIGC_CFLAGS} $(COMCPP_CFLAGS)
#
#
testdir
=
$(top_builddir)
/tests
#check-local: tests tests_with_conf
# $(SHELL) $(testdir)/tests 2>/dev/null
# $(SHELL) $(testdir)/tests_with_conf -- --confile $(testdir)/tests_with_conf.xml --prop-id2 -10 --ulog-no-debug 2>/dev/null
tests/tests_with_conf.sh
View file @
ce100cdc
#!/bin/sh
#!/bin/sh
# '--' - нужен для отделения аоргументов catch, от наших..
# '--' - нужен для отделения аоргументов catch, от наших..
uniset-start.sh
-f
./tests_with_conf
$*
--
--confile
tests_with_conf.xml
--prop-id2
-10
./tests_with_conf
$*
--
--confile
tests_with_conf.xml
--prop-id2
-10
--ulog-no-debug
tests/uitest.sh
deleted
100755 → 0
View file @
e27c65f9
#!/bin/sh
SID
=
$1
[
-z
"
$SID
"
]
&&
SID
=
1
uniset-start.sh
-f
./ui
--confile
test.xml
--sid
$SID
--ulog-add-levels
any
# -ORBtraceLevel 20
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