a test program
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 27 Jan 2006 17:35:08 +0000 (17:35 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 27 Jan 2006 17:35:08 +0000 (17:35 +0000)
testsuite/source/tests/Makefile.am
testsuite/source/tests/SuseTagsTest.cc [new file with mode: 0644]
testsuite/source/tests/selfiles/Office.sel [new file with mode: 0644]
testsuite/source/tests/selfiles/X11.sel [new file with mode: 0644]
testsuite/source/tests/selfiles/default.sel [new file with mode: 0644]

index 1d3b79b..24df131 100644 (file)
@@ -8,3 +8,6 @@ LDADD = $(top_srcdir)/zypp/lib@PACKAGE@.la
 
 #yum_SOURCES = yum.cc
 
+noinst_PROGRAMS = susetagstest
+susetagstest_SOURCES = SuseTagsTest.cc
+
diff --git a/testsuite/source/tests/SuseTagsTest.cc b/testsuite/source/tests/SuseTagsTest.cc
new file mode 100644 (file)
index 0000000..d1c3a1f
--- /dev/null
@@ -0,0 +1,17 @@
+
+#include <zypp/source/susetags/SelectionSelFileParser.h> 
+#include <zypp/base/Logger.h>
+#include <zypp/Pathname.h>
+
+using namespace zypp;
+using namespace zypp::source::susetags;
+
+int main()
+{
+  SelectionSelFileParser parser;
+  SelectionSelFileParser::SelectionEntry entry;
+
+  parser.parse(Pathname("selfiles/default.sel"), entry);
+  DBG << "==============================================================" << std::endl;
+  return 0;
+}
diff --git a/testsuite/source/tests/selfiles/Office.sel b/testsuite/source/tests/selfiles/Office.sel
new file mode 100644 (file)
index 0000000..76ae56d
--- /dev/null
@@ -0,0 +1,286 @@
+# SuSE-Linux-Package-Selection 10.0-61.noarch -- (c) 2004 SuSE Linux AG
+# Needs parser version 4.0 or greater
+# generated on Mon Sep 12 10:40:12 UTC 2005
+
+=Ver: 4.0
+
+=Sel:  Office 10.0 61 noarch
+
+=Sum: Office Applications
+=Sum.bg: Офис приложения
+=Sum.cs: Kancelářské aplikace
+=Sum.da: Kontorprogrammer
+=Sum.de: Büroanwendungen
+=Sum.el: Εφαρμογές Γραφείου
+=Sum.en: Office Applications
+=Sum.es: Aplicaciones ofimáticas
+=Sum.fr: Applications bureautiques
+=Sum.gl: Office Applications
+=Sum.hu: Irodai alkalmazások
+=Sum.it: Applicazioni Office
+=Sum.ja: オフィス・アプリケーション
+=Sum.ko: 사무 응용프로그램
+=Sum.lt: Biuro programos
+=Sum.nl: Kantoorprogramma's
+=Sum.no: Kantoorprogramma's
+=Sum.pl: Aplikacje biurowe
+=Sum.pt: Aplicações de Escritório
+=Sum.pt_BR: Aplicações Office
+=Sum.ru: Офисные приложения
+=Sum.sk: Kancelárske aplikácie
+=Sum.sl: Pisarniške aplikacije
+=Sum.sv: Office-program
+=Sum.zh_CN: 办公应用程序
+=Sum.zh_TW: 辦公室應用程式
+
+=Cat: addon
+
+=Vis: true
+
+=Ord: 15
+
++Ins:
+OpenOffice_org
+aspell
+aspell-32bit
+java-1_4_2-sun
+myspell-american
+myspell-british
+planmaker
+sesam_srv
+startup-notification
+startup-notification-32bit
+taskjuggler-kde
+textmaker
+unixODBC
+unixODBC-32bit
+wine
+-Ins:
+
++Ins.af:
+OpenOffice_org-af
+myspell-african
+-Ins.af:
+
++Ins.ar:
+OpenOffice_org-ar
+-Ins.ar:
+
++Ins.be:
+OpenOffice_org-be-BY
+-Ins.be:
+
++Ins.bg:
+OpenOffice_org-bg
+myspell-bulgarian
+-Ins.bg:
+
++Ins.ca:
+OpenOffice_org-ca
+myspell-catalan
+-Ins.ca:
+
++Ins.cs:
+OpenOffice_org-cs
+myspell-czech
+-Ins.cs:
+
++Ins.cy:
+OpenOffice_org-cy
+myspell-welsh
+-Ins.cy:
+
++Ins.da:
+OpenOffice_org-da
+myspell-danish
+-Ins.da:
+
++Ins.de:
+OpenOffice_org-de
+OpenOffice_org-de-templates
+myspell-german
+-Ins.de:
+
++Ins.default:
+myspell-american
+-Ins.default:
+
++Ins.el:
+OpenOffice_org-el
+myspell-greek
+-Ins.el:
+
++Ins.en_GB:
+OpenOffice_org-en-GB
+-Ins.en_GB:
+
++Ins.en_US:
+myspell-american
+-Ins.en_US:
+
++Ins.es:
+OpenOffice_org-es
+myspell-catalan
+myspell-mexican
+myspell-spanish
+-Ins.es:
+
++Ins.et:
+OpenOffice_org-et
+-Ins.et:
+
++Ins.fi:
+OpenOffice_org-fi
+-Ins.fi:
+
++Ins.fo:
+myspell-faroese
+-Ins.fo:
+
++Ins.fr:
+OpenOffice_org-fr
+myspell-french
+-Ins.fr:
+
++Ins.ga:
+myspell-irish
+-Ins.ga:
+
++Ins.gl:
+myspell-galician
+-Ins.gl:
+
++Ins.gu:
+OpenOffice_org-gu-IN
+-Ins.gu:
+
++Ins.he:
+myspell-hebrew
+-Ins.he:
+
++Ins.hr:
+OpenOffice_org-hr
+myspell-croatian
+-Ins.hr:
+
++Ins.hu:
+OpenOffice_org-hu
+myspell-hungarian
+-Ins.hu:
+
++Ins.id:
+myspell-indonese
+-Ins.id:
+
++Ins.it:
+OpenOffice_org-it
+myspell-italian
+-Ins.it:
+
++Ins.ja:
+OpenOffice_org-ja
+-Ins.ja:
+
++Ins.ko:
+OpenOffice_org-ko
+-Ins.ko:
+
++Ins.lt:
+myspell-lithuanian
+-Ins.lt:
+
++Ins.ms:
+myspell-malay
+-Ins.ms:
+
++Ins.nb:
+OpenOffice_org-nb
+myspell-norsk-bokmaal
+-Ins.nb:
+
++Ins.nl:
+OpenOffice_org-nl
+myspell-dutch
+-Ins.nl:
+
++Ins.nn:
+OpenOffice_org-nn
+myspell-norsk-nynorsk
+-Ins.nn:
+
++Ins.pa:
+OpenOffice_org-pa-IN
+-Ins.pa:
+
++Ins.pl:
+OpenOffice_org-pl
+myspell-polish
+-Ins.pl:
+
++Ins.pt:
+OpenOffice_org-pt
+myspell-portuguese
+-Ins.pt:
+
++Ins.pt_BR:
+OpenOffice_org-pt-BR
+myspell-brazilian
+-Ins.pt_BR:
+
++Ins.ro:
+myspell-romanian
+-Ins.ro:
+
++Ins.ru:
+OpenOffice_org-ru
+myspell-russian
+-Ins.ru:
+
++Ins.rw:
+myspell-kinyarwanda
+-Ins.rw:
+
++Ins.sk:
+OpenOffice_org-sk
+myspell-slovak
+-Ins.sk:
+
++Ins.sl:
+OpenOffice_org-sl
+myspell-slovene
+-Ins.sl:
+
++Ins.sv:
+OpenOffice_org-sv
+myspell-swedish
+-Ins.sv:
+
++Ins.tr:
+OpenOffice_org-tr
+-Ins.tr:
+
++Ins.uk:
+myspell-ukrainian
+-Ins.uk:
+
++Ins.vi:
+OpenOffice_org-vi
+-Ins.vi:
+
++Ins.xh:
+OpenOffice_org-xh
+-Ins.xh:
+
++Ins.zh_CN:
+OpenOffice_org-zh-CN
+-Ins.zh_CN:
+
++Ins.zh_TW:
+OpenOffice_org-zh-TW
+-Ins.zh_TW:
+
++Ins.zu:
+OpenOffice_org-zu
+myspell-zulu
+-Ins.zu:
+
diff --git a/testsuite/source/tests/selfiles/X11.sel b/testsuite/source/tests/selfiles/X11.sel
new file mode 100644 (file)
index 0000000..5011bc7
--- /dev/null
@@ -0,0 +1,326 @@
+# SuSE-Linux-Package-Selection 10.0-61.noarch -- (c) 2004 SuSE Linux AG
+# Needs parser version 4.0 or greater
+# generated on Mon Sep 12 10:40:31 UTC 2005
+
+=Ver: 4.0
+
+=Sel:  X11 10.0 61 noarch
+
+=Sum: Graphical Base System
+=Sum.bg: Графична основна система
+=Sum.cs: Základní grafický systém
+=Sum.da: Grafisk basissystem
+=Sum.de: Grafisches Grundsystem
+=Sum.el: Βασικό Γραφικό Σύστημα
+=Sum.en: Graphical Base System
+=Sum.es: Sistema gráfico básico
+=Sum.fr: Système graphique de base
+=Sum.gl: Graphical Base System
+=Sum.hu: Grafikus alaprendszer
+=Sum.it: Sistema di base grafico
+=Sum.ja: 基本的なグラフィック環境
+=Sum.ko: 그래픽적인 기본 시스템
+=Sum.lt: Pagrindinė grafinė sistema
+=Sum.nl: Grafisch basissysteem
+=Sum.no: Grafisch basissysteem
+=Sum.pl: Podstawowy system graficzny
+=Sum.pt: Sistema Gráfico Base
+=Sum.pt_BR: Sistema Gráfico Base
+=Sum.ru: Graphical Base System
+=Sum.sk: Základný grafický systém
+=Sum.sl: Grafična osnova sistema
+=Sum.sv: Grafiskt grundläggande system
+=Sum.zh_CN: 图形基础系统
+=Sum.zh_TW: 圖形化基礎系統
+
+=Cat: addon
+
+=Vis: true
+
+=Ord: 10
+
++Ins:
+3ddiag
+855resolution
+CheckHardware
+Crystalcursors
+WindowMaker
+WindowMaker-applets
+WindowMaker-themes
+agfa-fonts
+audiofile
+audiofile-32bit
+compat-libstdc++
+cups-client
+cups-libs
+cups-libs-32bit
+desktop-data-SuSE
+esound
+esound-32bit
+expat
+expat-32bit
+fglrx
+fontconfig
+fontconfig-32bit
+fonts-config
+freeglut
+freeglut-32bit
+freetype2
+freetype2-32bit
+fribidi
+fvwm2
+ghostscript-fonts-std
+giflib
+giflib-32bit
+glib
+glib-32bit
+glibc-i18ndata
+gnome-filesystem
+gtk
+gtk-32bit
+ifnteuro
+imlib
+imlib-32bit
+intlfnts
+libjpeg
+libjpeg-32bit
+liblcms
+liblcms-32bit
+libmng
+libmng-32bit
+libnetpbm
+libnetpbm-32bit
+libpng
+libpng-32bit
+libstroke
+libtiff
+libtiff-32bit
+libusb
+libusb-32bit
+lsb
+m4
+netpbm
+openssh-askpass
+patch
+pax
+perl-TermReadLine-Gnu
+perl-XML-Parser
+perl-gettext
+qt3
+qt3-32bit
+rsync
+sax2
+sax2-gui
+sax2-ident
+sax2-libsax
+sax2-libsax-perl
+sax2-tools
+testgart
+tightvnc
+tree
+unclutter
+wget
+x11-dri-i915
+x11-input-evdev
+x11-input-gunze
+x11-input-synaptics
+x11-input-wacom
+x11-tools
+xbanner
+xdg-menu
+xdmbgrd
+xkeyboard-config
+xlockmore
+xorg-x11
+xorg-x11-Mesa
+xorg-x11-Mesa-32bit
+xorg-x11-Xvnc
+xorg-x11-fonts-75dpi
+xorg-x11-fonts-scalable
+xorg-x11-libs
+xorg-x11-libs-32bit
+xorg-x11-server
+xorg-x11-server-glx
+xterm
+xtermset
+yast2-control-center
+yast2-qt
+yast2-x11
+zsh
+-Ins:
+
++Ins.ar_IN:
+indic-fonts
+-Ins.ar_IN:
+
++Ins.bn:
+indic-fonts
+-Ins.bn:
+
++Ins.cs:
+xfntl2
+-Ins.cs:
+
++Ins.el:
+-Ins.el:
+
++Ins.en_IN:
+indic-fonts
+-Ins.en_IN:
+
++Ins.fa:
+farsifonts
+-Ins.fa:
+
++Ins.gu:
+indic-fonts
+-Ins.gu:
+
++Ins.hi:
+indic-fonts
+-Ins.hi:
+
++Ins.hu:
+xfntl2
+-Ins.hu:
+
++Ins.ja:
+IPAGothic
+IPAMincho
+IPAPGothic
+IPAPMincho
+IPAUIGothic
+anthy
+canna
+canna-libs
+cannadic
+grass
+kasumi
+kinput2
+libotf
+m17n-db
+m17n-lib
+mlterm
+mlterm-m17n
+mlterm-scim
+mlterm-uim
+sazanami-fonts
+scim
+scim-anthy
+scim-canna
+scim-input-pad
+scim-m17n
+scim-qtimm
+scim-skk
+scim-uim
+scim-wnn
+skkdic
+termcap
+uim
+uim-qt
+wnn-sdk
+wordcut
+xfntjp
+xiterm
+-Ins.ja:
+
++Ins.kn_IN:
+indic-fonts
+-Ins.kn_IN:
+
++Ins.ko:
+ami
+amidic
+baekmuk
+baekmuk-ttf
+gdk-pixbuf
+mlterm
+mlterm-m17n
+mlterm-scim
+mlterm-uim
+nabi
+scim
+scim-hangul
+scim-input-pad
+scim-qtimm
+ttf-alee
+unfonts
+xiterm
+-Ins.ko:
+
++Ins.ml:
+indic-fonts
+-Ins.ml:
+
++Ins.mr:
+indic-fonts
+-Ins.mr:
+
++Ins.pa:
+indic-fonts
+-Ins.pa:
+
++Ins.ru:
+xorg-x11-fonts-cyrillic
+-Ins.ru:
+
++Ins.sk:
+xfntl2
+-Ins.sk:
+
++Ins.sl_SI:
+xfntl2
+-Ins.sl_SI:
+
++Ins.ta:
+indic-fonts
+-Ins.ta:
+
++Ins.te:
+indic-fonts
+-Ins.te:
+
++Ins.zh_CN:
+fribidi
+ifntchia
+libtabe
+mlterm
+mlterm-m17n
+mlterm-scim
+mlterm-uim
+scim
+scim-input-pad
+scim-pinyin
+scim-qtimm
+scim-tables
+scim-tables-ja
+scim-tables-ko
+scim-tables-zh
+ttf-founder-simplified
+xcin
+xiterm
+-Ins.zh_CN:
+
++Ins.zh_TW:
+fribidi
+ifntchia
+libchewing
+libtabe
+mlterm
+mlterm-m17n
+mlterm-scim
+mlterm-uim
+scim
+scim-chewing
+scim-input-pad
+scim-pinyin
+scim-qtimm
+scim-tables
+scim-tables-ja
+scim-tables-ko
+scim-tables-zh
+ttf-founder-traditional
+xcin
+xiterm
+-Ins.zh_TW:
+
diff --git a/testsuite/source/tests/selfiles/default.sel b/testsuite/source/tests/selfiles/default.sel
new file mode 100644 (file)
index 0000000..e60ac1f
--- /dev/null
@@ -0,0 +1,363 @@
+# SuSE-Linux-Package-Selection 10.0-61.noarch -- (c) 2004 SuSE Linux AG
+# Needs parser version 4.0 or greater
+# generated on Mon Sep 12 10:40:39 UTC 2005
+
+=Ver: 4.0
+
+=Sel:  default 10.0 61 noarch
+
+=Sum: Standard System with KDE
+=Sum.bg: Стандартна система с KDE
+=Sum.cs: Standardní systém s KDE
+=Sum.da: Standardsystem med KDE
+=Sum.de: Standardsystem mit KDE
+=Sum.el: Κανονικό Σύστημα με KDE
+=Sum.en: Standard System with KDE
+=Sum.es: Sistema estándar con KDE
+=Sum.fr: Système standard avec KDE
+=Sum.gl: Standard System with KDE
+=Sum.hu: Alaprendszer és KDE
+=Sum.it: Sistema standard con KDE
+=Sum.ja: KDEを搭載した標準システム
+=Sum.ko: Standard System with KDE
+=Sum.lt: Įprasta sistema su KDE
+=Sum.nl: Standaardsysteem met KDE
+=Sum.no: Standaardsysteem met KDE
+=Sum.pl: Standardowy system z KDE
+=Sum.pt: Sistema Standard com KDE
+=Sum.pt_BR: Sistema Padrão com KDE
+=Sum.ru: Standard System with KDE
+=Sum.sk: Standard System with KDE
+=Sum.sl: Standardni sistem s KDE
+=Sum.sv: Standard System with KDE
+=Sum.zh_CN: 带有 KDE 的标准系统
+=Sum.zh_TW: 標準系統與 KDE
+
++Rec:
+Kde-Desktop
+SuSE-Documentation
+-Rec:
+
++Req:
+Min
+X11
+-Req:
+
++Con:
+Minimal+X11
+Minimal
+default-Gnome
+-Con:
+
+=Cat: baseconf
+
+=Vis: true
+
+=Ord: 04
+
++Ins:
+SDL
+SDL-32bit
+SDL_image
+SDL_mixer
+SDL_mixer-32bit
+SDL_net
+SDL_perl
+SDL_ttf
+a2ps
+aalib
+aalib-32bit
+alsa-firmware
+amarok-xine
+atk
+atk-32bit
+autofs
+avm_fcdsl
+bluez-libs
+bluez-utils
+bootsplash
+bootsplash-theme-SuSE
+cairo
+cairo-32bit
+capi4linux
+capi4linux-32bit
+cdrdao
+cdrecord
+cifs-mount
+compat
+compat-32bit
+compat-curl2
+compat-curl2-32bit
+cups
+cups-SUSE-ppds-dat
+cups-client
+cups-drivers
+cups-drivers-stp
+cups-libs
+cups-libs-32bit
+dbus-1-qt
+dbus-1-qt-32bit
+dbus-1-x11
+dcraw
+dos2unix
+dosbootdisk
+dosfstools
+enigma
+expat
+expat-32bit
+filters
+fontconfig
+fontconfig-32bit
+foomatic-filters
+freeciv
+freetype2
+freetype2-32bit
+frozen-bubble
+gail
+gail-32bit
+gdb
+ghostscript-fonts-other
+ghostscript-fonts-std
+ghostscript-library
+ghostscript-x11
+gl-117
+gle
+glib
+glib-32bit
+glitz
+glitz-32bit
+gnome-desktop
+gnome-desktop-32bit
+gnome-filesystem
+gnome-icon-theme
+gnome-keyring
+gnome-keyring-32bit
+gpg2
+gtk2
+gtk2-32bit
+hplip
+hplip-hpijs
+i4l-base
+i4l-isdnlog
+i4lfirm
+id3lib
+ispell
+ispell-american
+ispell-british
+joe
+jpeg
+kdebindings3-python
+kdelibs3-doc
+libao
+libbonoboui
+libbonoboui-32bit
+libcap
+libcap-32bit
+libcroco
+libcroco-32bit
+libevent
+libgimpprint
+libglade2
+libglade2-32bit
+libgnomecanvas
+libgnomecanvas-32bit
+libgnomecups
+libgnomecups-32bit
+libgnomeprint
+libgnomeprint-32bit
+libgnomeprintui
+libgnomeprintui-32bit
+libgnomesu
+libgnomeui
+libgnomeui-32bit
+libgsf
+libgsf-32bit
+libgssapi
+libgtkhtml
+libgtkhtml-32bit
+libimnxcert
+libjpeg
+libjpeg-32bit
+libkexif
+libkipi
+liblcms
+liblcms-32bit
+libmal
+libmikmod
+libmikmod-32bit
+libmng
+libmng-32bit
+libnetpbm
+libnetpbm-32bit
+libogg
+libogg-32bit
+libpcap
+libpng
+libpng-32bit
+librpcsecgss
+librsvg
+librsvg-32bit
+libsamplerate
+libtiff
+libtiff-32bit
+libvisual
+libvorbis
+libvorbis-32bit
+libwmf
+linux-atm-lib
+linux32
+man-pages
+manufacturer-PPDs
+mc
+microcode_ctl
+mtools
+net-snmp
+nfs-utils
+nfsidmap
+ntfsprogs
+ocrad
+openct
+openobex
+opensc
+pango
+pango-32bit
+perl-DBD-SQLite
+perl-DBI
+perl-TermReadKey
+perl-TimeDate
+pico
+pin
+powerpc32
+ppp
+pptp
+python
+python-32bit
+python-xml
+qca
+qscintilla
+samba-client
+screen
+setserial
+shared-mime-info
+slang
+slang-32bit
+smpppd
+strace
+strace-32bit
+subdomain-leaf-cert
+sudo
+sumf
+supertux
+tiff
+unrar
+unzip
+update-alternatives
+v4l-conf
+vacation
+wdiff
+wget
+wireless-tools
+words
+wvdial
+wvstreams
+xinetd
+xntp
+xorg-x11-libs
+xorg-x11-libs-32bit
+xpdf-config
+yast2-printer
+yast2-samba-server
+yp-tools
+ypbind
+zip
+ziptool
+zisofs-tools
+zsh
+-Ins:
+
++Ins.bg:
+ispell-bulgarian
+-Ins.bg:
+
++Ins.cs:
+ispell-czech
+vlna
+-Ins.cs:
+
++Ins.de:
+ispell-german
+ispell-ngerman
+-Ins.de:
+
++Ins.el:
+ispell-greek
+-Ins.el:
+
++Ins.es:
+ispell-spanish
+-Ins.es:
+
++Ins.fr:
+ispell-french
+-Ins.fr:
+
++Ins.hu:
+ispell-hungarian
+-Ins.hu:
+
++Ins.it:
+ispell-italian
+-Ins.it:
+
++Ins.ja:
+CID-keyed-fonts-Wada
+canna
+canna-libs
+cannadic
+ghostscript-cjk
+jtools
+lv
+nkf
+termcap
+-Ins.ja:
+
++Ins.ko:
+CID-keyed-fonts-Munhwa
+ghostscript-cjk
+-Ins.ko:
+
++Ins.nl:
+ispell-dutch
+-Ins.nl:
+
++Ins.pl:
+ispell-polish
+-Ins.pl:
+
++Ins.pt:
+ispell-portuguese
+-Ins.pt:
+
++Ins.ru:
+ghostscript-fonts-rus
+ispell-russian
+-Ins.ru:
+
++Ins.sk:
+ispell-slovak
+vlna
+-Ins.sk:
+
++Ins.sv:
+ispell-swedish
+-Ins.sv:
+
++Ins.zh_CN:
+ghostscript-cjk
+-Ins.zh_CN:
+
++Ins.zh_TW:
+CID-keyed-fonts-MOE
+ghostscript-cjk
+-Ins.zh_TW:
+