Commit Graph
184 Commits
Author SHA1 Message Date
Simon RoseandAndrew Johnson 187801c2e6 Fix MSI tests when INSTALL_LOCATION is set 2025-08-27 09:40:24 -05:00
zimochandAndrew Johnson c3c492d2cd test IVOA in dfanout 2025-08-13 10:02:58 -05:00
zimochandAndrew Johnson bff913e4d1 test new dfanout outputs 2025-08-13 10:02:58 -05:00
zimochandAndrew Johnson 4c40b9f4bb make dfanoutTest processing synchronous 2025-08-13 10:02:58 -05:00
MarcoMontevechiandGitHub ff1fb82ef2 Add dfanout test (#660)
Add dfanout record unit tests

Authored-by: marcofilho <marco.filho@ess.eu>
2025-07-30 10:12:58 -05:00
Simon RoseandAndrew Johnson 43afae523e Remove dbltExpand test
This is an older manual test to compare dbLoadTemplate to compare to
msi's output. However, it does not link properly with dbCore due to
the rewriting of dbLoadRecords, so it is being removed.
2025-06-20 15:45:44 -05:00
Simon RoseandAndrew Johnson b34465add6 Add support for EPICS_DB_INCLUDE_PATH
This allows dbLoadTemplate to search through either a custom-provided
list of paths, or through paths provided by the environment variable
EPICS_DB_INCLUDE_PATH.
2025-06-20 15:45:44 -05:00
Simon Roseandmdavidsaver 72936844ae Silence some error log messages during test runs 2025-05-16 11:39:34 -07:00
Andrew Johnson e13d65f6f5 Remove more uses of DEVSUPFUN that C23 doesn't like 2025-04-17 12:29:05 -05:00
Andrew Johnson eb1263795e Use new DSET and arg's 2025-04-17 11:55:30 -05:00
zimochandAndrew Johnson c75ad2673e no longer need extern "C" { } around epicsExport macros 2025-03-19 11:17:14 -05:00
Andrew Johnson 350570134e Changed dbServerStats() to count the server layers called 2025-03-19 11:03:46 -05:00
Andrew Johnson 72f3e75c8d Add summary stat's calculation 2025-03-19 11:03:46 -05:00
Andrew Johnson fd86f0ff04 Unit tests for dbServerStats() 2025-03-19 11:03:46 -05:00
Michael DavidsaverandAndrew Johnson 9f788996dc db: lock record for db_create_read_log() and dbChannelGetField()
since 27fe3e4468 db_create_read_log()
accesses record fields.

remove now redundant db_create_read_log() calls.
2025-03-19 10:51:08 -05:00
zimochandAndrew Johnson ee1a49045a support CROSS_COMPILER_RUNTESTS_ARCHS other than RTEMS 2025-03-05 10:00:44 -06:00
zimochandMichael Davidsaver 72026a27a0 allow to load the same alias multiple times (unless dbRecordsOnceOnly is set) 2024-12-29 16:35:25 -08:00
Simon RoseandMichael Davidsaver 9fb820b46e Add tests for relative include paths 2024-12-29 16:34:10 -08:00
615ba73044 Rules to generate and install Markdown
Markdown can be generated from .pod and .dbd.pod files.
Markdown will be generated and installed by "make inc".

Co-authored-by: Timo Korhonen <timo.korhonen@ess.eu>
Co-authored-by: Andrew Johnson <anj@anl.gov>
2024-10-02 09:16:29 -05:00
Michael DavidsaverandAndrew Johnson 052a0c7e19 test get_enum_strs() 2024-08-21 10:01:26 -05:00
Hinko KocevarandAndrew Johnson f00de26be1 directory path name is free'd before it is used in testAbort() 2024-08-21 09:48:23 -05:00
Michael DavidsaverandAndrew Johnson 2a5def7fc6 test removal of non-existant record 2024-08-21 09:48:23 -05:00
Hinko KocevarandAndrew Johnson c735de4ff8 fix number of tests to execute 2024-08-21 09:48:23 -05:00
Hinko KocevarandAndrew Johnson bb5423171d remove warning and error messages, fix duplicate flag setting 2024-08-21 09:48:23 -05:00
Hinko KocevarandAndrew Johnson 2f98251c9f add unit tests for record deletion 2024-08-21 09:48:23 -05:00
Andrew Johnson 1e8d49f2a6 Drop debugging diagnostics 2024-08-07 09:54:16 -05:00
Andrew Johnson 31b22fd253 Add test of jlinkz::putValue() to dbPutLinkTest
Add OUTP link field to xRecord
xRecord::process() puts VAL to the OUTP link
jlinkz writes the output value to the record's own PHAS field
Correct the dbFastPutConvertRoutine lookup
Test sets OUTP link, processes record and confirms that PHAS was set
2024-08-07 09:54:16 -05:00
Andrew Johnson 916b17ef3f Fix review comment 2024-08-07 09:54:16 -05:00
Andrew Johnson 437320926b Move declaration back 2024-08-07 09:54:16 -05:00
Andrew Johnson 7890e67d37 Various misc warnings 2024-08-07 09:54:16 -05:00
Andrew Johnson f287cfa2ac Introduce & use FASTCONVERTFUNC with full prototype 2024-08-07 09:54:16 -05:00
Simon RoseandAndrew Johnson beec00b403 Fix issue with compress record
The handling of N-to-M array compression was broken with the addition
of the partial buffer option, which broke the bounds check that was
being used.

Note that this also makes the partial buffer option more consistent;
if, for example, you have
```
record(compress, foo) {
  field(ALG, "N to 1 Average")
  field(INP, "bar NPP")
  field(NSAM, 2)
  field(N, 2)
  field(PBUF, YES)
}
```
(with `bar` having, e.g. length 3), then this will now behave as
expected on both of the samples.
2024-05-29 09:15:35 -05:00
Michael Davidsaver 3d25756065 privatize evSubscrip 2023-09-21 08:18:49 -07:00
Karl VestinandMichael Davidsaver 39b6fa26da Added unit test for binary output record type 2023-07-22 08:32:16 -07:00
Emilio PerezandMichael Davidsaver 500a57738b Validate target record name when creating an alias
This fixes issue #312 by printing an error when a field is specified
2023-07-22 08:29:09 -07:00
Jure VarlecandMichael Davidsaver e11f88017d ts filter: port to the new db_field_log 2023-04-18 09:51:07 -05:00
Jure VarlecandMichael Davidsaver bd1af9ac95 ts filter: fix unused variable warnings 2023-04-18 09:51:07 -05:00
Jure VarlecandMichael Davidsaver c042b08ab0 Extend timestamp filter, giving access to the record timestamp 2023-04-18 09:51:07 -05:00
Michael Davidsaver d3f93746a8 1<<31 upsets ubsan 2023-03-10 10:57:35 +00:00
Brendan ChandlerandMichael Davidsaver 832abbd3b1 Return an error if subrecord processing fails due to bad INP links
If a sub record has an invalid INPx link, it was silently failing (and
not running the proc function).  This change plumbs in the error, so
the put fails and the user knows something went wrong.
2023-03-10 10:56:58 +00:00
Simon RoseandMichael Davidsaver 84d9617375 Added one more put/process to go over the buffer length
Note that it is not really a circular buffer in this case, but
a full reset of the buffer to the beginning. This matches the
documentation, but it seems valuable to add an explicit test for
this case.
2023-03-10 09:51:08 +00:00
Simon RoseandMichael Davidsaver d66e90a016 Fixing 'error C2057: expected constant expression' error 2023-03-10 09:51:08 +00:00
Simon RoseandMichael Davidsaver 373e5440ac General cleanup 2023-03-10 09:51:08 +00:00
Simon RoseandMichael Davidsaver dec23501e1 Added test for array_average 2023-03-10 09:51:08 +00:00
Simon RoseandMichael Davidsaver 11a4bed9aa compress_scalar for average works correctly now 2023-03-10 09:51:08 +00:00
Simon RoseandMichael Davidsaver bf4a4c6b78 Added failing test for partial ai average 2023-03-10 09:51:08 +00:00
Simon RoseandMichael Davidsaver b54d4b9a24 Added test for low value 2023-03-10 09:51:08 +00:00
Simon RoseandMichael Davidsaver 84f4771691 Single input data test passes 2023-03-10 09:51:08 +00:00
Simon RoseandMichael Davidsaver 1dc34a02e2 Add test path for single input data 2023-03-10 09:51:08 +00:00
Simon RoseandMichael Davidsaver 3ab22818da Added failing test for partially filled buffer average 2023-03-10 09:51:08 +00:00