testsuite: 'ren' no longer needed.

This commit is contained in:
Ole Tange 2012-08-13 20:17:14 +02:00
parent b6a729c5f7
commit d7961606b4
4 changed files with 10 additions and 8 deletions

View file

@ -181,6 +181,9 @@ for stable long-term use.
New in this release: New in this release:
* Parallel Proxy Scraper & Checker Tool
https://www.youtube.com/watch?v=iXCeR_XsP6o
* GNU Parallel was presented at Chiang Mai Bar Camp * GNU Parallel was presented at Chiang Mai Bar Camp
http://barcampchiangmai.org/ http://barcampchiangmai.org/
See write up here: See write up here:

View file

@ -2,7 +2,11 @@ testsuite: ../src/parallel tests-to-run/* wanted-results/* startdb prereqlocal p
time sh Start.sh time sh Start.sh
date date
local: ../src/parallel tests-to-run/*local* wanted-results/*local* prereqlocal testdb: ../src/parallel tests-to-run/*sql* wanted-results/*sql* prereqdb
time sh Start.sh sql
date
testlocal: ../src/parallel tests-to-run/*local* wanted-results/*local* prereqlocal
time sh Start.sh local time sh Start.sh local
date date
@ -10,7 +14,6 @@ prereqlocal: installparallel
seq 1 2 >/dev/null || (echo seq is required for testsuite; /bin/false) seq 1 2 >/dev/null || (echo seq is required for testsuite; /bin/false)
stdout echo || (echo stdout is required for testsuite; /bin/false) stdout echo || (echo stdout is required for testsuite; /bin/false)
convert >/dev/null || (echo convert is required for testsuite; /bin/false) convert >/dev/null || (echo convert is required for testsuite; /bin/false)
ren '$$_' a || (echo ren is required for testsuite; /bin/false)
echo 1+2 | bc >/dev/null || (echo bc is required for testsuite; /bin/false) echo 1+2 | bc >/dev/null || (echo bc is required for testsuite; /bin/false)
echo | gawk '{print "gawk is installed"}' || (echo gawk is required for testsuite; /bin/false) echo | gawk '{print "gawk is installed"}' || (echo gawk is required for testsuite; /bin/false)
expect -c 'spawn cat; puts "expect is installed"' || (echo expect is required for testsuite; /bin/false) expect -c 'spawn cat; puts "expect is installed"' || (echo expect is required for testsuite; /bin/false)

View file

@ -4,8 +4,7 @@ rsync -Ha --delete input-files/testdir/ tmp/
cd tmp cd tmp
echo echo test of cat pipe sh | parallel -j 50 2>&1 echo echo test of cat pipe sh | parallel -j 50 2>&1
find . -name '*.jpg' | parallel -j +0 convert -geometry 120 {} {}_thumb.jpg find . -name '*.jpg' | parallel -j +0 convert -geometry 120 {} {//}/thumb_{/}
find . -name '*_thumb.jpg' | ren 's:/([^/]+)_thumb.jpg$:/thumb_$1:'
ls | parallel ls | sort ls | parallel ls | sort
ls | parallel echo ls | sort ls | parallel echo ls | sort

View file

@ -1,14 +1,11 @@
#!/bin/bash #!/bin/bash
PAR=parallel
rm -rf tmp 2>/dev/null rm -rf tmp 2>/dev/null
cp -a input-files/testdir2 tmp cp -a input-files/testdir2 tmp
cd tmp cd tmp
echo '### Test filenames containing UTF-8' echo '### Test filenames containing UTF-8'
find . -name '*.jpg' | $PAR -j +0 convert -geometry 120 {} {}_thumb.jpg find . -name '*.jpg' | parallel -j +0 convert -geometry 120 {} {//}/thumb_{/}
find . -name '*_thumb.jpg' | ren 's:/([^/]+)_thumb.jpg$:/thumb_$1:'
find |grep -v CVS | sort find |grep -v CVS | sort