logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: 2e359bc4bbe8c7a3d386c9f85d03c7cf4d8bd5df
parent 11fa035be93b141acf9aff6fe28f0fe1bbc938dd
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 28 Sep 2024 13:10:24 +0200

test-cmd/nice.sh: new

Diffstat:

Atest-cmd/nice.sh22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/test-cmd/nice.sh b/test-cmd/nice.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> +# SPDX-License-Identifier: MPL-2.0 + +WD="$(dirname "$0")/../" +target="${WD}/cmd/nice" +plans=4 + +. "${WD}/test-cmd/tap.sh" + +getprio="${WD}/test-cmd/getpriority" + +t noargs '' + +t_args noadj 'getpriority: 0 +' "$getprio" + +t_args adj:0 'getpriority: 0 +' -n 0 "$getprio" + +t_args adj:10 'getpriority: 10 +' -n 10 "$getprio"