Enhancement #964
Reduce redundancy between call and send tools
Status: | Resolved | Start date: | 03/19/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | Common Lisp Tools | |||
Target version: | rsb-0.11 |
Description
The call
and send
tools share some code for constructing call arguments and event payloads respectively.
Related issues
Associated revisions
Added functions for event construction in common/event.lisp
- common/event.lisp: new file; contains functions for constructing events
by parsing payload and meta-data specifications - common/package.lisp (package rsb.common): added exported symbols
parse-payload-spec, parse-meta-data, parse-timestamp and parse-cause - call/main.lisp (make-help-string): adapted to extended payload parsing
rules
(make-examples-string): likewise
(parse-argument): removed; `parse-payload-spec' is used instead
(main): call `parse-payload-spec' instead of `parse-argument' - send/main.lisp (make-help-string): adapted to extended payload parsing
rules
(make-examples-string): likewise
(parse-event-spec): removed; `parse-payload-spec' is used instead
(parse-pair): removed; moved to common/event.lisp
(parse-meta-data): likewise
(parse-timestamp): likewise
(parse-cause): likewise
(main): call `parse-payload-spec' instead of `parse-event-spec' - cl-rsb-common.asd (header): updated copyright
(system cl-rsb-common): added file - CMakeLists.txt: added test cases for executing send and call binaries
with different kinds of payload specifications
Fix example file used in tests in CMakeLists.txt
refs #964
- CMakeLists.txt: use the current CMake list file instead of /etc/motd
which may not always exist
History
#1 Updated by J. Moringen almost 12 years ago
- Target version changed from rsb-0.7 to rsb-0.9
#2 Updated by J. Moringen almost 11 years ago
- Target version changed from rsb-0.9 to rsb-0.10
#3 Updated by J. Moringen over 10 years ago
- Target version changed from rsb-0.10 to rsb-0.11
#4 Updated by J. Moringen over 9 years ago
- Related to Support #2040: rsb-sendcl doesn't allow to send raw strings / missing or poor documentation? added
#5 Updated by J. Moringen over 9 years ago
- Status changed from New to In Progress
#6 Updated by J. Moringen over 9 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset rsb-tools-cl|20f00641f188cde028ed0b4c39640ba4621b4bc7.