commit paexec for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package paexec for openSUSE:Factory checked in at 2024-07-01 11:22:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/paexec (Old) and /work/SRC/openSUSE:Factory/.paexec.new.18349 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "paexec" Mon Jul 1 11:22:01 2024 rev:6 rq:1184150 version:1.1.6 Changes: -------- --- /work/SRC/openSUSE:Factory/paexec/paexec.changes 2021-09-15 22:51:50.854940023 +0200 +++ /work/SRC/openSUSE:Factory/.paexec.new.18349/paexec.changes 2024-07-01 11:22:52.952542096 +0200 @@ -1,0 +2,11 @@ +Sun Jun 30 21:09:30 UTC 2024 - Dirk Müller <dmueller@suse.com> + +- update to 1.1.6: + * option -n: ignore leading spaces and tabs + * Add more tests + * Fix: Before running commands reset signal handlers for + ALRM, PIPE and CHLD to SIG_DFL. Also, unblock these signals. + This fixes some misterius problems with commands running alarm(2). + * libmaa>=1.5.1 is required for build + +------------------------------------------------------------------- Old: ---- paexec-1.1.4.tar.gz New: ---- paexec-1.1.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ paexec.spec ++++++ --- /var/tmp/diff_new_pack.Eh5lvr/_old 2024-07-01 11:22:53.420559034 +0200 +++ /var/tmp/diff_new_pack.Eh5lvr/_new 2024-07-01 11:22:53.420559034 +0200 @@ -1,7 +1,7 @@ # # spec file for package paexec # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: paexec -Version: 1.1.4 +Version: 1.1.6 Release: 0 Summary: Utility for task distribution over networks or CPUs License: MIT @@ -25,7 +25,7 @@ URL: https://paexec.sourceforge.net/ Source0: https://sourceforge.net/projects/paexec/files/paexec/paexec-%{version}/%{name}-%{version}.tar.gz Source1: %{name}-rpmlintrc -BuildRequires: libmaa-devel +BuildRequires: libmaa-devel >= 1.5.1 BuildRequires: mk-configure >= 0.27.0 BuildRequires: mk-configure-rpm-macros BuildRequires: runawk ++++++ paexec-1.1.4.tar.gz -> paexec-1.1.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/Makefile new/paexec-1.1.6/Makefile --- old/paexec-1.1.4/Makefile 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/Makefile 2024-06-07 14:21:07.000000000 +0200 @@ -11,7 +11,7 @@ SUBPRJ += examples/${d}:tests examples/${d}:examples .endfor -tests = transp_closed_stdin scripts +tests = transp_closed_stdin scripts delayed_output .for d in ${tests} SUBPRJ += tests/${d}:tests .endfor @@ -41,3 +41,24 @@ .include "use.mk" .include "Makefile.inc" .include <mkc.subprj.mk> + +# Copyright (c) 2007-2024 Aleksey Cheusov <vle@gmx.net> +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/Makefile.inc new/paexec-1.1.6/Makefile.inc --- old/paexec-1.1.4/Makefile.inc 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/Makefile.inc 2024-06-07 14:21:07.000000000 +0200 @@ -35,4 +35,4 @@ INTEXTS_REPLS += version ${VERSION:U} # -VERSION= 1.1.3 +VERSION= 1.1.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/doc/NEWS new/paexec-1.1.6/doc/NEWS --- old/paexec-1.1.4/doc/NEWS 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/doc/NEWS 2024-06-07 14:21:07.000000000 +0200 @@ -1,4 +1,34 @@ ====================================================================== +Version 1.1.6, by Aleksey Cheusov, Fri, 7 Jun 2024 9:19:17 +0400 + + option -n: ignore leading spaces and tabs + + Add more tests + +====================================================================== +Version 1.1.5, by Aleksey Cheusov, Wed, 29 May 2024 20:06:42 +0400 + + Fix: Before running commands reset signal handlers for ALRM, PIPE + and CHLD to SIG_DFL. Also, unblock these signals. This fixes some + misterius problems with commands running alarm(2). + + libmaa>=1.5.1 is required for build + +====================================================================== +Version 1.1.4, by Aleksey Cheusov, Mon, 1 Jun 2020 17:10:38 +0300 + + Remove local function pr_open and use it from libmaa library. + So, now paexec requires libmaa. + + "mkcmake help" shows configuring variables and descriptions for + targets. + + Use mkc's feature "getdelim" instead of local implementation. + So, we need at least mk-configure 0.33.0 + + Optimization flags defaults to "-O2 -g" + +====================================================================== Version 1.1.3, by Aleksey Cheusov, Thu, 14 May 2020 20:54:21 +0300 Fix use of uninitialized array. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/paargs/paargs.1 new/paexec-1.1.6/paargs/paargs.1 --- old/paexec-1.1.4/paargs/paargs.1 2020-06-01 16:44:21.000000000 +0200 +++ new/paexec-1.1.6/paargs/paargs.1 2024-06-07 14:21:17.000000000 +0200 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "paargs 1" -.TH paargs 1 "2020-06-01" "" "" +.TH paargs 1 "2024-06-07" "" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/paexec/Makefile new/paexec-1.1.6/paexec/Makefile --- old/paexec-1.1.4/paexec/Makefile 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/paexec/Makefile 2024-06-07 14:21:07.000000000 +0200 @@ -25,7 +25,8 @@ MKC_SOURCE_FUNCLIBS = shquote MKC_REQUIRE_HEADERS = maa.h -MKC_REQUIRE_FUNCLIBS = pr_open:maa +MKC_REQUIRE_FUNCLIBS = pr_open2:maa +MKC_REQUIRE_FUNCS6 = pr_open2:maa.h MKC_COMMON_DEFINES = -D_GNU_SOURCE MKC_COMMON_HEADERS = unistd.h stdlib.h diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/paexec/paexec.1 new/paexec-1.1.6/paexec/paexec.1 --- old/paexec-1.1.4/paexec/paexec.1 2020-06-01 16:44:21.000000000 +0200 +++ new/paexec-1.1.6/paexec/paexec.1 2024-06-07 14:21:17.000000000 +0200 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "paexec 1" -.TH paexec 1 "2020-06-01" "" "" +.TH paexec 1 "2024-06-07" "" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -252,9 +252,9 @@ A number of commands to run in parallel. .IP "\fB\-n\fR \fInodes\fR" 6 .IX Item "-n nodes" -List of nodes separated by space character. The first character must be +List of nodes separated by space or tab characters. The first character must be alphanumeric, `_' or `/'. All other characters are reserved -for future extensions. +for future extensions. Leading and trailing spaces and tabs are ignored. .IP "\fB\-n\fR \fI:filename\fR" 6 .IX Item "-n :filename" Filename containing list of nodes, one per line. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/paexec/paexec.c new/paexec-1.1.6/paexec/paexec.c --- old/paexec-1.1.4/paexec/paexec.c 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/paexec/paexec.c 2024-06-07 14:21:07.000000000 +0200 @@ -445,6 +445,14 @@ } } +static void restore_signals(void) +{ + unblock_signals(); + set_sig_handler(SIGALRM, SIG_DFL); + set_sig_handler(SIGCHLD, SIG_DFL); + set_sig_handler(SIGPIPE, SIG_DFL); +} + static void init__child_processes(void) { char full_cmd [2000]; @@ -483,8 +491,9 @@ fprintf(stderr, "running cmd: %s\n", full_cmd); } - pids [i] = pr_open( + pids [i] = pr_open2( full_cmd, + restore_signals, PR_CREATE_STDIN | PR_CREATE_STDOUT, &fd_in [i], &fd_out [i], NULL); @@ -1079,6 +1088,7 @@ debug = 1; break; case 'n': + optarg += strspn(optarg, " \t"); assign_str(&arg_nodes, optarg); break; case 'c': diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/paexec/paexec.pod new/paexec-1.1.6/paexec/paexec.pod --- old/paexec-1.1.4/paexec/paexec.pod 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/paexec/paexec.pod 2024-06-07 14:21:07.000000000 +0200 @@ -122,9 +122,9 @@ =item B<-n> I<nodes> -List of nodes separated by space character. The first character must be +List of nodes separated by space or tab characters. The first character must be alphanumeric, `_' or `/'. All other characters are reserved -for future extensions. +for future extensions. Leading and trailing spaces and tabs are ignored. =item B<-n> I<:filename> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/paexec/paexec_reorder.1 new/paexec-1.1.6/paexec/paexec_reorder.1 --- old/paexec-1.1.4/paexec/paexec_reorder.1 2020-06-01 16:44:21.000000000 +0200 +++ new/paexec-1.1.6/paexec/paexec_reorder.1 2024-06-07 14:21:17.000000000 +0200 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) +.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "paexec_reorder 1" -.TH paexec_reorder 1 "2020-06-01" "" "" +.TH paexec_reorder 1 "2024-06-07" "" "" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l Binary files old/paexec-1.1.4/presentation/paexec.pdf and new/paexec-1.1.6/presentation/paexec.pdf differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/Makefile new/paexec-1.1.6/tests/Makefile --- old/paexec-1.1.4/tests/Makefile 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/Makefile 2024-06-07 14:21:07.000000000 +0200 @@ -1,3 +1,24 @@ +# Copyright (c) 2007-2024 Aleksey Cheusov <vle@gmx.net> +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + MKC_CHECK_CUSTOM += sleep_fract MKC_CUSTOM_FN.sleep_fract = ../checks/sleep_fract @@ -33,6 +54,7 @@ export PATH=${OBJDIR_make_package}:$$PATH; \ export PATH=${OBJDIR_toupper}:$$PATH; \ export PATH=${OBJDIR_wav2flac}:$$PATH; \ + export PATH=${OBJDIR_delayed_output}:$$PATH; \ export SLEEP_FRACT=${CUSTOM.sleep_fract:S/0//}; \ export USE_TEST_BUFSIZES=${USE_TEST_BUFSIZES:Q}; \ if ./test.sh; \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/delayed_output/Makefile new/paexec-1.1.6/tests/delayed_output/Makefile --- old/paexec-1.1.4/tests/delayed_output/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ new/paexec-1.1.6/tests/delayed_output/Makefile 2024-06-07 14:21:07.000000000 +0200 @@ -0,0 +1,8 @@ +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + +PROG = delayed_output + +WARNS = 4 + +.include <mkc.mk> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/delayed_output/delayed_output.c new/paexec-1.1.6/tests/delayed_output/delayed_output.c --- old/paexec-1.1.4/tests/delayed_output/delayed_output.c 1970-01-01 01:00:00.000000000 +0100 +++ new/paexec-1.1.6/tests/delayed_output/delayed_output.c 2024-06-07 14:21:07.000000000 +0200 @@ -0,0 +1,35 @@ +/* + * Written by Aleksey Cheusov <vle@gmx.net> + * Public domain + */ + +#include <errno.h> +#include <unistd.h> +#include <signal.h> +#include <assert.h> +#include <stdio.h> + +static void alarm_handler(int sig) +{ + if (sig != SIGALRM) + _exit(2); +} + +int main(int argc, char **argv) +{ + --argc; + ++argv; + assert(argc == 1); + + unsigned int remaining; + signal(SIGALRM, alarm_handler); + alarm(1); + + remaining = sleep(1000); + assert(remaining > 0); + + printf("prefix "); + puts(argv[0]); + + return 0; +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/fakeflac/flac new/paexec-1.1.6/tests/fakeflac/flac --- old/paexec-1.1.4/tests/fakeflac/flac 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/fakeflac/flac 2024-06-07 14:21:07.000000000 +0200 @@ -1,5 +1,8 @@ #!/usr/bin/env sh +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + set -e while test $# -ne 0; do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/scripts/Makefile new/paexec-1.1.6/tests/scripts/Makefile --- old/paexec-1.1.4/tests/scripts/Makefile 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/scripts/Makefile 2024-06-07 14:21:07.000000000 +0200 @@ -1,3 +1,6 @@ +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + INSCRIPTS = big_result_cmd transport_broken_rnd \ transport_broken_echo transport_broken_toupper SCRIPTS = paexec_notransport ${INSCRIPTS} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/scripts/big_result_cmd.in new/paexec-1.1.6/tests/scripts/big_result_cmd.in --- old/paexec-1.1.4/tests/scripts/big_result_cmd.in 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/scripts/big_result_cmd.in 2024-06-07 14:21:07.000000000 +0200 @@ -1,5 +1,8 @@ #!@awk@ -f +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + BEGIN { eot = ENVIRON ["PAEXEC_EOT"] } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/scripts/paexec_notransport new/paexec-1.1.6/tests/scripts/paexec_notransport --- old/paexec-1.1.4/tests/scripts/paexec_notransport 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/scripts/paexec_notransport 2024-06-07 14:21:07.000000000 +0200 @@ -1,5 +1,8 @@ #!/usr/bin/env sh +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + shift # skip node unset PAEXEC_EOT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/scripts/transport_broken_echo.in new/paexec-1.1.6/tests/scripts/transport_broken_echo.in --- old/paexec-1.1.4/tests/scripts/transport_broken_echo.in 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/scripts/transport_broken_echo.in 2024-06-07 14:21:07.000000000 +0200 @@ -1,5 +1,8 @@ #!@awk@ -f +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + BEGIN { if (ARGC != 3){ print "usage: transport_broken_echo id ''" > "/dev/stderr" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/scripts/transport_broken_echo2 new/paexec-1.1.6/tests/scripts/transport_broken_echo2 --- old/paexec-1.1.4/tests/scripts/transport_broken_echo2 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/scripts/transport_broken_echo2 2024-06-07 14:21:07.000000000 +0200 @@ -1,5 +1,8 @@ #!/usr/bin/env sh +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + # # usage: transport <check_filename> <node_id> # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/scripts/transport_broken_rnd.in new/paexec-1.1.6/tests/scripts/transport_broken_rnd.in --- old/paexec-1.1.4/tests/scripts/transport_broken_rnd.in 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/scripts/transport_broken_rnd.in 2024-06-07 14:21:07.000000000 +0200 @@ -1,5 +1,8 @@ #!@awk@ -f +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + function sleep (secs){ if (!nosleep && 0 != system("sleep " secs)){ exit 10 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/scripts/transport_broken_toupper.in new/paexec-1.1.6/tests/scripts/transport_broken_toupper.in --- old/paexec-1.1.4/tests/scripts/transport_broken_toupper.in 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/scripts/transport_broken_toupper.in 2024-06-07 14:21:07.000000000 +0200 @@ -1,5 +1,8 @@ #!@awk@ -f +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + BEGIN { if (ARGC != 3){ print "usage: transport_broken_toupper id ''" > "/dev/stderr" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/test.sh new/paexec-1.1.6/tests/test.sh --- old/paexec-1.1.4/tests/test.sh 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/test.sh 2024-06-07 14:21:07.000000000 +0200 @@ -1,5 +1,8 @@ #!/usr/bin/env sh +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + export LC_ALL=C : ${PAEXEC_FIND:=find} @@ -380,7 +383,7 @@ 10 success ' - # -J + # -J printf 'aaa\nbbb\nz y x\ntrtrtrbrbrbr\nccc\nddd\neee\nfff\ny;x\nggg\n' | runpaargs -P+2 -I '$$' -c 'awk "BEGIN {print toupper(\"$$\")}"' | paexec_reorder -lgy -Ms | @@ -513,6 +516,32 @@ 10 success ' + printf 'AAA\nBBB\nTRTRTR'\''BRBRBR\nCCC\nDDD\nEEE\nFFF\n"Y;X\nGGG\nZ Y X\n' | + runpaargs -P +3 delayed_output | + paexec_reorder -lgy -Ms | + cmp 'paargs #1.2' \ +'1 prefix AAA +1 success +2 prefix BBB +2 success +3 prefix TRTRTR'"'"'BRBRBR +3 success +4 prefix CCC +4 success +5 prefix DDD +5 success +6 prefix EEE +6 success +7 prefix FFF +7 success +8 prefix "Y;X +8 success +9 prefix GGG +9 success +10 prefix Z Y X +10 success +' + # -x + -t export PAEXEC_ENV=' ZZZZ, , ,YYYY,CCCC LALALA ' export ZZZZ=zz1234zz @@ -605,8 +634,9 @@ ' # -J + for t in '' '-t ""'; do printf 'AAA\nBBB\nZ Y X\nTRTRTR'\''BRBRBR\nCCC\nDDD\nEEE\nFFF\n"Y;X\nGGG\n' | - runpaexec -J '{}' -c 'echo "xxx{}yyy"' -n +3 | sort | + runpaexec -J '{}' -c 'echo "xxx{}yyy"' -n +3 $t | sort | cmp 'paexec -J #1.1' \ 'xxx"Y;Xyyy xxxAAAyyy @@ -619,10 +649,12 @@ xxxTRTRTR'"'"'BRBRBRyyy xxxZ Y Xyyy ' + done # -J + for t in '' '-t ""'; do printf 'aaa\nbbb\nz y x\ntrtrtrbrbrbr\nccc\nddd\neee\nfff\ny;x\nggg\n' | - runpaexec -n+2 -J '$$' -c 'awk "BEGIN {print toupper(\"$$\")}"' | sort | + runpaexec -n+2 -J '$$' $t -c 'awk "BEGIN {print toupper(\"$$\")}"' | sort | cmp 'paexec -J #1.2' \ 'AAA BBB @@ -635,6 +667,7 @@ Y;X Z Y X ' + done # -J printf 'AAA\nBBB\nZ Y X\nTRTRTR'\''BRBRBR\nCCC\nDDD\nEEE\nFFF\n"Y;X\nGGG\n' | @@ -931,7 +964,7 @@ printf 'a\nbb\nccc\ndddd\neeeee\nffffff\n' | ( export PAEXEC_EOT=foobarbaz; runpaexec_resort -l -t paexec_notransport -c cmd_toupper \ - -n '1 2 3 4 5 6 7 8 9'; ) | + -n ' 1 2 3 4 5 6 7 8 9 '; ) | cmp 'paexec toupper #1.1 (PAEXEC_EOT)' \ '1 A 2 BB @@ -944,7 +977,7 @@ # toupper printf 'a\nbb\nccc\ndddd\neeeee\nffffff\n' | runpaexec_resort -l -t ' ' -c cmd_toupper \ - -n '1 2 3 4 5 6 7 8 9' | + -n ' 1 2 3 ' | cmp 'paexec toupper #2' \ '1 A 2 BB diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/transp_closed_stdin/Makefile new/paexec-1.1.6/tests/transp_closed_stdin/Makefile --- old/paexec-1.1.4/tests/transp_closed_stdin/Makefile 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/transp_closed_stdin/Makefile 2024-06-07 14:21:07.000000000 +0200 @@ -1,3 +1,6 @@ +# Written by Aleksey Cheusov <vle@gmx.net> +# Public domain + PROG = transp_closed_stdin WARNS = 4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/paexec-1.1.4/tests/transp_closed_stdin/transp_closed_stdin.c new/paexec-1.1.6/tests/transp_closed_stdin/transp_closed_stdin.c --- old/paexec-1.1.4/tests/transp_closed_stdin/transp_closed_stdin.c 2020-06-01 16:44:20.000000000 +0200 +++ new/paexec-1.1.6/tests/transp_closed_stdin/transp_closed_stdin.c 2024-06-07 14:21:07.000000000 +0200 @@ -1,3 +1,8 @@ +/* + * Written by Aleksey Cheusov <vle@gmx.net> + * Public domain + */ + #include <stdio.h> #include <string.h> #include <unistd.h>
participants (1)
-
Source-Sync