parallel: test for --er and --extensionreplace

This commit is contained in:
Ole Tange 2012-04-24 23:59:29 +02:00
parent 243d3f2c48
commit 6485581f5a
5 changed files with 33 additions and 32 deletions

3
NEWS
View file

@ -7,6 +7,9 @@
* sql --dbsize will now list sizes of all databases if given no
database.
* GNU Parallel is now in Debian Unstable.
apt-get install parallel
* Article: Computational and experimental analyses of
retrotransposon-associated minisatellite DNAs in the soybean genome.
http://www.biomedcentral.com/content/supplementary/1471-2105-13-s2-s13-s1.pdf

View file

@ -113,7 +113,7 @@ pod2html src/niceload.pod > ../parallel-web/parallel/niceload.html
pod2html src/sem.pod > ../parallel-web/parallel/sem.html
pushd ../parallel-web/parallel
cvs up
cvs ci
cvs ci -m "New release"
pushd
== Commit released version ==
@ -171,41 +171,15 @@ cc:Sandro Cazzaniga <kharec@mandriva.org>,
Ryoichiro Suzuki <ryoichiro.suzuki@gmail.com>,
Jesse Alama <jesse.alama@gmail.com>
Subject: GNU Parallel 20120422 ('Mærsk') released
Subject: GNU Parallel 20120522 ('') released
GNU Parallel 20120422 ('Mærsk') has been released. It is
GNU Parallel 20120522 ('') has been released. It is
available for download at: http://ftp.gnu.org/gnu/parallel/
New in this release:
* A race condition bug caused restructuring of a central piece of the
code. Thus this release of GNU Parallel should be considered beta
quality.
* sql --dbsize will now list sizes of all databases if given no
database.
* Article: Computational and experimental analyses of
retrotransposon-associated minisatellite DNAs in the soybean genome.
http://www.biomedcentral.com/content/supplementary/1471-2105-13-s2-s13-s1.pdf
* Blog post: GNU parallel - the best thing since sliced bread.
https://arrayal.wordpress.com/2012/03/27/gnu-parallel-the-best-thing-since-sliced-bread/
* Blog post: GNU Parallel makes everything faster.
http://compbiously.blogspot.com/2012/03/gnu-parallel-makes-everything-faster.html
* Blog post (German): Howto: GNU parallel.
http://d24m.de/2012/04/05/howto-gnu-parallel/
* Blog post: Running in Parallel
http://interactivity.ifactory.com/2012/04/running-in-parallel/
* 20000 watched the first intro video.
http://pi.dk/1
* The first 5 have received their GNU Parallel merchandise
https://www.gnu.org/software/parallel/merchandise.html
* Blog post: Running commands in parallel using bash.
http://blog.michaelboman.org/2012/04/running-commands-in-parallel-using-bash.html
* Bug fixes and man page updates.

View file

@ -419,7 +419,7 @@ sub options_hash {
"null|0" => \$::opt_0,
"quote|q" => \$::opt_q,
"I=s" => \$::opt_I,
"extensionreplace|er" => \$::opt_U,
"extensionreplace|er=s" => \$::opt_U,
"U=s" => \$::opt_retired,
"basenamereplace|bnr=s" => \$::opt_basenamereplace,
"dirnamereplace|dnr=s" => \$::opt_dirnamereplace,

View file

@ -12,6 +12,14 @@ echo "### Test --bnr"
parallel -j1 -k -X --bnr FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
parallel -k --bnr FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
echo "### Test --extensionreplace"
parallel -j1 -k -X --extensionreplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
parallel -k --extensionreplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
echo "### Test --er"
parallel -j1 -k -X --er FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
parallel -k --er FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
echo "### Test --basenameextensionreplace"
parallel -j1 -k -X --basenameextensionreplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b
parallel -k --basenameextensionreplace FOO echo FOO ::: /a/b.c a/b.c b.c /a/b a/b b

View file

@ -14,6 +14,22 @@ b.c
b
b
b
### Test --extensionreplace
/a/b a/b b /a/b a/b b
/a/b
a/b
b
/a/b
a/b
b
### Test --er
/a/b a/b b /a/b a/b b
/a/b
a/b
b
/a/b
a/b
b
### Test --basenameextensionreplace
b b b b b b
b