Replace seq command with POSIX-compliant shell code
The seq
command is not defined in the POSIX standard and is missing on
OpenBSD. Given that the system test code is meant to be POSIX-compliant
replace it with a shell construct.
Closes #2694 (closed)