Skip Menu |

This queue is for tickets about the Term-Screen CPAN distribution.

Report information
The Basics
Id: 25890
Status: resolved
Priority: 0/
Queue: Term-Screen

People
Owner: jns [...] gellyfish.co.uk
Requestors: imacat [...] mail.imacat.idv.tw
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.03
Fixed in: (no value)



Subject: Allowing Automated CPAN Tests
Dear Jonathan Stowe, Hi. This is imacat from Taiwan. I'm current acting as a CPAN tester and running tests for all the uploaded CPAN packages daily. It seems that your Term-Screen-0.04 does not allow automated tests. It keeps waiting key press from the console. In the case of automated tests that STDIN is closed, nothing can be returned from getch() and hence it enters an infinite loop. As a CPAN tester testing 40-50 modules per day, I really cannot test every package and check their input alone. Having such a package that does not satisfy without STDIN really frustrate me as it uses up all my CPU and system resources that I can contribute to other packages that need more tests. Could you please help solving this issue, by allowing that if nothing was obtained from getch() then stops testing? Thank you very much. You are greatly appreciated by the large CPAN family. I attached the last terminal screen below, in the hope that it helps. The automated tests hangs here. Please tell me if you need any more information. Thank you. ==================== Test series for Screen.pm module for perl5 1. Should be at row 2 col 3 (upper left is 0,0) 2. Last position -- should be 2 50. 3. Screen size: rows and columns. 4. Testing reverse mode, bold mode, and both together. 5. Testing clreol - The next 2 lines should end at col 20 and 30. 0---------10-------- 0---------10--------20-------- 0---------10--------20--------30--------40--------50--------60--------70------- 6. Clreos - Hit a key to clear all right and below: 7. Test insert and delete line - 15 deleted, and ... 13--------10--------20--------30--------40--------50--------60--------70------- ... this is where line 14 was 14--------10--------20--------30--------40--------50--------60--------70------- 16--------10--------20--------30--------40--------50--------60--------70------- 8. Key_pressed - Don't Hit a key in the next 5 seconds: HEY A KEY WAS HIT Hit a key in next 15 seconds: KEY HIT! ==================== imacat@rinse ~ % top -b | head ..... PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2483 imacat 25 0 27116 2836 1672 R 99.9 0.1 1:16.46 perl 2522 imacat 17 0 17916 788 560 S 2.0 0.0 0:00.01 head 1 root 16 0 2652 88 52 S 0.0 0.0 0:49.03 init imacat@rinse ~ % ====================
Hi, I've removed the interactive test in https://github.com/jonathanstowe/Term-Screen/commit/ec82d927624d77e70d9f0d59661f9b2b7abac360 and this will be in the 1.04 release