summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-12-31 11:29:42 +0100
committerMichał Górny <mgorny@gentoo.org>2018-01-04 22:56:14 +0100
commit0e50583c165feedf24152dae1973af88e0005191 (patch)
tree30051de29836c4190207c8d0b379b046e24f5fc9 /eclass/tests
parentdev-lang/jimtcl: Add missing ||die (diff)
downloadgentoo-0e50583c165feedf24152dae1973af88e0005191.tar.gz
gentoo-0e50583c165feedf24152dae1973af88e0005191.tar.bz2
gentoo-0e50583c165feedf24152dae1973af88e0005191.zip
multiprocessing.eclass: Remove multijob_* functions
Remove the multijob functions that were used to run bash code in parallel. The code was very complex, fragile and unmaintained. It has been used scarcely, and pretty much by a single developer. It gave very little gain, usually at the cost of losing readability and violating PMS. Closes: https://bugs.gentoo.org/613322
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/multiprocessing.sh42
1 files changed, 0 insertions, 42 deletions
diff --git a/eclass/tests/multiprocessing.sh b/eclass/tests/multiprocessing.sh
deleted file mode 100755
index 1ceb7f7fa7b2..000000000000
--- a/eclass/tests/multiprocessing.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-source tests-common.sh
-
-inherit multiprocessing
-
-tbegin "simple"
-MAKEOPTS="-j1" multijob_init
-multijob_child_init ls -d / >/dev/null || die "fail!"
-multijob_finish
-tend $?
-
-tbegin "less simple"
-multijob_init -j3
-multijob_child_init true || die "fail!"
-multijob_child_init false || die "fail!"
-multijob_child_init true || die "fail!"
-multijob_finish
-tend $(( $? == 1 ? 0 : 1 ))
-
-tbegin "less less simple"
-multijob_init -j1
-multijob_child_init true || die "fail!"
-multijob_child_init false || die "fail!"
-multijob_child_init true && die "fail!"
-multijob_finish
-tend $?
-
-tbegin "less less less simple"
-multijob_init -j10
-multijob_child_init true || die "fail!"
-multijob_finish_one || die "fail!"
-multijob_child_init false || die "fail!"
-multijob_finish_one && die "fail!"
-multijob_child_init true || die "fail!"
-multijob_finish_one || die "fail!"
-multijob_finish
-tend $?
-
-texit