From cb64352c75f0da8979c9addd37b2b78bb97d5301 Mon Sep 17 00:00:00 2001 From: Frank Heckenbach Date: Sun, 14 Apr 2013 15:38:07 -0400 Subject: Initial patch for output synchronization. See Savannah bug #33138. Based on work by David Boyce . --- tests/scripts/features/parallel-sync | 143 +++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 tests/scripts/features/parallel-sync (limited to 'tests') diff --git a/tests/scripts/features/parallel-sync b/tests/scripts/features/parallel-sync new file mode 100644 index 0000000..29e5564 --- /dev/null +++ b/tests/scripts/features/parallel-sync @@ -0,0 +1,143 @@ +# -*-perl-*- + +$description = "Test parallel-sync (-P) option."; + +$details = "Test the synchronization of output from parallel jobs."; + +if (!$parallel_jobs) { + return -1; +} + +if ($vos) { + $sleep_command = "sleep -seconds"; +} +else { + $sleep_command = "sleep"; +} + +# The following subdirectories with Makefiles are used in several +# of the following tests. +mkdir('foo', 0777); +mkdir('bar', 0777); + +open(MAKEFILE,"> foo/Makefile"); +print MAKEFILE < bar/Makefile"); +print MAKEFILE <