Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] automatic tests for TUI (ncurses) #56

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion SUBDIRS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
src examples
src examples test
2 changes: 2 additions & 0 deletions examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# screenshot making involves sending SIGHUP to the examples, producing y2signal.log
y2signal.log
24 changes: 24 additions & 0 deletions examples/screenshots-tui/Alignment1-1.esc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
 YaST2 - ./../../Alignment1.rb @ ohmu









┌─────────────────────────────────────────────────────────────────────┐
│[This is a very long button - it reserves extra space for the label.]│ 
│[ Stretchable button ]Label│ 
└─────────────────────────────────────────────────────────────────────┘ 
 









24 changes: 24 additions & 0 deletions examples/screenshots-tui/Alignment1-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
YaST2 - ./../../Alignment1.rb @ ohmu









┌─────────────────────────────────────────────────────────────────────┐
│[This is a very long button - it reserves extra space for the label.]│
│[ Stretchable button ]Label│
└─────────────────────────────────────────────────────────────────────┘










24 changes: 24 additions & 0 deletions examples/screenshots-tui/AutoShortcut1-1.esc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
 YaST2 - ./../../AutoShortcut1.rb @ ohmu





┌────────────────────────┐
│┌Software Selection────┐│ 
││( ) Minimum System ││ 
││( ) Minimum X11 System││ 
││( ) Gnome System ││ 
││( ) Default (KDE) ││ 
││( ) Default + Office ││ 
││( ) Almost Everything ││ 
│└──────────────────────┘│ 
│ [OK] │ 
└────────────────────────┘ 
 






24 changes: 24 additions & 0 deletions examples/screenshots-tui/AutoShortcut1-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
YaST2 - ./../../AutoShortcut1.rb @ ohmu





┌────────────────────────┐
│┌Software Selection────┐│
││( ) Minimum System ││
││( ) Minimum X11 System││
││( ) Gnome System ││
││( ) Default (KDE) ││
││( ) Default + Office ││
││( ) Almost Everything ││
│└──────────────────────┘│
│ [OK] │
└────────────────────────┘







24 changes: 24 additions & 0 deletions examples/screenshots-tui/AutoShortcut2-1.esc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
 YaST2 - ./../../AutoShortcut2.rb @ ohmu





┌───────────────────────────────┐
│┌Software Selection───────────┐│ 
││( ) Minimum System ││ 
││( ) Minimum X11 System ││ 
││( ) Gnome System ││ 
││( ) Default (KDE) ││ 
││( ) Office System (KDE Based)││ 
││( ) Almost Everything ││ 
│└─────────────────────────────┘│ 
│ [OK] │ 
└───────────────────────────────┘ 
 






24 changes: 24 additions & 0 deletions examples/screenshots-tui/AutoShortcut2-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
YaST2 - ./../../AutoShortcut2.rb @ ohmu





┌───────────────────────────────┐
│┌Software Selection───────────┐│
││( ) Minimum System ││
││( ) Minimum X11 System ││
││( ) Gnome System ││
││( ) Default (KDE) ││
││( ) Office System (KDE Based)││
││( ) Almost Everything ││
│└─────────────────────────────┘│
│ [OK] │
└───────────────────────────────┘







24 changes: 24 additions & 0 deletions examples/screenshots-tui/BackgroundPixmap-1.esc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
 YaST2 - ./../../BackgroundPixmap.rb @ ohmu

┌────────────────────────────────────────────────────────────────────────────┐
│English  │
│Italiano │
│Klingon │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└────────────────────────────────────────────────────────────────────────────┘
 [Close]


24 changes: 24 additions & 0 deletions examples/screenshots-tui/BackgroundPixmap-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
YaST2 - ./../../BackgroundPixmap.rb @ ohmu

┌────────────────────────────────────────────────────────────────────────────┐
│English │
│Italiano │
│Klingon │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└────────────────────────────────────────────────────────────────────────────┘
[Close]


24 changes: 24 additions & 0 deletions examples/screenshots-tui/BarGraph1-1.esc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
 YaST2 - ./../../BarGraph1.rb @ ohmu









┌───────────────────────────────────────────────────┐
│Error: This UI doesn't support the BarGraph widget!│ 
│ [OK] │ 
└───────────────────────────────────────────────────┘ 
 









24 changes: 24 additions & 0 deletions examples/screenshots-tui/BarGraph1-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
YaST2 - ./../../BarGraph1.rb @ ohmu









┌───────────────────────────────────────────────────┐
│Error: This UI doesn't support the BarGraph widget!│
│ [OK] │
└───────────────────────────────────────────────────┘










24 changes: 24 additions & 0 deletions examples/screenshots-tui/BarGraph2-1.esc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
 YaST2 - ./../../BarGraph2.rb @ ohmu









┌───────────────────────────────────────────────────┐
│Error: This UI doesn't support the BarGraph widget!│ 
│ [OK] │ 
└───────────────────────────────────────────────────┘ 
 









24 changes: 24 additions & 0 deletions examples/screenshots-tui/BarGraph2-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
YaST2 - ./../../BarGraph2.rb @ ohmu









┌───────────────────────────────────────────────────┐
│Error: This UI doesn't support the BarGraph widget!│
│ [OK] │
└───────────────────────────────────────────────────┘










24 changes: 24 additions & 0 deletions examples/screenshots-tui/BarGraph3-1.esc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
 YaST2 - ./../../BarGraph3.rb @ ohmu









┌───────────────────────────────────────────────────┐
│Error: This UI doesn't support the BarGraph widget!│ 
│ [OK] │ 
└───────────────────────────────────────────────────┘ 
 









24 changes: 24 additions & 0 deletions examples/screenshots-tui/BarGraph3-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
YaST2 - ./../../BarGraph3.rb @ ohmu









┌───────────────────────────────────────────────────┐
│Error: This UI doesn't support the BarGraph widget!│
│ [OK] │
└───────────────────────────────────────────────────┘










24 changes: 24 additions & 0 deletions examples/screenshots-tui/Beep-1.esc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
 YaST2 - ./../../Beep.rb @ ohmu









┌────────────────────────┐
│Doing some operations...│ 
└────────────────────────┘ 
 










Loading