packagekit/data/tests/pk-spawn-test.sh
Richard Hughes 768cc50222 bugfix: In PkSpawn don't convert stdout from the C locale to UTF-8, as some backends are quite capable of outputting valid UTF-8 themselves.
We already do UTF8 validation in the pk_strsafe() function, so the conversion is safe to remove.
2008-06-13 08:43:47 +01:00

39 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Copyright (C) 2007 Richard Hughes <richard@hughsie.com>
# Licensed under the GNU General Public License Version 2
# 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.
time=0.30
echo -e "percentage\t0"
echo -e "percentage\t10"
sleep ${time}
echo -e "percentage\t20"
sleep ${time}
echo -e "percentage\t30"
sleep ${time}
echo -e "percentage\t40"
sleep ${time}
echo -e "package\tavailable\tpolkit;0.0.1;i386;data\tPolicyKit daemon"
echo -e "package\tinstalled\tpolkit-gnome;0.0.1;i386;data\tPolicyKit helper (•) for GNOME"
sleep ${time}
echo -e -n "package\tavailable\tConsoleKit"
sleep ${time}
echo -e "\tSystem console checker"
echo -e "percentage\t50"
sleep ${time}
echo -e "percentage\t60"
sleep ${time}
echo -e "percentage\t70"
sleep ${time}
echo -e "percentage\t80"
sleep ${time}
echo -e "percentage\t90"
echo -e "package\tinstalled\tgnome-power-manager;0.0.1;i386;data\tMore useless software"
sleep ${time}
echo -e "percentage\t100"