* [gentoo-commits] gentoo-projects commit in portage-utils/tests/qtbz2: dotest
@ 2011-02-28 16:20 Mike Frysinger (vapier)
0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger (vapier) @ 2011-02-28 16:20 UTC (permalink / raw
To: gentoo-commits
vapier 11/02/28 16:20:22
Added: dotest
Log:
add qxpak/qtbz2 tests
Revision Changes Path
1.1 portage-utils/tests/qtbz2/dotest
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/qtbz2/dotest?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/qtbz2/dotest?rev=1.1&content-type=text/plain
Index: dotest
===================================================================
#!/bin/bash
set -e
rm -rf tmp
mkdir tmp
cd tmp
files="a b c d e f"
for l in ${files} ; do
echo $l > $l
done
qxpak -c xpak ${files}
tar jcf tarbz2 ${files}
FDIR=$PWD
raw_tar_check()
{
mkdir new
cd new
# ignore "trailing garbage" warning
tar jxf ../$1 2>&1 | sed -e '/trailing garbage/d' -e '/^$/d'
for l in ${files} ; do
diff -u "$FDIR"/$l $l
rm $l
done
cd ..
rmdir new
rm $1
}
# check basic creation
qtbz2 -j tarbz2 xpak tbz2
raw_tar_check tbz2
# check basic creation with dir change
mkdir new
cd new
qtbz2 -j tarbz2 xpak tbz2 -d ..
raw_tar_check tbz2
cd ..
rmdir new
# check basic creation (with guess)
qtbz2 -j tarbz2 xpak
raw_tar_check tarbz2.tbz2
# check basic creation (with better guess)
mv tarbz2 x.tar.bz2
mv xpak x.xpak
qtbz2 -j x.tar.bz2 x.xpak
raw_tar_check x.tbz2
# check basic creation (with best guess)
qtbz2 -j x.tar.bz2
raw_tar_check x.tbz2
# check basic splitting
qtbz2 -j x.tar.bz2
mkdir new
cd new
qtbz2 -s ../x.tbz2
cmp {.,..}/x.tar.bz2
cmp {.,..}/x.xpak
rm x.{xpak,tar.bz2}
cd ..
rmdir new
# check basic splitting to diff dir
mkdir new
qtbz2 -s x.tbz2 -d new
cmp {.,new}/x.tar.bz2
cmp {.,new}/x.xpak
rm new/x.{xpak,tar.bz2}
rmdir new
cd ..
rm -rf tmp
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/tests/qtbz2: dotest
@ 2011-03-01 5:00 Mike Frysinger (vapier)
0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-01 5:00 UTC (permalink / raw
To: gentoo-commits
vapier 11/03/01 05:00:25
Modified: dotest
Log:
use new common code
Revision Changes Path
1.2 portage-utils/tests/qtbz2/dotest
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/qtbz2/dotest?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/qtbz2/dotest?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/qtbz2/dotest?r1=1.1&r2=1.2
Index: dotest
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/qtbz2/dotest,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dotest 28 Feb 2011 16:20:22 -0000 1.1
+++ dotest 1 Mar 2011 05:00:25 -0000 1.2
@@ -1,5 +1,7 @@
#!/bin/bash
+. ../init.sh
+
set -e
rm -rf tmp
@@ -77,3 +79,5 @@
cd ..
rm -rf tmp
+
+pass
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/tests/qtbz2: dotest
@ 2011-12-22 19:30 Mike Frysinger (vapier)
0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger (vapier) @ 2011-12-22 19:30 UTC (permalink / raw
To: gentoo-commits
vapier 11/12/22 19:30:47
Modified: dotest
Log:
redo test output to get info on a per-test basis
Revision Changes Path
1.4 portage-utils/tests/qtbz2/dotest
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/qtbz2/dotest?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/qtbz2/dotest?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/qtbz2/dotest?r1=1.3&r2=1.4
Index: dotest
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/qtbz2/dotest,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- dotest 12 Dec 2011 21:04:24 -0000 1.3
+++ dotest 22 Dec 2011 19:30:47 -0000 1.4
@@ -30,33 +30,38 @@
rm $1
}
-# check basic creation
+################
qtbz2 -j tarbz2 xpak tbz2
raw_tar_check tbz2
+tpass "check basic creation"
-# check basic creation with dir change
+################
mkdir new
cd new
qtbz2 -j tarbz2 xpak tbz2 -d ..
raw_tar_check tbz2
cd ..
rmdir new
+tpass "check basic creation with dir change"
-# check basic creation (with guess)
+################
qtbz2 -j tarbz2 xpak
raw_tar_check tarbz2.tbz2
+tpass "check basic creation (with guess)"
-# check basic creation (with better guess)
+################
mv tarbz2 x.tar.bz2
mv xpak x.xpak
qtbz2 -j x.tar.bz2 x.xpak
raw_tar_check x.tbz2
+tpass "check basic creation (with better guess)"
-# check basic creation (with best guess)
+################
qtbz2 -j x.tar.bz2
raw_tar_check x.tbz2
+tpass "check basic creation (with best guess)"
-# check basic splitting
+################
qtbz2 -j x.tar.bz2
mkdir new
cd new
@@ -66,15 +71,17 @@
rm x.{xpak,tar.bz2}
cd ..
rmdir new
+tpass "check basic splitting"
-# check basic splitting to diff dir
+################
mkdir new
qtbz2 -s x.tbz2 -d new
cmp {.,new}/x.tar.bz2
cmp {.,new}/x.xpak
rm new/x.{xpak,tar.bz2}
rmdir new
+tpass "check basic splitting to diff dir"
cleantmpdir
-pass
+end
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-22 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 16:20 [gentoo-commits] gentoo-projects commit in portage-utils/tests/qtbz2: dotest Mike Frysinger (vapier)
-- strict thread matches above, loose matches on Subject: below --
2011-03-01 5:00 Mike Frysinger (vapier)
2011-12-22 19:30 Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox