From 14d4fdfd51dac696aec7e790b038b6d68c5d40c9 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Mon, 20 Feb 2006 13:55:56 +0000 Subject: [PATCH] add testcase for Huha bug --- testsuite/source/tests/PatternTagParserTest.cc | 16 +- .../source/tests/patfiles/base-10-33.i586.pat | 589 +++++++++++++++++++++ 2 files changed, 601 insertions(+), 4 deletions(-) create mode 100644 testsuite/source/tests/patfiles/base-10-33.i586.pat diff --git a/testsuite/source/tests/PatternTagParserTest.cc b/testsuite/source/tests/PatternTagParserTest.cc index e86e503..4a55fb4 100644 --- a/testsuite/source/tests/PatternTagParserTest.cc +++ b/testsuite/source/tests/PatternTagParserTest.cc @@ -11,10 +11,18 @@ int main() { Pattern::Ptr pattern; try { - pattern = zypp::source::susetags::parsePattern (Pathname("patfiles/default.pat")); - cout << *pattern << endl; - pattern = zypp::source::susetags::parsePattern (Pathname("patfiles/NOTTHERE.pat")); - cout << *pattern << endl; + pattern = zypp::source::susetags::parsePattern (Pathname("patfiles/default.pat")); + cout << *pattern << endl; + pattern = zypp::source::susetags::parsePattern (Pathname("patfiles/NOTTHERE.pat")); + cout << *pattern << endl; + + pattern = zypp::source::susetags::parsePattern (Pathname("patfiles/base-10-33.i586.pat")); + if (pattern->userVisible()) + { + ERR << "Error parsing userVisible" << std::endl; + return 1; + } + cout << *pattern << endl; } catch (Exception & excpt_r) { ZYPP_CAUGHT (excpt_r); diff --git a/testsuite/source/tests/patfiles/base-10-33.i586.pat b/testsuite/source/tests/patfiles/base-10-33.i586.pat new file mode 100644 index 0000000..89b065b --- /dev/null +++ b/testsuite/source/tests/patfiles/base-10-33.i586.pat @@ -0,0 +1,589 @@ +# SUSE Linux Patterns 10-33.i586 -- (c) 2006 SUSE LINUX Products GmbH +# generated on Mon Feb 13 13:03:01 UTC 2006 + +=Ver: 5.0 + +=Pat: base 10 33 i586 + +=Sum: Base System + +=Vis: false + +=Ord: 100 + +=Ico: yast-xen-dirinstall + ++Des: +enemy of the state BATF Waco, Texas UNSCOM codes Peking SEAL Team 6 Consul +Baranyi Semtex MD5 bluebird INSCOM nuclear argus csystems e-bomb freedom mania +SEAL Team 6 Mena Albright Ruby Ridge monarchist cryptographic New World Order +chameleon man JFK Lexis-Nexis espionage + +Bellcore Mantis nuclear data haven class struggle Ermes Fortezza number key +lock picking benelux 22nd SAS Arnett cryptanalysis Leitrim Ft. Bragg explosion +cryptographic illuminati dictionary Janet Reno investigation Peking Treasury +spy CDMA Geraldton bomb counter terrorism Compsec Capricorn + +Cocaine HAMASMOIS IRA subversive kibo JUWTF arrangements Aldergrove AUTODIN +rail gun terrorist propaganda MD5 RSA FBI MILSATCOM SP4 kibo $400 million in +gold bullion diwn North Korea Bellcore nuclear Europol 64 Vauxhall Cross +subversive Sundevil quarter enigma Albanian +-Des: + + ++Prc: +SPident +SuSEfirewall2 +aaa_base +aaa_skel +acl +acpid +ash +at +attr +audit-libs +autofs +autoyast2 +autoyast2-installation +autoyast2-utils +bash +bash-x86 +bc +bind-libs +bind-libs-32bit +bind-libs-64bit +bind-libs-x86 +bind-utils +binutils +binutils-32bit +binutils-64bit +binutils-x86 +blocxx +bootcycle +bootloader-theme-SLES +bootsplash +bootsplash-theme-SuSE-SLES +busybox +bzip2 +bzip2-32bit +bzip2-64bit +bzip2-x86 +checkmedia +compat +compat-32bit +compat-libstdc++ +compat-libstdc++-64bit +compat-libstdc++-x86 +compat-openssl097g +compat-openssl097g-32bit +compat-openssl097g-64bit +compat-openssl097g-x86 +compat-x86 +convmv +coreutils +coreutils-x86 +cpio +cpp +cpufrequtils +cpufrequtils-32bit +cpufrequtils-64bit +cpufrequtils-x86 +cracklib +cracklib-32bit +cracklib-64bit +cracklib-x86 +cron +cups-client +cups-libs +cups-libs-32bit +cups-libs-64bit +cups-libs-x86 +curl +curl-32bit +curl-64bit +curl-x86 +cyrus-sasl +cyrus-sasl-32bit +cyrus-sasl-64bit +cyrus-sasl-saslauthd +cyrus-sasl-x86 +db +db-32bit +db-64bit +db-utils +db-x86 +dbus-1 +dbus-1-32bit +dbus-1-64bit +dbus-1-glib +dbus-1-glib-32bit +dbus-1-glib-64bit +dbus-1-glib-x86 +dbus-1-x86 +deltarpm +device-mapper +devs +dhcpcd +diffutils +dmraid +dos2unix +dosfstools +e2fsprogs +e2fsprogs-32bit +e2fsprogs-64bit +e2fsprogs-x86 +ed +efibootmgr +eject +elilo +ethtool +evms +expat +expat-32bit +expat-64bit +expat-x86 +fbset +file +file-32bit +file-64bit +file-x86 +filesystem +fillup +findutils +finger +freetype2 +freetype2-32bit +freetype2-64bit +freetype2-x86 +gawk +gdb +gdb-32bit +gdb-64bit +gdb-x86 +gdbm +gdbm-32bit +gdbm-64bit +gdbm-x86 +gettext +gettext-32bit +gettext-64bit +gettext-x86 +glib2 +glib2-32bit +glib2-64bit +glib2-x86 +glibc +glibc-32bit +glibc-64bit +glibc-i18ndata +glibc-locale +glibc-locale-32bit +glibc-locale-64bit +glibc-locale-x86 +glibc-x86 +gnome-filesystem +gpart +gpg +gpm +gpm-32bit +gpm-64bit +gpm-x86 +grep +groff +grub +gzip +hal +hal-32bit +hal-64bit +hal-resmgr +hal-x86 +hdparm +hfsutils +hwinfo +ia32el +ifplugd +info +initviocons +insserv +ipmitool +iproute2 +iptables +iputils +isapnp +jfsutils +joe +kbd +kernel-update-tool +klogd +krb5 +krb5-32bit +krb5-64bit +krb5-x86 +ksh +ksymoops +ldapcpplib +less +libacl +libacl-32bit +libacl-64bit +libacl-x86 +libaio +libaio-32bit +libaio-64bit +libaio-x86 +libattr +libattr-32bit +libattr-64bit +libattr-x86 +libcap +libcap-32bit +libcap-64bit +libcap-x86 +libcom_err +libcom_err-32bit +libcom_err-64bit +libcom_err-x86 +libevent +libgcc +libgcc-32bit +libgcc-64bit +libgcc-x86 +libgcrypt +libgcrypt-32bit +libgcrypt-64bit +libgcrypt-x86 +libgpg-error +libgpg-error-32bit +libgpg-error-64bit +libgpg-error-x86 +libgssapi +libidn +libidn-32bit +libidn-64bit +libidn-x86 +libjpeg +libjpeg-32bit +libjpeg-64bit +libjpeg-x86 +liblcms +liblcms-32bit +liblcms-64bit +liblcms-x86 +libmng +libmng-32bit +libmng-64bit +libmng-x86 +libnscd +libpcap +libpfm +libpng +libpng-32bit +libpng-64bit +libpng-x86 +librpcsecgss +libstdc++ +libstdc++-32bit +libstdc++-64bit +libstdc++-x86 +libtiff +libtiff-32bit +libtiff-64bit +libtiff-x86 +libtool +libtool-32bit +libtool-64bit +libtool-x86 +libusb +libusb-32bit +libusb-64bit +libusb-x86 +libxcrypt +libxcrypt-32bit +libxcrypt-64bit +libxcrypt-x86 +libxml2 +libxml2-32bit +libxml2-64bit +libxml2-x86 +libxslt +libxslt-32bit +libxslt-64bit +libxslt-x86 +liby2util +libzio +libzypp +lilo +limal +limal-bootloader +limal-ca-mgm +limal-ca-mgm-perl +limal-perl +linux32 +log4net +logrotate +lsof +lukemftp +lvm2 +m4 +mailx +make +man +man-pages +master-boot-code +mcelog +mdadm +microcode_ctl +mingetty +mkinitrd +mkisofs +mktemp +module-init-tools +mono-core +mono-core-32bit +mono-core-x86 +mono-data +mono-web +mpt-status +multipath-tools +mutt +ncompress +ncurses +ncurses-32bit +ncurses-64bit +ncurses-x86 +net-tools +netcat +netcfg +netdate +nfs-utils +nfsidmap +nscd +ntfsprogs +numactl +openct +openldap2-client +openldap2-client-32bit +openldap2-client-64bit +openldap2-client-x86 +opensc +openslp +openslp-32bit +openslp-64bit +openslp-server +openslp-x86 +openssh +openssl +openssl-32bit +openssl-64bit +openssl-x86 +opie +pam +pam-32bit +pam-64bit +pam-modules +pam-modules-32bit +pam-modules-64bit +pam-modules-x86 +pam-x86 +parted +parted-32bit +parted-64bit +parted-x86 +patch +pax +pciutils +pcre +pcre-32bit +pcre-64bit +pcre-x86 +pcsc-lite +pdisk +perl +perl-32bit +perl-64bit +perl-x86 +permissions +pfmon +pmtools +popt +popt-32bit +popt-64bit +popt-x86 +portmap +postfix +powerpc32 +powersave +powersave-libs +powersave-libs-32bit +powersave-libs-64bit +powersave-libs-x86 +ppp +pptp +prctl +procinfo +procmail +procps +providers +psmisc +pwdutils +readline +readline-32bit +readline-64bit +readline-x86 +recode +reiserfs +release-notes-sles +resmgr +resmgr-32bit +resmgr-64bit +resmgr-x86 +rpm +rsh +rsync +rug +s390-32 +s390-tools +salinfo +sash +scpm +screen +scsi +sed +sharutils +siga +sitar +sles-release +smartmontools +smpppd +sqlite +sqlite-32bit +sqlite-64bit +sqlite-x86 +star +strace +strace-32bit +strace-64bit +strace-x86 +sudo +suse-build-key +sysconfig +sysfsutils +sysfsutils-32bit +sysfsutils-64bit +sysfsutils-x86 +syslinux +syslog-ng +sysvinit +tar +tcpd +tcpd-32bit +tcpd-64bit +tcpd-x86 +tcpdump +tcsh +telnet +terminfo +timezone +udev +unzip +usbutils +utempter +utempter-32bit +utempter-64bit +utempter-x86 +util-linux +vim +vlan +vlock +w3m +wget +wireless-tools +wol +wvdial +wvstreams +xfsprogs +xinetd +xntp +xntp-doc +yast2 +yast2-backup +yast2-boot-server +yast2-bootfloppy +yast2-bootloader +yast2-ca-management +yast2-cd-creator +yast2-core +yast2-country +yast2-dhcp-server +yast2-dns-server +yast2-firewall +yast2-hardware-detection +yast2-heartbeat +yast2-http-server +yast2-inetd +yast2-installation +yast2-instserver +yast2-irda +yast2-iscsi-client +yast2-iscsi-server +yast2-kerberos-client +yast2-ldap +yast2-ldap-client +yast2-ldap-server +yast2-mail +yast2-mail-aliases +yast2-mouse +yast2-ncurses +yast2-network +yast2-nfs-client +yast2-nfs-server +yast2-nis-client +yast2-nis-server +yast2-ntp-client +yast2-online-update +yast2-packagemanager +yast2-packager +yast2-pam +yast2-perl-bindings +yast2-pkg-bindings +yast2-power-management +yast2-powertweak +yast2-printer +yast2-profile-manager +yast2-repair +yast2-restore +yast2-runlevel +yast2-s390 +yast2-samba-client +yast2-samba-server +yast2-schema +yast2-security +yast2-slp +yast2-slp-server +yast2-storage +yast2-storage-evms +yast2-storage-lib +yast2-support +yast2-sysconfig +yast2-tftp-server +yast2-theme-SuSELinux +yast2-trans-stats +yast2-transfer +yast2-tune +yast2-update +yast2-users +yast2-vm +yast2-xml +yast2-you-server +yp-tools +ypbind +zip +zisofs-tools +zlib +zlib-32bit +zlib-64bit +zlib-x86 +zmd +zsh +-Prc: + -- 2.7.4