Commit Graph

301 Commits

Author SHA1 Message Date
Michael Davidsaver bf571f6eb2 test: check that UTAG is propagated by pvalink 2026-05-24 14:13:25 -07:00
Sang Woo Kim 4f45ffab44 test non-atomic group get must read channel-less Const fields
Add testConstNonAtomicGet(): a non-atomic get of the tst:const group
asserts s.i/s.d/s.s == 14/1.5/"hello". Fails before the fix (all defaults),
passes after.
2026-05-24 14:13:25 -07:00
Michael Davidsaver 5b5ce4b28f test: testConst() not atomic 2026-05-24 14:13:25 -07:00
Michael Davidsaver 485ff0a9da quiet DRD error reports
testget

Complaint is of race between wait and Context cleanup.
shared_ptr<info_t> probably makes this safe, but
no down-side to explicit shutdown.
2026-05-24 14:13:25 -07:00
Michael Davidsaver 9d448164fa testpvalink: more parser coverage 2026-02-27 08:16:23 +00:00
Michael Davidsaver 52186e3587 test cancel of PUT 2026-02-27 08:16:23 +00:00
Michael Davidsaver 1e9a22f9a4 test ackAny 2026-02-27 08:16:23 +00:00
Michael Davidsaver ef40c21d8d test server-side disconnect 2026-02-27 08:16:23 +00:00
Michael Davidsaver 1d182cb031 test iocsh functions 2026-02-27 08:16:23 +00:00
Michael Davidsaver ef7ef0f158 ioc: promote DBE_ALARM only to also fetch value
When a client subscribes to DBE_ALARM only, also
fetch the value associated with the alarm state change.

eg. used by an alarm manager
2026-02-27 08:16:23 +00:00
Michael Davidsaver 70547d1481 testtype: extend 2026-02-27 08:16:23 +00:00
Michael Davidsaver d9a87aa786 testPartialXCode 2026-02-27 08:16:23 +00:00
Michael Davidsaver 3145388df5 testStrMatch wrong argument order 2026-01-27 15:43:31 -08:00
Michael Davidsaver 12eeb42f6b test explicitly typed ANY assignment 2026-01-19 19:16:44 -08:00
Michael Davidsaver 78b0cf4e18 ioc: test PUT to scalar mapping 2026-01-05 14:40:26 -08:00
Michael Davidsaver 7de7ea9459 test open() with no marked fields 2025-10-03 16:53:38 -07:00
Michael Davidsaver 27be80d677 server: clientConfig() avoid mixing TCP and UDP endpoints
interfaces has TCP endpoints, addressList has UDP endpoints.
Take beaconDestinations instead.
2025-10-03 16:53:38 -07:00
Mike Smith 4af3028930 OperationBase::chan is nullptr until Channel is created, check before getting name
have name() return the channel name from OperationBase, not OperationBase::chan::name
2025-10-01 13:08:24 -07:00
Michael Davidsaver 6f47d65735 test for name resolution during *::Config::expand() 2025-10-01 10:21:53 -07:00
Michael Davidsaver 7073538335 fix remote error handling during PUT with autoExec=false 2025-07-13 19:11:28 -07:00
Michael Davidsaver 01c11e16b1 add SockAddr::map6to4() 2025-06-11 15:32:47 -07:00
Michael Davidsaver bd50b9156f testqsingle check asTrapWriteMessage host 2025-06-11 15:32:47 -07:00
Michael Davidsaver a464e9a6eb redesign IfaceMap
Switch to periodic poll on dedicated worker thread
instead of opportunistic poll on use.
2025-06-11 15:32:47 -07:00
Michael Davidsaver 80c63888ed add sendtox
wrapper sendmsg() and WSASendMsg()

Linux and Windows support IPv4 IP_PKTINFO.
BSD, Linux, and Windows support IPV6_PKTINFO

So far RTEMS and OSX, the extra sendto() overrides
will be ignored.
2025-06-11 15:32:47 -07:00
Michael Davidsaver b0b8d60656 rename generated CONFIG_SITE to TOOLCHAIN
No longer generate CONFIG_SITE.Common.$(T_A),
which should never be generated...
2025-06-11 15:32:47 -07:00
Michael Davidsaver e32a752d12 pvalink: test AMSG 2025-04-06 11:21:51 +01:00
Michael Davidsaver 020ee6ebfe testsock: show runtime detected IP stack 2025-03-31 13:55:55 -07:00
Michael Davidsaver ebed4f1985 fix testudp 2025-03-31 13:55:55 -07:00
Joao Paulo Martins f42bc97699 Fixed pvaGetLink for Union types; Added tests 2025-03-31 11:05:42 -07:00
Michael Davidsaver 691a5825ae ioc: fix DBE_ARCHIVE handling w/ singlesource
Stop ignoring DBE_ARCHIVE.
2025-02-12 17:46:49 -08:00
Michael Davidsaver 87abad5387 test NTTable column order 2024-12-23 10:39:49 -08:00
Érico Nogueira 28817ae1a6 ioc: add test for dbLoadGroup command. 2024-12-11 15:55:42 -08:00
Michael Davidsaver 330097b7d4 cache_sync() copy Any/Union
Delta may be later be changed by user code,
so copy to ensure cache is not modified.

cf. 92fb0a4afa
2024-08-01 15:46:31 -07:00
Michael Davidsaver 1ca7600a2b Test value casts which are Undefined Behavior
Mark as TODO since UB is not consistent across all supported platforms.
2024-08-01 15:45:23 -07:00
Michael Davidsaver 7e6463c200 codespell 2023-11-21 12:20:34 -08:00
Michael Davidsaver eddc687021 ioc: combine registrars and detect QSRV1
also consolidates initHook and epicsAtExit() hooks
into a single sequence.
2023-11-20 10:59:44 -08:00
Michael Davidsaver 6d1216daad pvalink: porting part 3
add pvalink json schema
avoid JSON5 in testpvalink for portability.
fixup build with pvalink
trap bad_weak_ptr open during dtor
  Not sure why this is happening, but need not be CRIT.
c++11, cleanup, and notes
fix pvalink test sync
fix test cleanup on exit
pvalink disconnected link is always INVALID
pvalink logging
pvalink capture Disconnect time
pvalink eliminate providerName
  restrict local to dbChannelTest()
  aka. no qsrv groups
pvalink onTypeChange when attaching link to existing channel
pvalink eliminate unused Connecting state
pvalink add InstCounter
pvalink AfterPut can be const
pvalink add atomic jlif flag
include epicsStdio.h later
  avoid #define printf troubles
assert cleanup state on exit
pvalink add newer lset functions
test link disconnect
testpvalink redo testPutAsync()
pvalink fill out meta-data fetch
pvalink fix FLNK
pvalink cache putReq
pvalink test atomic monitor
pvalink test enum handling
pvalink handle scalar read of empty array
  make it well defined anyway...
pvalink test array of strings
handle db_add_event() failure
handle record._options.DBE
2023-11-20 10:59:44 -08:00
Simon Rose 5f48325890 pvalink: porting part 2
Fix pvaGetValue for string scalars
Remove pvaLink* variables
Move close() call to pvaGlobal_t from worker queue
Removed latch state
Update .gitignore to ignore VS code configuration
Add lset(pva) support for base 7.x
Remove pvalink support for base 3.x
Update cached value object in pvaLinkChannel::run
Removing queued state from pvaLikeChannel
Add debug functionality
Rename internal fields to match json spec
prepare for puts
Fix array response size
Add tests for pvalink properties
2023-11-20 10:59:44 -08:00
Michael Davidsaver 382dd29452 qsrv: avoid sending 0 precision w/ integer value 2023-11-20 10:59:44 -08:00
Michael Davidsaver 17464a117a disallow "null" size by default
pvDataCPP only explicitly checks for "null" size (-1)
for Union, where it indicates the implicit "null" arm.
Also string, where "null" is equivalent to zero length string.
2023-11-08 16:18:20 -08:00
Michael Davidsaver 90a1221904 testmon, more details on failure 2023-10-23 16:31:44 -07:00
Michael Davidsaver a9eea922b5 Relax when assigning struct[] or union[] of similar
Attempt copy with partial assignment.
2023-10-03 20:45:28 -07:00
Michael Davidsaver d8f7de8c8c client: GET yield complete 2023-09-25 18:50:26 -07:00
Michael Davidsaver 0b0dfde5c9 ioc: group put w/o effect is an error. 2023-09-19 18:31:29 -07:00
Michael Davidsaver c06d4bb69a ioc: actually require +putorder to PUT 2023-09-19 18:31:29 -07:00
Michael Davidsaver 9ccd7b50ab ioc: fix block=true to DBF_ENUM 2023-09-19 12:16:02 -07:00
Michael Davidsaver 59c7fde958 ioc: fix group put over-process
only dbProcess() mapped records after dbPut
or for Proc mapping
2023-09-16 15:25:43 +02:00
Michael Davidsaver d8ed97e713 ioc: add logging for group ops 2023-09-16 15:25:43 +02:00
Michael Davidsaver d7e49605cc threadOnce further reduce boilerplate
also latch failure
2023-09-04 16:17:25 +02:00
Michael Davidsaver 59164a63f7 pvxs::ioc::testPrepare() 2023-09-04 16:17:25 +02:00