-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrited version of kindsenior@71a8e2a which we need to surpress warning message, see jsk-enshu/robot-programming#437 (comment)
- Loading branch information
Showing
3 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env roseus | ||
|
||
(require :unittest "lib/llib/unittest.l") | ||
(setq sys::*gc-hook* #'(lambda (a b) (format *error-output* ";; gc ~A ~A~%" a b))) | ||
(init-unit-test) | ||
|
||
;; | ||
(deftest test-console-bridge | ||
(dolist (level (list ros::*console-bridge-log-debug* | ||
ros::*console-bridge-log-info* | ||
ros::*console-bridge-log-warn* | ||
ros::*console-bridge-log-error*)) | ||
(warning-message 2 "check ~A level~%" level) | ||
(ros::console-bridge-set-log-level level) | ||
(warning-message 2 " current log level ~A~%" (ros::console-bridge-get-log-level)) | ||
(ros::console-bridge-log-error "this is ERROR message") | ||
(ros::console-bridge-log-warn "this is WARN message") | ||
(ros::console-bridge-log-info "this is INFO message") | ||
(ros::console-bridge-log-debug "this is DEBUG message") | ||
)) | ||
|
||
(run-all-tests) | ||
|
||
(exit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<launch> | ||
<test test-name="test_console_bridge" pkg="roseus" type="test-console-bridge.l" name="test_console_bridge" /> | ||
</launch> |