1
1
mirror of https://github.com/wader/fq.git synced 2024-12-29 00:22:38 +03:00
fq/pkg/interp/testdata/exprfile.fqtest
Mattias Wadman 377af133e0 fqtest: Cleanup path usage
Make cwd for a test script the directory where the script is.
Use relative paths
2022-05-21 20:03:25 +02:00

23 lines
336 B
Plaintext

/test.jq:
123
/test2.jq:
.headers[0].magic | tovalue
/err.jq:
asdad)
$ fq -n -f test.jq
123
/test.jq:
123
$ fq -f test2.jq test.mp3
"ID3"
$ fq --from-file test2.jq test.mp3
"ID3"
$ fq -nf err.jq
exitcode: 3
stderr:
error: err.jq:1:6: unexpected token ")"
$ fq -n -f missing
exitcode: 2
stderr:
error: missing: no such file or directory