+# test that php is working
+php -r 'echo "PHP is working OK\n";'
+
+# test that pear is working
+pear info PEAR >/dev/null
+
+# needed pkgs for upgrade test
+rpm -q php-packagexml2cl
+
+[ -s pear.ls ] || { poldek --upa; poldek -q -Q --skip-installed --cmd 'ls php-pear-*' > pear.ls; }
+[ -s pear.desc ] || {
+ for pkg in $(cat pear.ls); do
+ poldek -q --skip-installed --cmd "desc $pkg"
+ done
+} > pear.desc