summaryrefslogtreecommitdiffstats
path: root/single-file-test.sh
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-01-06 21:19:33 -0800
committerRoland McGrath <roland@redhat.com>2009-01-06 21:19:33 -0800
commit5fee4451816ab63111d2675b3999b96a4b8b16af (patch)
treede34878ae714fe9f485083beb864781181729e9f /single-file-test.sh
parent23fc1b5ab44476fe22a9bf1de337a263c87a5b74 (diff)
downloaddebuginfo-test-scripts-5fee4451816ab63111d2675b3999b96a4b8b16af.tar.gz
debuginfo-test-scripts-5fee4451816ab63111d2675b3999b96a4b8b16af.tar.xz
debuginfo-test-scripts-5fee4451816ab63111d2675b3999b96a4b8b16af.zip
rejigger directory layout
Diffstat (limited to 'single-file-test.sh')
-rwxr-xr-xsingle-file-test.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/single-file-test.sh b/single-file-test.sh
index 6e8f5b5..fbdaf1c 100755
--- a/single-file-test.sh
+++ b/single-file-test.sh
@@ -9,13 +9,7 @@ shift
run_all()
{
set -e
- make -s -r -f - ${which}.list <<\EOF
-%.list: */summary
- (echo 'all:\'; \
- list-files.sh $* | sed 's,^.*$$,test@/&\\,'; \
- echo \;) > $@.new
- mv -f $@.new $@
-EOF
+ update-file-lists.mk which=${which}
# The spawn of make run copies that do run_one(), below.
make -s -j$(getconf _NPROCESSORS_ONLN) -r -f ${which}.list -f - <<EOF
@@ -31,8 +25,13 @@ run_one()
dir=${file//\//:}
name=${file##*/}
+ rpm=$file
+ archless=${rpm%.*}
+ arch=${rpm##*.}
+ d=${arch}/${archless:0:2}/${archless:2:2}
+
mkdir -p $work/$dir &&
- bunzip2 < $file.bz2 > $work/$dir/$name &&
+ bunzip2 < $d/$file.bz2 > $work/$dir/$name &&
echo "${*//{\}/$name}" > $work/$dir/cmd && {
(cd $work/$dir && . cmd) > $work/$dir/log 2>&1