Phoronix Forums  

Go Back   Phoronix Forums > Phoronix > Phoronix Test Suite

Phoronix Test Suite Discussion & collaboration on the Phoronix Test Suite software and specification.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2008, 01:08 PM
uncle_fungus uncle_fungus is offline
Phoronix Test Suite
 
Join Date: Apr 2008
Location: York, UK
Posts: 134
Default Tests can't find pts-wav-sample-file.tar.bz2

At least the compress-pbzip2 test fails to find the wav/bz2 file in the pts-shared folder on installation.

Some of the audio encoding suite tests may also have this problem, but I need to double-check this.

I'm running the latest tarball from phorogit.
Reply With Quote
  #2  
Old 04-30-2008, 08:29 PM
Michael Michael is online now
Phoronix
 
Join Date: Jun 2006
Location: United States
Posts: 4,561
Default

Were you using an already existing benchmarking environment? As in it was already installed? Try running phoronix-test-suite force-install audio-encoding. For those new users, this issue shouldn't be present.
Reply With Quote
  #3  
Old 04-30-2008, 08:50 PM
uncle_fungus uncle_fungus is offline
Phoronix Test Suite
 
Join Date: Apr 2008
Location: York, UK
Posts: 134
Default

No, that was from a fresh installation.

In order to get the pbzip2 test to run I needed to extract the tarball and then copy it to "bigfile" which is what the installation step seemed incapable of doing.

Running the audio-encoding suite after that worked flawlessly, but I don't know whether that was because I'd already extracted the tarball, or because it doesn't have the same problem.

I'm about to test another fresh installation starting with the audio-encoding suite to see if that will work.
Reply With Quote
  #4  
Old 04-30-2008, 09:10 PM
Michael Michael is online now
Phoronix
 
Join Date: Jun 2006
Location: United States
Posts: 4,561
Default

Great, thanks, let me know how that new test goes. I experienced this issue once right after changing the scripts (previous to that there were ZERO problems), but I thought all regressions related to the new downloading were worked out.
Reply With Quote
  #5  
Old 04-30-2008, 09:30 PM
uncle_fungus uncle_fungus is offline
Phoronix Test Suite
 
Join Date: Apr 2008
Location: York, UK
Posts: 134
Default

There are no problems with the audio-encoding suite, and I've worked out what the problem is with the pbzip2 test. In the install script, the cd .. that is on line 20, should actually be on line 14 thus:
Code:
#!/bin/sh

cd $1

tar -xvf bzip2-1.0.5.tar.gz
tar -xvf pbzip2-1.0.2.tar.gz
cd bzip2-1.0.5/
make
cp -f libbz2.a ../pbzip2-1.0.2
cp -f bzlib.h ../pbzip2-1.0.2
cd ..
cd pbzip2-1.0.2/
make pbzip2-static
cd ..

if [ ! -f ../pts-shared/pts-wav-sample-file.wav ]
  then
     tar -jxvf ../pts-shared/pts-wav-sample-file.tar.bz2 -C ../pts-shared/
fi

rm -f bigfile
for i in 1 2 3 4 5 6 7 8
do
    cat ../pts-shared/pts-wav-sample-file.wav >> bigfile
done

cat > compress-pbzip2 <<EOT
#!/bin/sh
cd pbzip2-1.0.2/
/usr/bin/time -f "PBZIP2 Compress Time: %e Seconds" ./pbzip2 -k -f -p\$NUM_CPU_CORES -r -5 ../bigfile 2>&1
rm -f bigfile.bz2
EOT
chmod +x compress-pbzip2
Without the above modification the test will run correctly, but only if you have installed one of the other tests, like encode-mp3, which decompress the tar.bz2 file. The pbzip2 installation will give a set of tar errors, but continue anyway.

If you install pbzip2 first, the test will fail.

Last edited by uncle_fungus; 04-30-2008 at 09:33 PM. Reason: Extra details
Reply With Quote
  #6  
Old 04-30-2008, 09:34 PM
Michael Michael is online now
Phoronix
 
Join Date: Jun 2006
Location: United States
Posts: 4,561
Default

Oops, should be fixed in git. In all other scripts, that command is at the top of file, but for whatever reason I didn't do that in compress-pbzip2, but I have just moved it back up there. I was always running audio-encoding before compress-pbzip2 so it worked. Thanks for the report!
Reply With Quote
  #7  
Old 04-30-2008, 09:36 PM
uncle_fungus uncle_fungus is offline
Phoronix Test Suite
 
Join Date: Apr 2008
Location: York, UK
Posts: 134
Default

No problem.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:27 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.