2011-02-18 14:23:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-12-26 22:29:28 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2022 Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc.
|
2021-03-22 20:16:35 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2012-12-28 10:46:35 +00:00
|
|
|
echo "### test global config - must run alone so the global config does not confuse others"
|
2015-07-22 06:28:05 +00:00
|
|
|
echo "### test --tollef in global config"
|
2012-12-28 10:46:35 +00:00
|
|
|
echo /etc/parallel/config | sudo parallel "mkdir -p /etc/parallel; echo --tollef > "
|
2013-09-28 15:55:04 +00:00
|
|
|
stdout parallel -k echo -- 1 2 3 ::: a b c
|
|
|
|
stdout parallel -k --gnu echo ::: 1 2 3 -- a b c
|
2015-07-22 06:28:05 +00:00
|
|
|
echo "### test --gnu in global config"
|
2012-12-28 10:46:35 +00:00
|
|
|
echo --gnu > ~/.parallel/config
|
2014-06-23 00:04:37 +00:00
|
|
|
stdout parallel -k echo ::: 1 2 3 -- a b c
|
|
|
|
stdout parallel -k --gnu echo ::: 1 2 3 -- a b c
|
2012-12-28 10:46:35 +00:00
|
|
|
sudo rm /etc/parallel/config
|
|
|
|
rm ~/.parallel/config
|
|
|
|
echo "<<< End test global config - must run alone so the global config does not confuse others"
|