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
b2595ed7
Commit
b2595ed7
authored
Feb 11, 2010
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test: conftest
parent
4c0f54da
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
1 deletion
+60
-1
libuniset.spec
conf/libuniset.spec
+3
-0
Makefile.am
tests/Makefile.am
+5
-1
conftest.cc
tests/conftest.cc
+43
-0
conftest.sh
tests/conftest.sh
+9
-0
No files found.
conf/libuniset.spec
View file @
b2595ed7
...
@@ -183,6 +183,9 @@ rm -f %buildroot%_libdir/*.la
...
@@ -183,6 +183,9 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
%changelog
* Thu Feb 04 2010 Pavel Vainerman <pv@altlinux.ru> 0.97-eter53
- new build
* Tue Feb 02 2010 Larik Ishkulov <gentro@etersoft.ru> 0.97-eter52
* Tue Feb 02 2010 Larik Ishkulov <gentro@etersoft.ru> 0.97-eter52
- new build
- new build
...
...
tests/Makefile.am
View file @
b2595ed7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# This file is part of the UniSet library #
# This file is part of the UniSet library #
############################################################################
############################################################################
noinst_PROGRAMS
=
passivetimer unixml ui umutex
noinst_PROGRAMS
=
passivetimer unixml ui umutex
conftest
passivetimer_SOURCES
=
passivetimer.cc
passivetimer_SOURCES
=
passivetimer.cc
passivetimer_LDADD
=
$(top_builddir)
/lib/libUniSet.la
passivetimer_LDADD
=
$(top_builddir)
/lib/libUniSet.la
...
@@ -20,6 +20,10 @@ umutex_SOURCES = umutex.cc
...
@@ -20,6 +20,10 @@ umutex_SOURCES = umutex.cc
umutex_LDADD
=
$(top_builddir)
/lib/libUniSet.la
umutex_LDADD
=
$(top_builddir)
/lib/libUniSet.la
umutex_CPPFLAGS
=
-I
$(top_builddir)
/include
umutex_CPPFLAGS
=
-I
$(top_builddir)
/include
conftest_SOURCES
=
conftest.cc
conftest_LDADD
=
$(top_builddir)
/lib/libUniSet.la
conftest_CPPFLAGS
=
-I
$(top_builddir)
/include
include
$(top_builddir)/conf/setting.mk
include
$(top_builddir)/conf/setting.mk
tests/conftest.cc
0 → 100644
View file @
b2595ed7
// --------------------------------------------------------------------------
//! \version $Id: smemory.cc,v 1.1 2008/12/14 21:57:50 vpashka Exp $
// --------------------------------------------------------------------------
#include <string>
#include "Debug.h"
#include "Configuration.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
);
string
t
(
conf
->
oind
->
getTextName
(
1
));
cout
<<
"**** check getTextName: "
<<
(
t
.
empty
()
?
"FAILED"
:
"OK"
)
<<
endl
;
return
0
;
}
catch
(
SystemError
&
err
)
{
cerr
<<
"(conftest): "
<<
err
<<
endl
;
}
catch
(
Exception
&
ex
)
{
cerr
<<
"(conftest): "
<<
ex
<<
endl
;
}
catch
(...)
{
cerr
<<
"(conftest): catch(...)"
<<
endl
;
}
return
1
;
}
tests/conftest.sh
0 → 100755
View file @
b2595ed7
#!/bin/sh
SID
=
$1
[
-z
"
$SID
"
]
&&
SID
=
1
uniset-start.sh
-f
./conftest
--confile
test.xml
#--unideb-add-levels system,info,level9
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