summaryrefslogtreecommitdiffstats
path: root/tests/commands.sh.in
diff options
context:
space:
mode:
authorKarel Zak2010-03-30 13:47:33 +0200
committerKarel Zak2010-03-30 13:51:58 +0200
commitcf8de26afe0db5c330f4c913d736dc1f840add88 (patch)
treef84ed27c9f14a7bdf3e98b0fdc79a35b6bb91ec4 /tests/commands.sh.in
parenthwclock: add --predict for predicting RTC reading at a given time (diff)
downloadkernel-qcow2-util-linux-cf8de26afe0db5c330f4c913d736dc1f840add88.tar.gz
kernel-qcow2-util-linux-cf8de26afe0db5c330f4c913d736dc1f840add88.tar.xz
kernel-qcow2-util-linux-cf8de26afe0db5c330f4c913d736dc1f840add88.zip
lib: add strtosize() function
This function int strtosize(const char *str, uintmax_t *res) supports {K,M,G,T,E,P}iB and {K,M,G,T,E,P}B suffixes. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/commands.sh.in')
-rw-r--r--tests/commands.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/commands.sh.in b/tests/commands.sh.in
index 8399738c8..f52a68687 100644
--- a/tests/commands.sh.in
+++ b/tests/commands.sh.in
@@ -10,6 +10,7 @@ TS_HELPER_BYTESWAP="$TS_TOPDIR/helpers/test_byteswap"
TS_HELPER_MD5="$TS_TOPDIR/helpers/test_md5"
TS_HELPER_ISMOUNTED="$TOPDIR/lib/test_ismounted"
+TS_HELPER_STRTOSIZE="$TOPDIR/lib/test_strtosize"
# TODO: use partx
TS_HELPER_PARTITIONS="$TOPDIR/shlibs/blkid/samples/partitions"