Michael Davidsaver
d2b0e92001
db_close_events cleanup
...
Move cleanup from event thread to caller.
This handles cases (unit tests) where the task
is never started.
The pexitsem flag serves as the indicatior that
the event task was started.
2012-06-29 17:02:23 -04:00
Michael Davidsaver
a103a2434a
dbEvent don't queue dropped events
2012-06-29 17:02:22 -04:00
Michael Davidsaver
e6ae903f2c
notes on db_field_log usage
2012-06-29 17:02:22 -04:00
Michael Davidsaver
aa17f317f8
define more of probe field log
...
plugins don't need to inspect more than
field_type, field_size, and no_elements.
In case they do define type=val to prevent
accidental use of uninitialized pointer.
2012-06-29 17:02:20 -04:00
Andrew Johnson
bde52418b9
Various fixes for vxWorks
...
Provide a separate dbd file for each test.
Don't require a writable filesystem.
Simplfy xRecord.c again.
2012-06-29 10:09:56 -05:00
Michael Davidsaver
2fd6004827
forgot to remove TODO
2012-06-28 13:57:24 -04:00
Michael Davidsaver
4986c184c7
cleanup for dbRegisterFilter()
2012-06-28 13:44:33 -04:00
Michael Davidsaver
683093222a
integer type should be epicsInt32
...
Can't use long for this on 64-bit systems
2012-06-28 10:55:49 -04:00
Michael Davidsaver
61b285a5e3
booleans are stored as char not int
2012-06-28 10:55:48 -04:00
Michael Davidsaver
4a393a428d
fix examples in chfPlugin.h
2012-06-28 10:55:47 -04:00
Michael Davidsaver
8eedb09395
chfPluginTest: more verbose error messages
2012-06-28 10:55:47 -04:00
Michael Davidsaver
4a6216534c
rtems test harness setup to create temp files
...
Apparently the default location for tmp files
doesn't exist in the default IMFS tree.
2012-06-28 10:55:46 -04:00
Michael Davidsaver
39ccbeeb11
Make db unit tests self contained
2012-06-28 10:55:46 -04:00
Michael Davidsaver
026307c06d
db cleanup
...
cleanup to allow database re-load
2012-06-28 10:55:44 -04:00
Andrew Johnson
4eb31d7edc
Fix dbScan bug, add scan period units and checking.
2012-06-27 16:43:15 -05:00
Andrew Johnson
6595ff9518
Clean up some compiler warnings from gcc 4.6
2012-06-26 00:19:10 -05:00
Andrew Johnson
44a70cca5a
merged server-side-plugins branch
2012-06-22 18:16:26 -05:00
Andrew Johnson
42ebafd6ae
merged msi-join branch
2012-06-22 17:53:33 -05:00
Andrew Johnson
fb6dfe6210
merged remove-hpux-artifacts branch
2012-06-22 17:32:10 -05:00
Andrew Johnson
e1e8f56d27
Moved filter plugins, fixed portability issues.
...
The filter plugins are now in src/std/filters
and their tests in the test subdirectory.
Various portability issues found and fixed:
* Variable declarations after statements in a block
* Code assuming that epicsInt32 = long
* // comments in C files
Removed a number of tests that weren't really tests;
preconditions for future tests that don't actually check
the code being tested should call testAbort() if the
condition fails, which tells the test harness that you
meant to die at that point.
Split up lots of very long source lines.
Probably made a few other changes that I forget about now.
2012-06-21 15:27:32 -05:00
Andrew Johnson
2b9d66273c
Merged changes from 3.14 branch.
...
Includes everything up to revno 12343 on 2012-05-21
2012-05-29 16:44:49 -05:00
Andrew Johnson
cdaf05c7ac
db/test: Create a test harness for vxWorks & RTEMS
2012-05-29 16:20:17 -05:00
Michael Davidsaver
458cc17eab
fix filter plugin tests as well
2012-05-24 14:11:10 -04:00
Michael Davidsaver
34800b071f
fix arrTest
...
Don't use compiled in paths
include menuConvert as this is now required at runtime
2012-05-24 14:11:10 -04:00
Michael Davidsaver
20d60bef81
fix db plugin tests
...
Avoid installing xRecord.dbd. This would otherwise be installed
by the DBDINC.
Also must split out recordtype definition from record instance
definition and run the registrar function between the two loads.
This is due to new sanity checks in the loading process
2012-05-24 14:11:09 -04:00
Michael Davidsaver
434f6346fa
registerRecordDeviceDriver needs DBD search path
2012-05-24 14:11:09 -04:00
Michael Davidsaver
386a2f73a7
don't destroy locked mutex
2012-05-24 14:11:08 -04:00
Andrew Johnson
5b228618e1
Merged epicsStdioRedirect.h into epicsStdio.h
2012-05-03 12:19:34 -05:00
Michael Davidsaver
8b2c08f2f6
fix build
2012-04-27 13:25:27 -04:00
Michael Davidsaver
773c277d20
ugly hack to make unit test run
2012-04-27 13:25:26 -04:00
Michael Davidsaver
cb175516d6
fix build after reorg
2012-04-27 13:25:25 -04:00
Michael Davidsaver
ceabe74653
fix test build
2012-04-27 13:25:25 -04:00
Ralph Lange and Michael Davidsaver
948a3feba7
Fix in dbLink.h: Include all used headers
2012-04-27 13:25:19 -04:00
Ralph Lange and Michael Davidsaver
57fc84fef3
dbState: Avoid segfaults when called with NULL pointer
2012-04-27 13:25:18 -04:00
Michael Davidsaver
83586b49d0
Add test code for sync plugin.
2012-04-27 13:25:17 -04:00
Michael Davidsaver
95881525e5
Add sync plugin that uses the db state
2012-04-27 13:25:16 -04:00
Ralph Lange and Michael Davidsaver
c4b54c6d4d
Fix compiler warnings and minor issues.
2012-04-27 13:25:16 -04:00
Michael Davidsaver
4893d0ef8b
Add dbState library that provides a means of synchronizing plugins to events.
2012-04-27 13:25:15 -04:00
Ralph Lange and Michael Davidsaver
77eba53222
Change arr plugin behaviour from exclusive to inclusive range end specifier
2012-04-27 13:25:14 -04:00
Michael Davidsaver
0d9d992717
Add [s:i:e] sub-array shorthand parsing and unit test
2012-04-27 13:25:14 -04:00
Ralph Lange and Michael Davidsaver
ef2814ec44
Fix bug in arr plugin (for incr <= 0), add tests for invalid and out-of-bound parameters
2012-04-27 13:25:13 -04:00
Michael Davidsaver
45a531b167
Add arr plugin for array subsets (+ testcode)
2012-04-27 13:25:07 -04:00
Ralph Lange and Michael Davidsaver
ef4b2e5892
Fix in dbExtractArray.c for DBF_STRING copies with wrap around
2012-04-27 13:25:03 -04:00
Ralph Lange and Michael Davidsaver
0e2a66e721
Fixes and additions in dbExtractArray.c
...
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Add forced write of '\0' to destination to end strings correctly
* Add dbExtractArrayFromBuf() to make array copies from ref type field logs easier
2012-04-27 13:24:54 -04:00
Michael Davidsaver
0b32220e86
Added tests for ts and dbnd plugins, fix in dbnd.c: make local functions static
2012-04-27 13:22:04 -04:00
Ralph Lange and Michael Davidsaver
d2d91a545f
Bunch of minor changes
...
* Fix decorations in chfPlugin.c/.h
* Fix missing include in dbAccessDefs.h
* Beautification in dbChannel.c
2012-04-27 13:22:02 -04:00
Michael Davidsaver
62ba76c71a
Add dbExtractArray to support extracting same type arrays with offset and increment
2012-04-27 13:22:02 -04:00
Michael Davidsaver
0cfe224f47
Add deadband plugin (client defined monitor deadband)
2012-04-27 13:22:01 -04:00
Ralph Lange and Michael Davidsaver
b843a8990a
Fix: don't put dropped event (NULL) on the event queue
2012-04-27 13:22:01 -04:00
Ralph Lange and Michael Davidsaver
444a200b61
Change how ...Show is generated, minor refactoring and fix in ts plugin
2012-04-27 13:22:00 -04:00