From 33501e6b14c2901d7dfd7b09e16134f8abacda70 Mon Sep 17 00:00:00 2001 From: pdancak Date: Fri, 17 May 2024 12:04:08 +0200 Subject: [PATCH] First tests and init --- LICENSE | 339 ++++++++ Sanity/dbus-send/Makefile | 69 ++ Sanity/dbus-send/PURPOSE | 3 + Sanity/dbus-send/getbestdrivers_expected | 1 + Sanity/dbus-send/main.fmf | 32 + Sanity/dbus-send/missingexecutables_expected | 1 + Sanity/dbus-send/runtest.sh | 63 ++ Sanity/dbus-send/samsung-test.ppd | 805 ++++++++++++++++++ .../main.fmf | 25 + .../runtest.sh | 53 ++ plans/all.fmf | 9 + 11 files changed, 1400 insertions(+) create mode 100644 LICENSE create mode 100644 Sanity/dbus-send/Makefile create mode 100644 Sanity/dbus-send/PURPOSE create mode 100644 Sanity/dbus-send/getbestdrivers_expected create mode 100644 Sanity/dbus-send/main.fmf create mode 100644 Sanity/dbus-send/missingexecutables_expected create mode 100755 Sanity/dbus-send/runtest.sh create mode 100644 Sanity/dbus-send/samsung-test.ppd create mode 100644 Sanity/system-config-printer-does-not-start/main.fmf create mode 100755 Sanity/system-config-printer-does-not-start/runtest.sh create mode 100644 plans/all.fmf diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d159169 --- /dev/null +++ b/LICENSE @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/Sanity/dbus-send/Makefile b/Sanity/dbus-send/Makefile new file mode 100644 index 0000000..c2c441e --- /dev/null +++ b/Sanity/dbus-send/Makefile @@ -0,0 +1,69 @@ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Makefile of /CoreOS/system-config-printer/Sanity/dbus-send +# Description: dbus send +# Author: Petr Sklenar +# Zdenek Dohnal +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2019 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +export TEST=/CoreOS/system-config-printer/Sanity/dbus-send +export TESTVERSION=1.0 + +BUILT_FILES= + +FILES=$(METADATA) runtest.sh Makefile PURPOSE samsung-test.ppd getbestdrivers_expected missingexecutables_expected + +.PHONY: all install download clean + +run: $(FILES) build + ./runtest.sh + +build: $(BUILT_FILES) + test -x runtest.sh || chmod a+x runtest.sh + +clean: + rm -f *~ $(BUILT_FILES) + + +include /usr/share/rhts/lib/rhts-make.include + +$(METADATA): Makefile + @echo "Owner: Petr Sklenar " > $(METADATA) + @echo "Name: $(TEST)" >> $(METADATA) + @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) + @echo "Path: $(TEST_DIR)" >> $(METADATA) + @echo "Description: dbus send" >> $(METADATA) + @echo "Type: Sanity" >> $(METADATA) + @echo "TestTime: 15m" >> $(METADATA) + @echo "RunFor: system-config-printer" >> $(METADATA) + @echo "Requires: system-config-printer-libs" >> $(METADATA) + @echo "Requires: hplip" >> $(METADATA) + @echo "Requires: libnotify" >> $(METADATA) + @echo "Requires: cups" >> $(METADATA) + @echo "Requires: dbus-x11" >> $(METADATA) + @echo "Requires: systemd" >> $(METADATA) + @echo "Priority: Normal" >> $(METADATA) + @echo "License: GPLv2+" >> $(METADATA) + @echo "Confidential: no" >> $(METADATA) + @echo "Destructive: no" >> $(METADATA) + @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5 -RHEL6 -RHEL7" >> $(METADATA) + + rhts-lint $(METADATA) diff --git a/Sanity/dbus-send/PURPOSE b/Sanity/dbus-send/PURPOSE new file mode 100644 index 0000000..6dc3ea9 --- /dev/null +++ b/Sanity/dbus-send/PURPOSE @@ -0,0 +1,3 @@ +PURPOSE of /CoreOS/system-config-printer/Sanity/dbus-send +Description: dbus send +Author: Petr Sklenar diff --git a/Sanity/dbus-send/getbestdrivers_expected b/Sanity/dbus-send/getbestdrivers_expected new file mode 100644 index 0000000..6edead3 --- /dev/null +++ b/Sanity/dbus-send/getbestdrivers_expected @@ -0,0 +1 @@ +a(ss) 4 "lsb/usr/HP/hp-officejet_pro_8500_a909a.ppd.gz" "exact" "drv:///hp/hpcups.drv/hp-officejet_pro_8500_a909a.ppd" "exact" "drv:///sample.drv/generpcl.ppd" "generic" "drv:///hp/hpijs.drv/hp-officejet_pro_8500_a909a-hpijs.ppd" "exact" diff --git a/Sanity/dbus-send/main.fmf b/Sanity/dbus-send/main.fmf new file mode 100644 index 0000000..0acbac2 --- /dev/null +++ b/Sanity/dbus-send/main.fmf @@ -0,0 +1,32 @@ +summary: dbus send +description: '' +contact: Petr Sklenar +component: + - system-config-printer +test: ./runtest.sh +framework: beakerlib +recommend: + - system-config-printer-libs + - hplip + - libnotify + - cups + - dbus-x11 + - systemd +duration: 15m +enabled: true +tag: + - NoRHEL4 + - NoRHEL5 + - NoRHEL6 + - NoRHEL7 + - TIPfail_infra + - TIPpass + - Tier1 +tier: '1' +adjust: + - enabled: false + when: distro == rhel-4, rhel-5, rhel-6, rhel-7, rhel-alt-7 + continue: false +extra-nitrate: TC#0601574 +extra-summary: /CoreOS/system-config-printer/Sanity/dbus-send +extra-task: /CoreOS/system-config-printer/Sanity/dbus-send diff --git a/Sanity/dbus-send/missingexecutables_expected b/Sanity/dbus-send/missingexecutables_expected new file mode 100644 index 0000000..178e78a --- /dev/null +++ b/Sanity/dbus-send/missingexecutables_expected @@ -0,0 +1 @@ +as 1 "/usr/lib/cups/filter/rastertospl" diff --git a/Sanity/dbus-send/runtest.sh b/Sanity/dbus-send/runtest.sh new file mode 100755 index 0000000..90063e8 --- /dev/null +++ b/Sanity/dbus-send/runtest.sh @@ -0,0 +1,63 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/system-config-printer/Sanity/dbus-send +# Description: dbus send +# Author: Petr Sklenar +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2019 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include Beaker environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGE="system-config-printer-libs" +rlJournalStart + rlPhaseStartSetup + rlAssertRpm system-config-printer-libs + rlRun "cp samsung-test.ppd /tmp/samsung-test.ppd" 0 "Copy ppd to tmp" + rlRun "cp getbestdrivers_expected /tmp" 0 "Copy expected file" + rlRun "cp missingexecutables_expected /tmp" 0 "Copy expected file" + rlRun "rlServiceStart cups" + sleep 3 + rlPhaseEnd + + rlPhaseStartTest + rlRun "dbus-launch &" 0 "Start dbus" + + busctl --user call --timeout=120000 org.fedoraproject.Config.Printing /org/fedoraproject/Config/Printing org.fedoraproject.Config.Printing GetBestDrivers sss "MFG:HP;MDL:Officejet Pro 8500 A909a;CMD:PCL;" "HP Officejet Pro 8500 A909a" "" > /tmp/getbestdrivers_out + rlAssert0 "busctl for GetBestDrivers" $? + ### Print output ### + rlRun "cat /tmp/getbestdrivers_out" + rlRun "diff /tmp/getbestdrivers_out /tmp/getbestdrivers_expected" 0 "Diff expected and real outputs" + + busctl --user call --timeout=120000 org.fedoraproject.Config.Printing /org/fedoraproject/Config/Printing org.fedoraproject.Config.Printing MissingExecutables s "/tmp/samsung-test.ppd" > /tmp/missingexecutables_out + rlAssert0 "busctl for MissingDrivers" $? + ### Print output ### + rlRun "cat /tmp/missingexecutables_out" + rlRun "diff /tmp/missingexecutables_out /tmp/missingexecutables_expected" 0 "Diff expected and real outputs" + rlPhaseEnd + + rlPhaseStartCleanup + rlServiceRestore cups + rlRun "rm -r /tmp/samsung-test.ppd" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/Sanity/dbus-send/samsung-test.ppd b/Sanity/dbus-send/samsung-test.ppd new file mode 100644 index 0000000..f0d52ad --- /dev/null +++ b/Sanity/dbus-send/samsung-test.ppd @@ -0,0 +1,805 @@ +*PPD-Adobe: "4.3" +*% =============================================== +*% PPD for Samsung ML-1670 Series CUPS +*% For Linux Only +*% =============================================== +*FormatVersion: "4.3" +*FileVersion: "0.9" +*LanguageVersion: English +*LanguageEncoding: ISOLatin1 +*PCFileName: "ML1670.ppd" +*Manufacturer: "SAMSUNG" +*Product: "(LaserPrinter)" +*cupsVersion: 1.0 +*cupsManualCopies: False +*% *cupsModelNumber is used as the indicator of variable bandwidth and QPDL version number field. +*% MSB 1st bit is index of variable bandwidth. +*% LSB 4bits - 1 is used as QPDL version number. +*% 10000011 : variable bandwidth = True, QPDL version number = 3 - 1 = 2. +*cupsModelNumber: 134 +*cupsFilter: "application/vnd.cups-raster 0 rastertospl" +*% Emulators: Number Of Packet Size in KB + "_" + Compression Type + "_" + Emulation Name +*% FBB do not need this field. Newly introduced from CLP-600. +*Emulators: "Banded_JBIG_SPL-C_scms" +*ModelName: "Samsung ML-1670 Series" +*ShortNickName: "ML-1670" +*linuxLanguage: "SPL-C" +*linuxPriority: "1" +*linuxURL: "http://www.samsungprinter.com/" +*linuxIdentify: "ML-1670" +*NickName: "Samsung ML-1670 Series" +*PSVersion: "(3010.000) 550" +*LanguageLevel: "3" +*ColorDevice: False +*DefaultColorSpace: Gray +*FileSystem: False +*Throughput: "21" + +*%======================================================== +*%LandscapeOrientation: Plus90 +*%VariablePaperSize: False +*%TTRasterizer: Type42 +*% Base options group +*%======================================================== + +*OpenGroup: General/General +*% ========================================================= +*% Color & Gray Option +*% ========================================================= +*OpenUI *ColorModel/Color Mode: PickOne +*OrderDependency: 10 AnySetup *ColorModel +*DefaultColorModel: Gray +*ColorModel Gray/Grayscale: "<>setpagedevice" +*CloseUI: *ColorModel + +*secPJLColorModel Gray/Grayscale: "@PJL SET COLORMODE = MONO<0A>" + +*% ========================================================= +*% Media Type +*% ========================================================= +*JCLOpenUI *MediaType/Paper Type: PickOne +*OrderDependency: 10 JCLSetup *MediaType +*DefaultMediaType: None +*MediaType None/Printer Default: "@PJL SET PAPERTYPE = OFF<0A>" +*MediaType Plain/Plain: "@PJL SET PAPERTYPE = NORMAL<0A>" +*MediaType Thick/Thick: "@PJL SET PAPERTYPE = THICK<0A>" +*MediaType Thin/Thin: "@PJL SET PAPERTYPE = THIN<0A>" +*MediaType OHP/Transparency: "@PJL SET PAPERTYPE = OHP<0A>" +*MediaType Bond/Bond: "@PJL SET PAPERTYPE = BOND<0A>" +*MediaType Color/Color: "@PJL SET PAPERTYPE = COLOR<0A>" +*MediaType Card/CardStock: "@PJL SET PAPERTYPE = CARD<0A>" +*MediaType Labels/Labels: "@PJL SET PAPERTYPE = LABEL<0A>" +*MediaType Preprinted/Preprinted: "@PJL SET PAPERTYPE = USED<0A>" +*MediaType Cotton/Cotton: "@PJL SET PAPERTYPE = COTTON<0A>" +*MediaType Archive/Archive: "@PJL SET PAPERTYPE = ARCHIVE<0A>" +*MediaType Recycled/Recycled: "@PJL SET PAPERTYPE = RECYCLED<0A>" +*MediaType Envelope/Envelope: "@PJL SET PAPERTYPE = ENV<0A>" +*JCLCloseUI: *MediaType + +*% ========================================================= +*% Quality +*% ========================================================= +*OpenUI *Quality/Quality: PickOne +*OrderDependency: 10 AnySetup *Quality +*DefaultQuality: 600x600_Draft +*Quality 600x600_Best/1200 dpi(Best) : "<>setpagedevice" +*Quality 600x600_Draft/600 dpi(Normal): "<>setpagedevice" +*CloseUI: *Quality + +*DefaultResolution: 600dpi + +*% ========================================================= +*% Paper Source +*% ========================================================= +*OpenUI *InputSlot/Paper Source: PickOne +*OrderDependency: 25 AnySetup *InputSlot +*DefaultInputSlot: Auto +*InputSlot Auto/Auto Selection: "" +*InputSlot Manual/Manual Feeder: "" +*%InputSlot Upper/Tray 1: "" +*CloseUI: *InputSlot + + +*% ========================================================= +*% Paper Handling +*% ========================================================= +*% Use these entries to set paper size unless there is a specific +*% reason to use PageRegion, such as when using manual Feeder. +*OpenUI *PageSize/Page Size: PickOne +*OrderDependency: 30 AnySetup *PageSize +*DefaultPageSize: A4 +*PageSize Letter/Letter: "<> /PageSize [612 792] /ImagingBBox null>> setpagedevice" +*PageSize Legal/Legal: "<> /PageSize [612 1008] /ImagingBBox null>> setpagedevice" +*PageSize A4/A4: "<> /PageSize [595 842] /ImagingBBox null>> setpagedevice" +*PageSize Executive/Executive: "<> /PageSize [522 756] /ImagingBBox null>> setpagedevice" +*PageSize Folio/US Folio: "<> /PageSize [612 936] /ImagingBBox null>> setpagedevice" +*PageSize JB5/JIS B5: "<> /PageSize [516 729] /ImagingBBox null>> setpagedevice" +*PageSize B5-ISO/ISO B5: "<> /PageSize [499 709] /ImagingBBox null>> setpagedevice" +*PageSize A5/A5: "<> /PageSize [420 595] /ImagingBBox null>> setpagedevice" +*PageSize COM10/No.10 Env.: "<> /PageSize [297 684] /ImagingBBox null>> setpagedevice" +*PageSize Monarch/Monarch Env.: "<> /PageSize [279 540] /ImagingBBox null>> setpagedevice" +*PageSize DL/DL Env.: "<> /PageSize [312 624] /ImagingBBox null>> setpagedevice" +*PageSize C5/C5 Env.: "<> /PageSize [459 649] /ImagingBBox null>> setpagedevice" +*%PageSize C6/C6 Env.: "<> /PageSize [323 459] /ImagingBBox null>> setpagedevice" +*%PageSize A6/A6: "<> /PageSize [297 420] /ImagingBBox null>> setpagedevice" +*PageSize Oficio_S/Oficio : "<> /PageSize [612 972] /ImagingBBox null>> setpagedevice" +*%PageSize PCard4x6/Post Card 4x6: "<> /PageSize [288 432] /ImagingBBox null>> setpagedevice" +*CloseUI: *PageSize + +*OpenUI *PageRegion: PickOne +*OrderDependency: 40 AnySetup *PageRegion +*DefaultPageRegion: A4 +*PageRegion Letter/Letter: "<> /PageSize [612 792] /ImagingBBox null>> setpagedevice" +*PageRegion Legal/Legal: "<> /PageSize [612 1008] /ImagingBBox null>> setpagedevice" +*PageRegion A4/A4: "<> /PageSize [595 842] /ImagingBBox null>> setpagedevice" +*PageRegion Executive/Executive: "<> /PageSize [522 756] /ImagingBBox null>> setpagedevice" +*PageRegion Folio/US Folio: "<> /PageSize [612 936] /ImagingBBox null>> setpagedevice" +*PageRegion JB5/JIS B5: "<> /PageSize [516 729] /ImagingBBox null>> setpagedevice" +*PageRegion B5-ISO/ISO B5: "<> /PageSize [499 709] /ImagingBBox null>> setpagedevice" +*PageRegion A5/A5: "<> /PageSize [420 595] /ImagingBBox null>> setpagedevice" +*PageRegion COM10/No.10 Env.: "<> /PageSize [297 684] /ImagingBBox null>> setpagedevice" +*PageRegion Monarch/Monarch Env.: "<> /PageSize [279 540] /ImagingBBox null>> setpagedevice" +*PageRegion DL/DL Env.: "<> /PageSize [312 624] /ImagingBBox null>> setpagedevice" +*PageRegion C5/C5 Env.: "<> /PageSize [459 649] /ImagingBBox null>> setpagedevice" +*%PageRegion C6/C6 Env.: "<> /PageSize [323 459] /ImagingBBox null>> setpagedevice" +*%PageRegion A6/A6: "<> /PageSize [297 420] /ImagingBBox null>> setpagedevice" +*PageRegion Oficio_S/Oficio: "<> /PageSize [612 972] /ImagingBBox null>> setpagedevice" +*%PageRegion PCard4x6/Post Card 4x6: "<> /PageSize [288 432] /ImagingBBox null>> setpagedevice" +*CloseUI: *PageRegion + +*% These entries provide the imageable areas of the media option keywords +*DefaultImageableArea: A4 +*ImageableArea Letter/Letter: "12.5 12.5 599.5 779.5" +*ImageableArea Legal/Legal: "12.5 12.5 599.5 995.5" +*ImageableArea A4/A4: "12.5 12.5 582.5 829.5" +*ImageableArea Executive/Executive: "12.5 12.5 509.5 743.5" +*ImageableArea Folio/US Folio: "12.5 12.5 599.5 923.5" +*ImageableArea JB5/JIS B5: "12.5 12.5 503.5 716.5" +*ImageableArea B5-ISO/ISO B5: "12.5 12.5 486.5 696.5" +*ImageableArea A5/A5: "12.5 12.5 407.5 582.5" +*ImageableArea COM10/No.10 Env.: "12.5 12.5 284.5 671.5" +*ImageableArea Monarch/Monarch Env.: "12.5 12.5 266.5 527.5" +*ImageableArea DL/DL Env.: "12.5 12.5 299.5 611.5" +*ImageableArea C5/C5 Env.: "12.5 12.5 446.5 636.5" +*%ImageableArea C6/C6 Env.: "12.5 12.5 310.5 446.5" +*%ImageableArea A6/A6: "12.5 12.5 284.5 407.5" +*ImageableArea Oficio_S/Oficio: "12.5 12.5 599.5 959.5" +*%ImageableArea PCard4x6/Post Card 4x6: "12.5 12.5 275.5 419.5" + +*DefaultCompression: FBXOR +*Compression FBXOR/FBXOR: "1" +*Compression Adaptive/Adaptive: "1" + +*% These provide the physical dimensions of the media, by option keyword. +*DefaultPaperDimension: A4 +*PaperDimension Letter/Letter: "612 792" +*PaperDimension Legal/Legal: "612 1008" +*PaperDimension A4/A4: "595 842" +*PaperDimension Executive/Executive: "522 756" +*PaperDimension Folio/US Folio: "612 936" +*PaperDimension JB5/JIS B5: "516 729" +*PaperDimension B5-ISO/ISO B5: "499 709" +*PaperDimension A5/A5: "420 595" +*PaperDimension COM10/No.10 Env.: "297 684" +*PaperDimension Monarch/Monarch Env.: "279 540" +*PaperDimension DL/DL Env.: "312 624" +*PaperDimension C5/C5 Env.: "459 649" +*%PaperDimension C6/C6 Env.: "323 459" +*%PaperDimension A6/A6: "297 420" +*PaperDimension Oficio_S/Oficio: "612 972" +*%PaperDimension PCard4x6/Post Card 4x6: "288 432" + +*RequiresPageRegion All: True +*CloseGroup: General + +*JCLOpenUI *JCLEconomode/Toner Save Mode: PickOne +*OrderDependency: 10 JCLSetup *JCLEconomode +*DefaultJCLEconomode: NONE +*JCLEconomode NONE/Printer Setting: "" +*JCLEconomode Off/Off: "@PJL SET ECONOMODE = OFF<0A>" +*JCLEconomode On/On: "@PJL SET ECONOMODE = ON<0A>" +*JCLCloseUI: *JCLEconomode + +*JCLOpenUI *JCLPowerSaveTime/Power Save Time: PickOne +*OrderDependency: 10 JCLSetup *JCLPowerSaveTime +*DefaultJCLPowerSaveTime: min5 +*JCLPowerSaveTime min1/1 Minutes: "@PJL DEFAULT POWERSAVE = ON<0A>@PJL DEFAULT POWERSAVETIME = 1<0A>" +*JCLPowerSaveTime min5/5 Minutes: "@PJL DEFAULT POWERSAVE = ON<0A>@PJL DEFAULT POWERSAVETIME = 5<0A>" +*JCLPowerSaveTime min10/10 Minutes: "@PJL DEFAULT POWERSAVE = ON<0A>@PJL DEFAULT POWERSAVETIME = 10<0A>" +*JCLPowerSaveTime min15/15 Minutes: "@PJL DEFAULT POWERSAVE = ON<0A>@PJL DEFAULT POWERSAVETIME = 15<0A>" +*JCLPowerSaveTime min20/20 Minutes: "@PJL DEFAULT POWERSAVE = ON<0A>@PJL DEFAULT POWERSAVETIME = 20<0A>" +*JCLPowerSaveTime min30/30 Minutes: "@PJL DEFAULT POWERSAVE = ON<0A>@PJL DEFAULT POWERSAVETIME = 30<0A>" +*JCLPowerSaveTime min45/45 Minutes: "@PJL DEFAULT POWERSAVE = ON<0A>@PJL DEFAULT POWERSAVETIME = 45<0A>" +*JCLPowerSaveTime min60/60 Minutes: "@PJL DEFAULT POWERSAVE = ON<0A>@PJL DEFAULT POWERSAVETIME = 60<0A>" +*JCLPowerSaveTime min120/120 Minutes: "@PJL DEFAULT POWERSAVE = ON<0A>@PJL DEFAULT POWERSAVETIME = 120<0A>" +*JCLCloseUI: *JCLPowerSaveTime + +*JCLOpenUI *JCLDarkness/Darkness: PickOne +*OrderDependency: 40 JCLSetup *JCLDarkness +*DefaultJCLDarkness: NORMAL +*JCLDarkness NORMAL/Normal: "@PJL SET DENSITY = 3<0A>" +*JCLDarkness HIGH/Dark: "@PJL SET DENSITY = 5<0A>" +*JCLDarkness LIGHT/Light: "@PJL SET DENSITY = 1<0A>" +*JCLCloseUI: *JCLDarkness + + +*% ========================================================= +*% Envelope(PageSize) - MediaType +*% ========================================================= + +*% COM10 +*UIConstraints: *PageSize COM10 *MediaType None +*UIConstraints: *PageSize COM10 *MediaType Plain +*UIConstraints: *PageSize COM10 *MediaType Thick +*UIConstraints: *PageSize COM10 *MediaType Thin +*UIConstraints: *PageSize COM10 *MediaType OHP +*UIConstraints: *PageSize COM10 *MediaType Bond +*UIConstraints: *PageSize COM10 *MediaType Color +*UIConstraints: *PageSize COM10 *MediaType Card +*UIConstraints: *PageSize COM10 *MediaType Labels +*UIConstraints: *PageSize COM10 *MediaType Preprinted +*UIConstraints: *PageSize COM10 *MediaType Cotton +*UIConstraints: *PageSize COM10 *MediaType Archive +*UIConstraints: *PageSize COM10 *MediaType Recycled + +*UIConstraints: *MediaType None *PageSize COM10 +*UIConstraints: *MediaType Plain *PageSize COM10 +*UIConstraints: *MediaType Thick *PageSize COM10 +*UIConstraints: *MediaType Thin *PageSize COM10 +*UIConstraints: *MediaType OHP *PageSize COM10 +*UIConstraints: *MediaType Bond *PageSize COM10 +*UIConstraints: *MediaType Color *PageSize COM10 +*UIConstraints: *MediaType Card *PageSize COM10 +*UIConstraints: *MediaType Labels *PageSize COM10 +*UIConstraints: *MediaType Preprinted *PageSize COM10 +*UIConstraints: *MediaType Cotton *PageSize COM10 +*UIConstraints: *MediaType Archive *PageSize COM10 +*UIConstraints: *MediaType Recycled *PageSize COM10 + +*% DL +*UIConstraints: *PageSize DL *MediaType None +*UIConstraints: *PageSize DL *MediaType Plain +*UIConstraints: *PageSize DL *MediaType Thick +*UIConstraints: *PageSize DL *MediaType Thin +*UIConstraints: *PageSize DL *MediaType OHP +*UIConstraints: *PageSize DL *MediaType Bond +*UIConstraints: *PageSize DL *MediaType Color +*UIConstraints: *PageSize DL *MediaType Card +*UIConstraints: *PageSize DL *MediaType Labels +*UIConstraints: *PageSize DL *MediaType Preprinted +*UIConstraints: *PageSize DL *MediaType Cotton +*UIConstraints: *PageSize DL *MediaType Archive +*UIConstraints: *PageSize DL *MediaType Recycled + +*UIConstraints: *MediaType None *PageSize DL +*UIConstraints: *MediaType Plain *PageSize DL +*UIConstraints: *MediaType Thick *PageSize DL +*UIConstraints: *MediaType Thin *PageSize DL +*UIConstraints: *MediaType OHP *PageSize DL +*UIConstraints: *MediaType Bond *PageSize DL +*UIConstraints: *MediaType Color *PageSize DL +*UIConstraints: *MediaType Card *PageSize DL +*UIConstraints: *MediaType Labels *PageSize DL +*UIConstraints: *MediaType Preprinted *PageSize DL +*UIConstraints: *MediaType Cotton *PageSize DL +*UIConstraints: *MediaType Archive *PageSize DL +*UIConstraints: *MediaType Recycled *PageSize DL + +*% C5 +*UIConstraints: *PageSize C5 *MediaType None +*UIConstraints: *PageSize C5 *MediaType Plain +*UIConstraints: *PageSize C5 *MediaType Thick +*UIConstraints: *PageSize C5 *MediaType Thin +*UIConstraints: *PageSize C5 *MediaType OHP +*UIConstraints: *PageSize C5 *MediaType Bond +*UIConstraints: *PageSize C5 *MediaType Color +*UIConstraints: *PageSize C5 *MediaType Card +*UIConstraints: *PageSize C5 *MediaType Labels +*UIConstraints: *PageSize C5 *MediaType Preprinted +*UIConstraints: *PageSize C5 *MediaType Cotton +*UIConstraints: *PageSize C5 *MediaType Archive +*UIConstraints: *PageSize C5 *MediaType Recycled + +*UIConstraints: *MediaType None *PageSize C5 +*UIConstraints: *MediaType Plain *PageSize C5 +*UIConstraints: *MediaType Thick *PageSize C5 +*UIConstraints: *MediaType Thin *PageSize C5 +*UIConstraints: *MediaType OHP *PageSize C5 +*UIConstraints: *MediaType Bond *PageSize C5 +*UIConstraints: *MediaType Color *PageSize C5 +*UIConstraints: *MediaType Card *PageSize C5 +*UIConstraints: *MediaType Labels *PageSize C5 +*UIConstraints: *MediaType Preprinted *PageSize C5 +*UIConstraints: *MediaType Cotton *PageSize C5 +*UIConstraints: *MediaType Archive *PageSize C5 +*UIConstraints: *MediaType Recycled *PageSize C5 + +*% C6 +*%UIConstraints: *PageSize C6 *MediaType None +*%UIConstraints: *PageSize C6 *MediaType Plain +*%UIConstraints: *PageSize C6 *MediaType Thick +*%UIConstraints: *PageSize C6 *MediaType Thin +*%UIConstraints: *PageSize C6 *MediaType OHP +*%UIConstraints: *PageSize C6 *MediaType Bond +*%UIConstraints: *PageSize C6 *MediaType Color +*%UIConstraints: *PageSize C6 *MediaType Card +*%UIConstraints: *PageSize C6 *MediaType Labels +*%UIConstraints: *PageSize C6 *MediaType Preprinted +*%UIConstraints: *PageSize C6 *MediaType Cotton +*%UIConstraints: *PageSize C6 *MediaType Archive +*%UIConstraints: *PageSize C6 *MediaType Recycled + +*%UIConstraints: *MediaType None *PageSize C6 +*%UIConstraints: *MediaType Plain *PageSize C6 +*%UIConstraints: *MediaType Thick *PageSize C6 +*%UIConstraints: *MediaType Thin *PageSize C6 +*%UIConstraints: *MediaType OHP *PageSize C6 +*%UIConstraints: *MediaType Bond *PageSize C6 +*%UIConstraints: *MediaType Color *PageSize C6 +*%UIConstraints: *MediaType Card *PageSize C6 +*%UIConstraints: *MediaType Labels *PageSize C6 +*%UIConstraints: *MediaType Preprinted *PageSize C6 +*%UIConstraints: *MediaType Cotton *PageSize C6 +*%UIConstraints: *MediaType Archive *PageSize C6 +*%UIConstraints: *MediaType Recycled *PageSize C6 + +*% Monarch +*UIConstraints: *PageSize Monarch *MediaType None +*UIConstraints: *PageSize Monarch *MediaType Plain +*UIConstraints: *PageSize Monarch *MediaType Thick +*UIConstraints: *PageSize Monarch *MediaType Thin +*UIConstraints: *PageSize Monarch *MediaType OHP +*UIConstraints: *PageSize Monarch *MediaType Bond +*UIConstraints: *PageSize Monarch *MediaType Color +*UIConstraints: *PageSize Monarch *MediaType Card +*UIConstraints: *PageSize Monarch *MediaType Labels +*UIConstraints: *PageSize Monarch *MediaType Preprinted +*UIConstraints: *PageSize Monarch *MediaType Cotton +*UIConstraints: *PageSize Monarch *MediaType Archive +*UIConstraints: *PageSize Monarch *MediaType Recycled + +*UIConstraints: *MediaType None *PageSize Monarch +*UIConstraints: *MediaType Plain *PageSize Monarch +*UIConstraints: *MediaType Thick *PageSize Monarch +*UIConstraints: *MediaType Thin *PageSize Monarch +*UIConstraints: *MediaType OHP *PageSize Monarch +*UIConstraints: *MediaType Bond *PageSize Monarch +*UIConstraints: *MediaType Color *PageSize Monarch +*UIConstraints: *MediaType Card *PageSize Monarch +*UIConstraints: *MediaType Labels *PageSize Monarch +*UIConstraints: *MediaType Preprinted *PageSize Monarch +*UIConstraints: *MediaType Cotton *PageSize Monarch +*UIConstraints: *MediaType Archive *PageSize Monarch +*UIConstraints: *MediaType Recycled *PageSize Monarch + +*% ========================================================= +*% Envelope(PageRegion) - MediaType +*% ========================================================= + +*% COM10 +*UIConstraints: *PageRegion COM10 *MediaType None +*UIConstraints: *PageRegion COM10 *MediaType Plain +*UIConstraints: *PageRegion COM10 *MediaType Thick +*UIConstraints: *PageRegion COM10 *MediaType Thin +*UIConstraints: *PageRegion COM10 *MediaType OHP +*UIConstraints: *PageRegion COM10 *MediaType Bond +*UIConstraints: *PageRegion COM10 *MediaType Color +*UIConstraints: *PageRegion COM10 *MediaType Card +*UIConstraints: *PageRegion COM10 *MediaType Labels +*UIConstraints: *PageRegion COM10 *MediaType Preprinted +*UIConstraints: *PageRegion COM10 *MediaType Cotton +*UIConstraints: *PageRegion COM10 *MediaType Archive +*UIConstraints: *PageRegion COM10 *MediaType Recycled + + +*UIConstraints: *MediaType None *PageRegion COM10 +*UIConstraints: *MediaType Plain *PageRegion COM10 +*UIConstraints: *MediaType Thick *PageRegion COM10 +*UIConstraints: *MediaType Thin *PageRegion COM10 +*UIConstraints: *MediaType OHP *PageRegion COM10 +*UIConstraints: *MediaType Bond *PageRegion COM10 +*UIConstraints: *MediaType Color *PageRegion COM10 +*UIConstraints: *MediaType Card *PageRegion COM10 +*UIConstraints: *MediaType Labels *PageRegion COM10 +*UIConstraints: *MediaType Preprinted *PageRegion COM10 +*UIConstraints: *MediaType Cotton *PageRegion COM10 +*UIConstraints: *MediaType Archive *PageRegion COM10 +*UIConstraints: *MediaType Recycled *PageRegion COM10 + + +*% DL +*UIConstraints: *PageRegion DL *MediaType None +*UIConstraints: *PageRegion DL *MediaType Plain +*UIConstraints: *PageRegion DL *MediaType Thick +*UIConstraints: *PageRegion DL *MediaType Thin +*UIConstraints: *PageRegion DL *MediaType OHP +*UIConstraints: *PageRegion DL *MediaType Bond +*UIConstraints: *PageRegion DL *MediaType Color +*UIConstraints: *PageRegion DL *MediaType Card +*UIConstraints: *PageRegion DL *MediaType Labels +*UIConstraints: *PageRegion DL *MediaType Preprinted +*UIConstraints: *PageRegion DL *MediaType Cotton +*UIConstraints: *PageRegion DL *MediaType Archive +*UIConstraints: *PageRegion DL *MediaType Recycled + + +*UIConstraints: *MediaType None *PageRegion DL +*UIConstraints: *MediaType Plain *PageRegion DL +*UIConstraints: *MediaType Thick *PageRegion DL +*UIConstraints: *MediaType Thin *PageRegion DL +*UIConstraints: *MediaType OHP *PageRegion DL +*UIConstraints: *MediaType Bond *PageRegion DL +*UIConstraints: *MediaType Color *PageRegion DL +*UIConstraints: *MediaType Card *PageRegion DL +*UIConstraints: *MediaType Labels *PageRegion DL +*UIConstraints: *MediaType Preprinted *PageRegion DL +*UIConstraints: *MediaType Cotton *PageRegion DL +*UIConstraints: *MediaType Archive *PageRegion DL +*UIConstraints: *MediaType Recycled *PageRegion DL + + +*% C5 +*UIConstraints: *PageRegion C5 *MediaType None +*UIConstraints: *PageRegion C5 *MediaType Plain +*UIConstraints: *PageRegion C5 *MediaType Thick +*UIConstraints: *PageRegion C5 *MediaType Thin +*UIConstraints: *PageRegion C5 *MediaType OHP +*UIConstraints: *PageRegion C5 *MediaType Bond +*UIConstraints: *PageRegion C5 *MediaType Color +*UIConstraints: *PageRegion C5 *MediaType Card +*UIConstraints: *PageRegion C5 *MediaType Labels +*UIConstraints: *PageRegion C5 *MediaType Preprinted +*UIConstraints: *PageRegion C5 *MediaType Cotton +*UIConstraints: *PageRegion C5 *MediaType Archive +*UIConstraints: *PageRegion C5 *MediaType Recycled + +*UIConstraints: *MediaType None *PageRegion C5 +*UIConstraints: *MediaType Plain *PageRegion C5 +*UIConstraints: *MediaType Thick *PageRegion C5 +*UIConstraints: *MediaType Thin *PageRegion C5 +*UIConstraints: *MediaType OHP *PageRegion C5 +*UIConstraints: *MediaType Bond *PageRegion C5 +*UIConstraints: *MediaType Color *PageRegion C5 +*UIConstraints: *MediaType Card *PageRegion C5 +*UIConstraints: *MediaType Labels *PageRegion C5 +*UIConstraints: *MediaType Preprinted *PageRegion C5 +*UIConstraints: *MediaType Cotton *PageRegion C5 +*UIConstraints: *MediaType Archive *PageRegion C5 +*UIConstraints: *MediaType Recycled *PageRegion C5 + +*% C6 +*%UIConstraints: *PageRegion C6 *MediaType None +*%UIConstraints: *PageRegion C6 *MediaType Plain +*%UIConstraints: *PageRegion C6 *MediaType Thick +*%UIConstraints: *PageRegion C6 *MediaType Thin +*%UIConstraints: *PageRegion C6 *MediaType OHP +*%UIConstraints: *PageRegion C6 *MediaType Bond +*%UIConstraints: *PageRegion C6 *MediaType Color +*%UIConstraints: *PageRegion C6 *MediaType Card +*%UIConstraints: *PageRegion C6 *MediaType Labels +*%UIConstraints: *PageRegion C6 *MediaType Preprinted +*%UIConstraints: *PageRegion C6 *MediaType Cotton +*%UIConstraints: *PageRegion C6 *MediaType Archive +*%UIConstraints: *PageRegion C6 *MediaType Recycled + +*%UIConstraints: *MediaType None *PageRegion C6 +*%UIConstraints: *MediaType Plain *PageRegion C6 +*%UIConstraints: *MediaType Thick *PageRegion C6 +*%UIConstraints: *MediaType Thin *PageRegion C6 +*%UIConstraints: *MediaType OHP *PageRegion C6 +*%UIConstraints: *MediaType Bond *PageRegion C6 +*%UIConstraints: *MediaType Color *PageRegion C6 +*%UIConstraints: *MediaType Card *PageRegion C6 +*%UIConstraints: *MediaType Labels *PageRegion C6 +*%UIConstraints: *MediaType Preprinted *PageRegion C6 +*%UIConstraints: *MediaType Cotton *PageRegion C6 +*%UIConstraints: *MediaType Archive *PageRegion C6 +*%UIConstraints: *MediaType Recycled *PageRegion C6 + + +*% Monarch +*UIConstraints: *PageRegion Monarch *MediaType None +*UIConstraints: *PageRegion Monarch *MediaType Plain +*UIConstraints: *PageRegion Monarch *MediaType Thick +*UIConstraints: *PageRegion Monarch *MediaType Thin +*UIConstraints: *PageRegion Monarch *MediaType OHP +*UIConstraints: *PageRegion Monarch *MediaType Bond +*UIConstraints: *PageRegion Monarch *MediaType Color +*UIConstraints: *PageRegion Monarch *MediaType Card +*UIConstraints: *PageRegion Monarch *MediaType Labels +*UIConstraints: *PageRegion Monarch *MediaType Preprinted +*UIConstraints: *PageRegion Monarch *MediaType Cotton +*UIConstraints: *PageRegion Monarch *MediaType Archive +*UIConstraints: *PageRegion Monarch *MediaType Recycled + +*UIConstraints: *MediaType None *PageRegion Monarch +*UIConstraints: *MediaType Plain *PageRegion Monarch +*UIConstraints: *MediaType Thick *PageRegion Monarch +*UIConstraints: *MediaType Thin *PageRegion Monarch +*UIConstraints: *MediaType OHP *PageRegion Monarch +*UIConstraints: *MediaType Bond *PageRegion Monarch +*UIConstraints: *MediaType Color *PageRegion Monarch +*UIConstraints: *MediaType Card *PageRegion Monarch +*UIConstraints: *MediaType Labels *PageRegion Monarch +*UIConstraints: *MediaType Preprinted *PageRegion Monarch +*UIConstraints: *MediaType Cotton *PageRegion Monarch +*UIConstraints: *MediaType Archive *PageRegion Monarch +*UIConstraints: *MediaType Recycled *PageRegion Monarch + +*% ========================================================= +*% PageSize - Envelope(MediaType) +*% ========================================================= +*UIConstraints: *PageSize Letter *MediaType Envelope +*UIConstraints: *PageSize Legal *MediaType Envelope +*UIConstraints: *PageSize Oficio_S *MediaType Envelope +*UIConstraints: *PageSize Folio *MediaType Envelope +*UIConstraints: *PageSize A4 *MediaType Envelope +*UIConstraints: *PageSize B5-ISO *MediaType Envelope +*UIConstraints: *PageSize JB5 *MediaType Envelope +*UIConstraints: *PageSize Executive *MediaType Envelope +*UIConstraints: *PageSize A5 *MediaType Envelope +*%UIConstraints: *PageSize A6 *MediaType Envelope +*%UIConstraints: *PageSize PCard4x6 *MediaType Envelope + +*UIConstraints: *MediaType Envelope *PageSize Letter +*UIConstraints: *MediaType Envelope *PageSize Legal +*UIConstraints: *MediaType Envelope *PageSize Oficio_S +*UIConstraints: *MediaType Envelope *PageSize Folio +*UIConstraints: *MediaType Envelope *PageSize A4 +*UIConstraints: *MediaType Envelope *PageSize B5-ISO +*UIConstraints: *MediaType Envelope *PageSize JB5 +*UIConstraints: *MediaType Envelope *PageSize Executive +*UIConstraints: *MediaType Envelope *PageSize A5 +*%UIConstraints: *MediaType Envelope *PageSize A6 +*%UIConstraints: *MediaType Envelope *PageSize PCard4x6 + +*% ========================================================= +*% PageRegion - Envelope(MediaType) +*% ========================================================= +*UIConstraints: *PageRegion Letter *MediaType Envelope +*UIConstraints: *PageRegion Legal *MediaType Envelope +*UIConstraints: *PageRegion Oficio_S *MediaType Envelope +*UIConstraints: *PageRegion Folio *MediaType Envelope +*UIConstraints: *PageRegion A4 *MediaType Envelope +*UIConstraints: *PageRegion B5-ISO *MediaType Envelope +*UIConstraints: *PageRegion JB5 *MediaType Envelope +*UIConstraints: *PageRegion Executive *MediaType Envelope +*UIConstraints: *PageRegion A5 *MediaType Envelope +*%UIConstraints: *PageRegion A6 *MediaType Envelope +*%UIConstraints: *PageRegion PCard4x6 *MediaType Envelope + +*UIConstraints: *MediaType Envelope *PageRegion Letter +*UIConstraints: *MediaType Envelope *PageRegion Legal +*UIConstraints: *MediaType Envelope *PageRegion Oficio_S +*UIConstraints: *MediaType Envelope *PageRegion Folio +*UIConstraints: *MediaType Envelope *PageRegion A4 +*UIConstraints: *MediaType Envelope *PageRegion B5-ISO +*UIConstraints: *MediaType Envelope *PageRegion JB5 +*UIConstraints: *MediaType Envelope *PageRegion Executive +*UIConstraints: *MediaType Envelope *PageRegion A5 +*%UIConstraints: *MediaType Envelope *PageRegion A6 +*%UIConstraints: *MediaType Envelope *PageRegion PCard4x6 + +*% ========================================================= +*% PageSize - OHP(MediaType) +*% ========================================================= +*UIConstraints: *PageSize Legal *MediaType OHP +*UIConstraints: *PageSize Oficio_S *MediaType OHP +*UIConstraints: *PageSize Folio *MediaType OHP +*UIConstraints: *PageSize B5-ISO *MediaType OHP +*UIConstraints: *PageSize JB5 *MediaType OHP +*UIConstraints: *PageSize Executive *MediaType OHP +*UIConstraints: *PageSize A5 *MediaType OHP +*%UIConstraints: *PageSize A6 *MediaType OHP +*UIConstraints: *PageSize COM10 *MediaType OHP +*UIConstraints: *PageSize Monarch *MediaType OHP +*UIConstraints: *PageSize DL *MediaType OHP +*UIConstraints: *PageSize C5 *MediaType OHP +*%UIConstraints: *PageSize C6 *MediaType OHP +*%UIConstraints: *PageSize PCard4x6 *MediaType OHP + +*UIConstraints: *MediaType OHP *PageSize Legal +*UIConstraints: *MediaType OHP *PageSize Oficio_S +*UIConstraints: *MediaType OHP *PageSize Folio +*UIConstraints: *MediaType OHP *PageSize B5-ISO +*UIConstraints: *MediaType OHP *PageSize JB5 +*UIConstraints: *MediaType OHP *PageSize Executive +*UIConstraints: *MediaType OHP *PageSize A5 +*%UIConstraints: *MediaType OHP *PageSize A6 +*UIConstraints: *MediaType OHP *PageSize COM10 +*UIConstraints: *MediaType OHP *PageSize Monarch +*UIConstraints: *MediaType OHP *PageSize DL +*UIConstraints: *MediaType OHP *PageSize C5 +*%UIConstraints: *MediaType OHP *PageSize C6 +*%UIConstraints: *MediaType OHP *PageSize PCard4x6 + +*% ========================================================= +*% PageRegion - OHP(MediaType) +*% ========================================================= +*UIConstraints: *PageRegion Legal *MediaType OHP +*UIConstraints: *PageRegion Oficio_S *MediaType OHP +*UIConstraints: *PageRegion Folio *MediaType OHP +*UIConstraints: *PageRegion B5-ISO *MediaType OHP +*UIConstraints: *PageRegion JB5 *MediaType OHP +*UIConstraints: *PageRegion Executive *MediaType OHP +*UIConstraints: *PageRegion A5 *MediaType OHP +*%UIConstraints: *PageRegion A6 *MediaType OHP +*UIConstraints: *PageRegion COM10 *MediaType OHP +*UIConstraints: *PageRegion Monarch *MediaType OHP +*UIConstraints: *PageRegion DL *MediaType OHP +*UIConstraints: *PageRegion C5 *MediaType OHP +*%UIConstraints: *PageRegion C6 *MediaType OHP +*%UIConstraints: *PageRegion PCard4x6 *MediaType OHP + +*UIConstraints: *MediaType OHP *PageRegion Legal +*UIConstraints: *MediaType OHP *PageRegion Oficio_S +*UIConstraints: *MediaType OHP *PageRegion Folio +*UIConstraints: *MediaType OHP *PageRegion B5-ISO +*UIConstraints: *MediaType OHP *PageRegion JB5 +*UIConstraints: *MediaType OHP *PageRegion Executive +*UIConstraints: *MediaType OHP *PageRegion A5 +*%UIConstraints: *MediaType OHP *PageRegion A6 +*UIConstraints: *MediaType OHP *PageRegion COM10 +*UIConstraints: *MediaType OHP *PageRegion Monarch +*UIConstraints: *MediaType OHP *PageRegion DL +*UIConstraints: *MediaType OHP *PageRegion C5 +*%UIConstraints: *MediaType OHP *PageRegion C6 +*%UIConstraints: *MediaType OHP *PageRegion PCard4x6 + +*% ========================================================= +*% PageSize(Postcard) - MediaType +*% ========================================================= +*%UIConstraints: *PageSize PCard4x6 *MediaType None +*%UIConstraints: *PageSize PCard4x6 *MediaType Plain +*%UIConstraints: *PageSize PCard4x6 *MediaType Thick +*%UIConstraints: *PageSize PCard4x6 *MediaType Thin +*%UIConstraints: *PageSize PCard4x6 *MediaType Bond +*%UIConstraints: *PageSize PCard4x6 *MediaType Color +*%UIConstraints: *PageSize PCard4x6 *MediaType Labels +*%UIConstraints: *PageSize PCard4x6 *MediaType OHP +*%UIConstraints: *PageSize PCard4x6 *MediaType Envelope +*%UIConstraints: *PageSize PCard4x6 *MediaType Preprinted +*%UIConstraints: *PageSize PCard4x6 *MediaType Recycled +*%UIConstraints: *PageSize PCard4x6 *MediaType Cotton +*%UIConstraints: *PageSize PCard4x6 *MediaType Archive + +*%UIConstraints: *MediaType None *PageSize PCard4x6 +*%UIConstraints: *MediaType Plain *PageSize PCard4x6 +*%UIConstraints: *MediaType Thick *PageSize PCard4x6 +*%UIConstraints: *MediaType Thin *PageSize PCard4x6 +*%UIConstraints: *MediaType Bond *PageSize PCard4x6 +*%UIConstraints: *MediaType Color *PageSize PCard4x6 +*%UIConstraints: *MediaType Labels *PageSize PCard4x6 +*%UIConstraints: *MediaType OHP *PageSize PCard4x6 +*%UIConstraints: *MediaType Envelope *PageSize PCard4x6 +*%UIConstraints: *MediaType Preprinted *PageSize PCard4x6 +*%UIConstraints: *MediaType Recycled *PageSize PCard4x6 +*%UIConstraints: *MediaType Cotton *PageSize PCard4x6 +*%UIConstraints: *MediaType Archive *PageSize PCard4x6 + +*% ========================================================= +*% PageRegion(Postcard) - MediaType +*% ========================================================= +*%UIConstraints: *PageRegion PCard4x6 *MediaType None +*%UIConstraints: *PageRegion PCard4x6 *MediaType Plain +*%UIConstraints: *PageRegion PCard4x6 *MediaType Thick +*%UIConstraints: *PageRegion PCard4x6 *MediaType Thin +*%UIConstraints: *PageRegion PCard4x6 *MediaType Bond +*%UIConstraints: *PageRegion PCard4x6 *MediaType Color +*%UIConstraints: *PageRegion PCard4x6 *MediaType Labels +*%UIConstraints: *PageRegion PCard4x6 *MediaType OHP +*%UIConstraints: *PageRegion PCard4x6 *MediaType Envelope +*%UIConstraints: *PageRegion PCard4x6 *MediaType Preprinted +*%UIConstraints: *PageRegion PCard4x6 *MediaType Recycled +*%UIConstraints: *PageRegion PCard4x6 *MediaType Cotton +*%UIConstraints: *PageRegion PCard4x6 *MediaType Archive + +*%UIConstraints: *MediaType None *PageRegion PCard4x6 +*%UIConstraints: *MediaType Plain *PageRegion PCard4x6 +*%UIConstraints: *MediaType Thick *PageRegion PCard4x6 +*%UIConstraints: *MediaType Thin *PageRegion PCard4x6 +*%UIConstraints: *MediaType Bond *PageRegion PCard4x6 +*%UIConstraints: *MediaType Color *PageRegion PCard4x6 +*%UIConstraints: *MediaType Labels *PageRegion PCard4x6 +*%UIConstraints: *MediaType OHP *PageRegion PCard4x6 +*%UIConstraints: *MediaType Envelope *PageRegion PCard4x6 +*%UIConstraints: *MediaType Preprinted *PageRegion PCard4x6 +*%UIConstraints: *MediaType Recycled *PageRegion PCard4x6 +*%UIConstraints: *MediaType Cotton *PageRegion PCard4x6 +*%UIConstraints: *MediaType Archive *PageRegion PCard4x6 + +*% ========================================================= +*% InputSlot(Upper) - MediaType +*% ========================================================= +*%UIConstraints: *InputSlot Upper *MediaType Cotton +*%UIConstraints: *InputSlot Upper *MediaType Color +*%UIConstraints: *InputSlot Upper *MediaType Preprinted +*%UIConstraints: *InputSlot Upper *MediaType Envelope +*%UIConstraints: *InputSlot Upper *MediaType OHP +*%UIConstraints: *InputSlot Upper *MediaType Labels +*%UIConstraints: *InputSlot Upper *MediaType Card +*%UIConstraints: *InputSlot Upper *MediaType Bond + +*%UIConstraints: *MediaType Cotton *InputSlot Upper +*%UIConstraints: *MediaType Color *InputSlot Upper +*%UIConstraints: *MediaType Preprinted *InputSlot Upper +*%UIConstraints: *MediaType Envelope *InputSlot Upper +*%UIConstraints: *MediaType OHP *InputSlot Upper +*%UIConstraints: *MediaType Labels *InputSlot Upper +*%UIConstraints: *MediaType Card *InputSlot Upper +*%UIConstraints: *MediaType Bond *InputSlot Upper + + +*% ========================================================= +*% InputSlot(Upper) - PageSize +*% ========================================================= +*%UIConstraints: *InputSlot Upper *PageSize Monarch +*%UIConstraints: *InputSlot Upper *PageSize DL +*%UIConstraints: *InputSlot Upper *PageSize C5 +*%UIConstraints: *InputSlot Upper *PageSize C6 +*%UIConstraints: *InputSlot Upper *PageSize COM10 +*%UIConstraints: *InputSlot Upper *PageSize PCard4x6 + +*%UIConstraints: *PageSize Monarch *InputSlot Upper +*%UIConstraints: *PageSize DL *InputSlot Upper +*%UIConstraints: *PageSize C5 *InputSlot Upper +*%UIConstraints: *PageSize C6 *InputSlot Upper +*%UIConstraints: *PageSize COM10 *InputSlot Upper +*%UIConstraints: *PageSize PCard4x6 *InputSlot Upper + + +*% ========================================================= +*% InputSlot(Upper) - PageRegion +*% ========================================================= +*%UIConstraints: *InputSlot Upper *PageRegion Monarch +*%UIConstraints: *InputSlot Upper *PageRegion DL +*%UIConstraints: *InputSlot Upper *PageRegion C5 +*%UIConstraints: *InputSlot Upper *PageRegion C6 +*%UIConstraints: *InputSlot Upper *PageRegion COM10 +*%UIConstraints: *InputSlot Upper *PageRegion PCard4x6 + +*%UIConstraints: *PageRegion Monarch *InputSlot Upper +*%UIConstraints: *PageRegion DL *InputSlot Upper +*%UIConstraints: *PageRegion C5 *InputSlot Upper +*%UIConstraints: *PageRegion C6 *InputSlot Upper +*%UIConstraints: *PageRegion COM10 *InputSlot Upper +*%UIConstraints: *PageRegion PCard4x6 *InputSlot Upper + + +*DefaultFont: Courier +*Font AvantGarde-Book: Standard "(001.006S)" Standard ROM +*Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM +*Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM +*Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM +*Font Bookman-Demi: Standard "(001.004S)" Standard ROM +*Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM +*Font Bookman-Light: Standard "(001.004S)" Standard ROM +*Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM +*Font Courier: Standard "(002.004S)" Standard ROM +*Font Courier-Bold: Standard "(002.004S)" Standard ROM +*Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM +*Font Courier-Oblique: Standard "(002.004S)" Standard ROM +*Font Helvetica: Standard "(001.006S)" Standard ROM +*Font Helvetica-Bold: Standard "(001.007S)" Standard ROM +*Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM +*Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM +*Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM +*Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM +*Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM +*Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM +*Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM +*Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM +*Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM +*Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM +*Font Palatino-Bold: Standard "(001.005S)" Standard ROM +*Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM +*Font Palatino-Italic: Standard "(001.005S)" Standard ROM +*Font Palatino-Roman: Standard "(001.005S)" Standard ROM +*Font Symbol: Special "(001.007S)" Special ROM +*Font Times-Bold: Standard "(001.007S)" Standard ROM +*Font Times-BoldItalic: Standard "(001.009S)" Standard ROM +*Font Times-Italic: Standard "(001.007S)" Standard ROM +*Font Times-Roman: Standard "(001.007S)" Standard ROM +*Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM +*Font ZapfDingbats: Special "(001.004S)" Standard ROM + diff --git a/Sanity/system-config-printer-does-not-start/main.fmf b/Sanity/system-config-printer-does-not-start/main.fmf new file mode 100644 index 0000000..e80e145 --- /dev/null +++ b/Sanity/system-config-printer-does-not-start/main.fmf @@ -0,0 +1,25 @@ +summary: system-config-printer start +description: | + Bug summary: system-config-printer does not start when pygobject2 is missing + Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1615270 +contact: Petr Sklenar +component: + - system-config-printer +test: ./runtest.sh +framework: beakerlib +duration: 30m +enabled: true +tag: + - NoRHEL4 + - NoRHEL5 + - TIPfail_infra + - TIPpass +link: + - relates: https://bugzilla.redhat.com/show_bug.cgi?id=1615270 +adjust: + - enabled: false + when: distro != rhel-7 + continue: false +extra-nitrate: TC#0602446 +extra-summary: /CoreOS/system-config-printer/Sanity/system-config-printer-does-not-start +extra-task: /CoreOS/system-config-printer/Sanity/system-config-printer-does-not-start diff --git a/Sanity/system-config-printer-does-not-start/runtest.sh b/Sanity/system-config-printer-does-not-start/runtest.sh new file mode 100755 index 0000000..880e974 --- /dev/null +++ b/Sanity/system-config-printer-does-not-start/runtest.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /CoreOS/system-config-printer/Sanity/system-config-printer-does-not-start +# Description: system-config-printer start +# Author: Petr Sklenar +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2019 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include Beaker environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGE="system-config-printer-libs" + +rlJournalStart + rlPhaseStartSetup + rm -rf /var/tmp/myroot /tmp/log + rlPhaseEnd + + rlPhaseStartTest + rlRun "yum install --nogpgcheck --releasever=/ --installroot=/var/tmp/myroot system-config-printer Xvfb -y" +chroot /var/tmp/myroot /bin/bash < /tmp/log +timeout 66 xvfb-run system-config-printer +echo x$? +EOT + rlRun "grep ^Traceback /tmp/log" 1-255 + rlRun "grep ImportError /tmp/log" 1-255 + rlLog "`echo log;tail -n100 /tmp/log`" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "rm -r /tmp/log /var/tmp/myroot" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd diff --git a/plans/all.fmf b/plans/all.fmf new file mode 100644 index 0000000..73c7530 --- /dev/null +++ b/plans/all.fmf @@ -0,0 +1,9 @@ +summary: Run all tests +discover: + - name: fedora-system-config-printer + how: fmf + url: https://src.fedoraproject.org/tests/system-config-printer.git + - name: fedora + how: fmf +execute: + how: tmt