test-lib.sh: support -x option for shell-tracing