Testsuite for bug #50107: --tmux --fg should also write how to access it.

This commit is contained in:
Ole Tange 2017-01-21 19:55:14 +01:00
parent c0035e21b6
commit 968e2ab2bb
8 changed files with 26 additions and 31 deletions

6
NEWS
View file

@ -8,8 +8,8 @@
* --sqlworker only reads from the DBURL: any command and any arguments * --sqlworker only reads from the DBURL: any command and any arguments
are ignored. are ignored.
* --sqlmaster +DBURL will append commands to the DBURL and not erase * --sqlmaster +DBURL will append different commands to the DBURL and
the table. not erase the table.
* If --results contain a replacement string, no tree structure with * If --results contain a replacement string, no tree structure with
args will be generated. args will be generated.
@ -29,7 +29,7 @@
of Metric Temporal Logic of Metric Temporal Logic
http://people.inf.ethz.ch/trayteld/papers/tacas17-aerial/aerial.pdf http://people.inf.ethz.ch/trayteld/papers/tacas17-aerial/aerial.pdf
* 使用GNU parallel命令并行预处理数据https://blog.razrlele.com/p/1843 * 使用GNU parallel命令并行预处理数据: https://blog.razrlele.com/p/1843
* GNU Parallel as a queuing system: * GNU Parallel as a queuing system:
http://puntoblogspot.blogspot.com/2017/01/gnu-parallel-as-queuing-system.html http://puntoblogspot.blogspot.com/2017/01/gnu-parallel-as-queuing-system.html

View file

@ -207,18 +207,6 @@ file:///home/tange/privat/parallel/doc/release_new_version
from:tange@gnu.org from:tange@gnu.org
to:parallel@gnu.org, bug-parallel@gnu.org to:parallel@gnu.org, bug-parallel@gnu.org
cc:Tim Cuthbertson <tim3d.junk@gmail.com>,
Ludovic Courtès <ludo@gnu.org>, Markus Ammer <mkmm@gmx-topmail.de>,
Pavel Nuzhdin <pnzhdin@gmail.com>, Phil Sung <psung@alum.mit.edu>,
Michael Shigorin <mike@altlinux.org>,
Chris Howey <howeyc@gmail.com>,
Fethican Coşkuner <fethicanc@gmail.com>,
Rogério Brito <rbrito@ime.usp.br>,
Koen Vervloesem <koen@vervloesem.eu>,
R. Tyler Croy <tyler@monkeypox.org>,
kerick@shiftedbit.net, Christian Faulhammer <fauli@gentoo.org>,
Ryoichiro Suzuki <ryoichiro.suzuki@gmail.com>,
Jesse Alama <jesse.alama@gmail.com>
Subject: GNU Parallel 20170122 ('George Michael') released <<[stable]>> Subject: GNU Parallel 20170122 ('George Michael') released <<[stable]>>

View file

@ -24,7 +24,7 @@
use strict; use strict;
use Getopt::Long; use Getopt::Long;
$Global::progname="niceload"; $Global::progname="niceload";
$Global::version = 20170122; $Global::version = 20170123;
Getopt::Long::Configure("bundling","require_order"); Getopt::Long::Configure("bundling","require_order");
get_options_from_array(\@ARGV) || die_usage(); get_options_from_array(\@ARGV) || die_usage();
if($opt::version) { if($opt::version) {

View file

@ -1269,7 +1269,7 @@ sub check_invalid_option_combinations {
sub init_globals { sub init_globals {
# Defaults: # Defaults:
$Global::version = 20170122; $Global::version = 20170123;
$Global::progname = 'parallel'; $Global::progname = 'parallel';
$Global::infinity = 2**31; $Global::infinity = 2**31;
$Global::debug = 0; $Global::debug = 0;

View file

@ -486,9 +486,9 @@ making it harder to finance development. However, if you pay 10000
EUR, you should feel free to use B<--will-cite> in scripts. EUR, you should feel free to use B<--will-cite> in scripts.
=item B<--block> I<size> (beta testing) =item B<--block> I<size>
=item B<--block-size> I<size> (beta testing) =item B<--block-size> I<size>
Size of block in bytes to read at a time. The I<size> can be postfixed Size of block in bytes to read at a time. The I<size> can be postfixed
with K, M, G, T, P, E, k, m, g, t, p, or e which would multiply the with K, M, G, T, P, E, k, m, g, t, p, or e which would multiply the
@ -640,7 +640,7 @@ If I<eof-str> is omitted, there is no end of file string. If neither
B<-E> nor B<-e> is used, no end of file string is used. B<-E> nor B<-e> is used, no end of file string is used.
=item B<--env> I<var> (alpha testing) =item B<--env> I<var> (beta testing)
Copy environment variable I<var>. This will copy I<var> to the Copy environment variable I<var>. This will copy I<var> to the
environment that the command is run in. This is especially useful for environment that the command is run in. This is especially useful for
@ -1448,9 +1448,9 @@ it to the command.
Only used with B<--pipe>. Only used with B<--pipe>.
=item B<--results> I<name> (alpha testing) =item B<--results> I<name> (beta testing)
=item B<--res> I<name> (alpha testing) =item B<--res> I<name> (beta testing)
Save the output into files. Save the output into files.
@ -1702,9 +1702,9 @@ B<--return> is ignored when used with B<--sshlogin :> or when not used
with B<--sshlogin>. with B<--sshlogin>.
=item B<--round-robin> (beta testing) =item B<--round-robin>
=item B<--round> (beta testing) =item B<--round>
Normally B<--pipe> will give a single block to each instance of the Normally B<--pipe> will give a single block to each instance of the
command. With B<--round-robin> all blocks will at random be written to command. With B<--round-robin> all blocks will at random be written to
@ -1926,7 +1926,7 @@ when called with B<--shebang>).
Use B<--sqlmaster> instead. Use B<--sqlmaster> instead.
=item B<--sqlmaster> I<DBURL> (alpha testing) =item B<--sqlmaster> I<DBURL> (beta testing)
Submit jobs via SQL server. I<DBURL> must point to a table, which will Submit jobs via SQL server. I<DBURL> must point to a table, which will
contain the same information as B<--joblog>, the values from the input contain the same information as B<--joblog>, the values from the input
@ -1965,12 +1965,12 @@ It can also be an alias from ~/.sql/aliases:
:myalias mysql:///mydb/paralleljobs :myalias mysql:///mydb/paralleljobs
=item B<--sqlandworker> I<DBURL> (alpha testing) =item B<--sqlandworker> I<DBURL> (beta testing)
Shorthand for: B<--sqlmaster> I<DBURL> B<--sqlworker> I<DBURL>. Shorthand for: B<--sqlmaster> I<DBURL> B<--sqlworker> I<DBURL>.
=item B<--sqlworker> I<DBURL> (alpha testing) =item B<--sqlworker> I<DBURL> (beta testing)
Execute jobs via SQL server. Read the input sources variables from the Execute jobs via SQL server. Read the input sources variables from the
table pointed to by I<DBURL>. The I<command> on the command line table pointed to by I<DBURL>. The I<command> on the command line
@ -2172,13 +2172,13 @@ different dir for the files. Setting B<--tmpdir> is equivalent to
setting $TMPDIR. setting $TMPDIR.
=item B<--tmux> (alpha testing) =item B<--tmux> (beta testing)
Use B<tmux> for output. Start a B<tmux> session and run each job in a Use B<tmux> for output. Start a B<tmux> session and run each job in a
window in that session. No other output will be produced. window in that session. No other output will be produced.
=item B<--tmuxpane> (alpha testing) =item B<--tmuxpane> (beta testing)
Use B<tmux> for output but put output into panes in the first window. Use B<tmux> for output but put output into panes in the first window.
Useful if you want to monitor the progress of less than 100 concurrent Useful if you want to monitor the progress of less than 100 concurrent
@ -2370,7 +2370,7 @@ To see the difference try:
I<mydir> can contain GNU B<parallel>'s replacement strings. I<mydir> can contain GNU B<parallel>'s replacement strings.
=item B<--wait> (beta testing) =item B<--wait>
Wait for all commands to complete. Wait for all commands to complete.

View file

@ -576,7 +576,7 @@ $Global::Initfile && unlink $Global::Initfile;
exit ($err); exit ($err);
sub parse_options { sub parse_options {
$Global::version = 20170122; $Global::version = 20170123;
$Global::progname = 'sql'; $Global::progname = 'sql';
# This must be done first as this may exec myself # This must be done first as this may exec myself

View file

@ -234,6 +234,10 @@ par_kill_children_timeout() {
pstree $$ | grep sleep | grep -v anacron | grep -v screensave | wc pstree $$ | grep sleep | grep -v anacron | grep -v screensave | wc
} }
par_tmux_fg() {
echo 'bug #50107: --tmux --fg should also write how to access it'
stdout parallel --tmux --fg sleep ::: 3 | perl -pe 's/.tmp\S+/tmp/'
}
export -f $(compgen -A function | grep par_) export -f $(compgen -A function | grep par_)
compgen -A function | grep par_ | sort | compgen -A function | grep par_ | sort |

View file

@ -1425,3 +1425,6 @@ par_testhalt sleep 1; exit 0
par_testhalt parallel: This job succeeded: par_testhalt parallel: This job succeeded:
par_testhalt sleep 1; exit 0 par_testhalt sleep 1; exit 0
par_testhalt 50 par_testhalt 50
par_tmux_fg bug #50107: --tmux --fg should also write how to access it
par_tmux_fg See output with: tmux -S tmp attach
par_tmux_fg open terminal failed: not a terminal