diff options
author | Leah Neukirchen <leah@vuxu.org> | 2024-07-03 17:55:45 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2024-07-03 17:58:18 +0200 |
commit | 2bb551efd8b3e50d715482a8f3b89f88bae74397 (patch) | |
tree | d380e8ffaba4e634b6e518480f91f2f37bad72be /tests | |
parent | e5861199e018fcc6537fbd4a522aea1f75ec0d4e (diff) | |
download | nq-2bb551efd8b3e50d715482a8f3b89f88bae74397.tar.gz nq-2bb551efd8b3e50d715482a8f3b89f88bae74397.tar.xz nq-2bb551efd8b3e50d715482a8f3b89f88bae74397.zip |
There's only so many two letter binaries that can exist at the same time. A newer project, called fq, arrived and is clashing with nq in many packaging systems, and nqtail is a fine name too.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests b/tests index 0e664ad..0f4b933 100755 --- a/tests +++ b/tests @@ -1,7 +1,7 @@ #!/bin/sh : ${NQ:=../nq} -: ${FQ:=../fq} +: ${NQTAIL:=../nqtail} set -e @@ -86,19 +86,19 @@ mkdir test.dir ( cd test.dir -printf '# fq tests\n' +printf '# nqtail tests\n' check 'spawning four jobs' 'f1=$($NQ sleep 100)' check 'spawning four jobs' 'f2=$($NQ echo two)' check 'spawning four jobs' 'f3=$($NQ sleep 300)' check 'spawning four jobs' 'f4=$($NQ sleep 400)' -check 'fq tracks first job' '($FQ ,* & p=$!; sleep 1; kill $p) | sed 3q | grep -q sleep.*100' +check 'nqtail tracks first job' '($NQTAIL ,* & p=$!; sleep 1; kill $p) | sed 3q | grep -q sleep.*100' check 'killing first job' kill ${f1##*.} check 'killing fourth job' kill ${f4##*.} sleep 1 -check 'fq tracks third job' '($FQ ,* & p=$!; sleep 1; kill $p) | sed 3q | grep -q sleep.*300' +check 'nqtail tracks third job' '($NQTAIL ,* & p=$!; sleep 1; kill $p) | sed 3q | grep -q sleep.*300' check 'killing third job' kill ${f3##*.} sleep 1 -check 'fq outputs last job when no job running' '$FQ ,* | sed 3q | grep -q sleep.*400' +check 'nqtail outputs last job when no job running' '$NQTAIL ,* | sed 3q | grep -q sleep.*400' ) rm -rf test.dir |