Project

General

Profile

Actions

action #56003

closed

[qe-core][functional] Add ghostscript to Tumbleweed

Added by WernerFink about 5 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
New test
Target version:
Start date:
2021-06-29
Due date:
% Done:

0%

Estimated time:
42.00 h
Difficulty:

Description

I have written a bash script called gwrap which will be the main part of the new package gswrap for Tumbleweed[1]. This script uses the tool bwrap from package bubblewrap to provide a fresh namespace for ghostscript. Both the next package version of ghostscript as well as gswrap uses update-alternatives to replace the program /usr/bin/gs with the gswrap script, if installed, otherwise the alternative link points to /usr/bin/gs.bin ... The aim of this is to have a secure container for ghostscript executed with option -dSAFER which should work for the most cases. Even with the X window system and also with pipes and the option -sOutputFile=%pipe%<command>

[1] https://build.opensuse.org/package/show/Printing/gswrap

Acceptance criteria

  • AC: A new openQA test module covers use case for gswrap

Exit criteria

  • EC: An test is implemented in OBS/IBS

Further information

Actions #1

Updated by SLindoMansilla about 5 years ago

  • Subject changed from Test case for gswrap package for ghostscript to [functional][u] Test case for gswrap package for ghostscript
  • Description updated (diff)
  • Priority changed from Normal to High
Actions #2

Updated by SLindoMansilla about 5 years ago

  • Description updated (diff)
Actions #3

Updated by SLindoMansilla about 5 years ago

  • Assignee set to mgriessmeier

Waiting for mgriessmeier's feedback

Actions #4

Updated by szarate about 5 years ago

  • Status changed from New to Feedback

Setting to feedback, waiting for clarification from PO. (We don't event know why we we set it to wait for feeedback in the first place)

Actions #5

Updated by mgriessmeier about 5 years ago

  • Status changed from Feedback to New
  • Assignee deleted (mgriessmeier)
  • Target version set to Milestone 30+

so this is a valid ticket for a new test in our domain.
but setting to next milestone

Actions #6

Updated by SLindoMansilla almost 5 years ago

  • Status changed from New to Workable
  • Priority changed from High to Normal
  • Estimated time set to 42.00 h
Actions #7

Updated by mgriessmeier almost 5 years ago

  • Target version changed from Milestone 30+ to Milestone 31
Actions #8

Updated by jorauch almost 5 years ago

  • Status changed from Workable to In Progress
  • Assignee set to jorauch

Now this looks like a job for me

Actions #9

Updated by jorauch over 4 years ago

  • Status changed from In Progress to Workable
  • Assignee deleted (jorauch)

unassigning due to vacation and lack of progress

Actions #10

Updated by zluo over 4 years ago

  • Status changed from Workable to In Progress
  • Assignee set to zluo

take over

Actions #11

Updated by zluo over 4 years ago

https://build.opensuse.org/package/show/Printing/gswrap shows:

gswrap
SLE_12_SP5
 x86_64
succeeded
SLE_15
 x86_64
succeeded
SLE_15_SP1
 x86_64
succeeded
SLE_15_SP2
 x86_64
succeeded
openSUSE_Factory_ARM
 aarch64
succeeded
 armv7l
succeeded
openSUSE_Factory_PowerPC
 ppc64
succeeded
 ppc64le
succeeded
openSUSE_Leap_15.1
 x86_64
succeeded
openSUSE_Leap_15.2
 x86_64
succeeded
openSUSE_Tumbleweed
 i586
succeeded
 x86_64
succeeded

But let me focus this for tumbleweed at first.

Actions #12

Updated by zluo over 4 years ago

http://f40.suse.de/tests/7715#step/gswrap/13

still not working yet. I have issue with opening ps file which works on my TW.

Actions #14

Updated by zluo over 4 years ago

actually I cannot make further progress.

just for record:
from wernerfink: ps is a text based command ... there is no X forwarding

Actions #15

Updated by SLindoMansilla over 4 years ago

  • Assignee changed from zluo to SLindoMansilla

I will try to apply Werner's suggestions.

Actions #16

Updated by tjyrinki_suse about 4 years ago

  • Subject changed from [functional][u] Test case for gswrap package for ghostscript to [qe-core][functional] Test case for gswrap package for ghostscript
Actions #17

Updated by SLindoMansilla over 3 years ago

  • Assignee deleted (SLindoMansilla)

No time to work on this :(

Actions #18

Updated by zluo over 3 years ago

  • Assignee set to zluo

will try this now again :) At least I will think about how to make a useful test case fo Tumbleweed.

Actions #19

Updated by zluo over 3 years ago

  • Target version changed from Milestone 31 to QE-Core: Ready
  • Start date changed from 2019-08-27 to 2021-06-29
Actions #20

Updated by zluo over 3 years ago

found that we have it already on OSD:
https://openqa.suse.de/tests/5990467#step/ghostscript/1

we have now x11/ghostscript.pm and checked for following on Tumbleweed:

 type_string("bash -x gs.wrap -dSAFER \n");
 save_screenshot;
 type_string("/usr/bin/gs.wrap -sDEVICE=x11alpha -g600x400 $reference\n");
 save_screenshot;

see http://10.160.64.152/tests/3292#step/ghostscript/38

Actions #21

Updated by zluo over 3 years ago

create needle 'ghostview_alphabet' required for Tumbleweed. So far it looks good for current code of ghostscrit.pm
Schedule this module to Tumbleweed at first. This meets main requirement of this ticket.

Actions #23

Updated by zluo over 3 years ago

  • Subject changed from [qe-core][functional] Test case for gswrap package for ghostscript to [qe-core][functional] Add ghostscript to Tumbleweed
Actions #24

Updated by zluo over 3 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF