File tree 6 files changed +274
-190
lines changed
6 files changed +274
-190
lines changed Original file line number Diff line number Diff line change @@ -15,29 +15,34 @@ jobs:
15
15
- run : |
16
16
curl -sOLJ 'https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64'
17
17
chmod a+x jq-linux-amd64
18
- make test-jq JQ=./jq-linux-amd64
18
+ JQ=./jq-linux-amd64 make test-jq
19
19
20
20
test-jqjq-jq :
21
21
name : Run tests with jqjq using jq
22
22
runs-on : ubuntu-latest
23
23
steps :
24
24
- uses : actions/checkout@v3
25
- # does PATH tricks so that jq that runs invoke_client_jqjq is same jq
26
25
- run : |
27
26
curl -sOLJ 'https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64'
28
- mv jq-linux-amd64 jq
29
- chmod a+x jq
30
- PATH="$PWD:$PATH" make test-jqjq JQ=jq
27
+ chmod a+x jq-linux-amd64
28
+ JQ=./jq-linux-amd64 make test-jqjq
31
29
32
30
test-jqjq-gojq :
33
31
name : Run tests with jqjq using gojq
34
32
runs-on : ubuntu-latest
35
33
steps :
36
34
- uses : actions/checkout@v3
37
35
- run : |
38
- curl -sOLJ 'https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64'
39
- mv jq-linux-amd64 jq
40
- chmod a+x jq
41
36
curl -Ls 'https://github.com/itchyny/gojq/releases/download/v0.12.16/gojq_v0.12.16_linux_amd64.tar.gz' | tar xz
42
37
mv gojq*/gojq gojq
43
- PATH="$PWD:$PATH" make test-jqjq JQ=gojq
38
+ JQ=./gojq make test-jqjq
39
+
40
+ test-jqjq-jaq :
41
+ name : Run tests with jqjq using jaq
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - uses : actions/checkout@v3
45
+ - run : |
46
+ curl -sOLJ 'https://github.com/01mf02/jaq/releases/download/v2.0.0-epsilon/jaq-x86_64-unknown-linux-gnu'
47
+ chmod a+x jaq-x86_64-unknown-linux-gnu
48
+ JQ=./jaq-x86_64-unknown-linux-gnu make test-jqjq
Original file line number Diff line number Diff line change 1
- JQ = jq
1
+ JQ ?= jq
2
2
3
3
test : test-jq test-jqjq
4
4
8
8
9
9
.PHONY : test-jqjq
10
10
test-jqjq :
11
- ./jqjq --jq " ${JQ} " -- run-tests < jqjq.test
11
+ ./jqjq --run-tests < jqjq.test
Original file line number Diff line number Diff line change @@ -242,8 +242,7 @@ Note that the tests are meant to be used with jq 1.7.1.
242
242
- [x] gojq
243
243
- [x] jqjq
244
244
- Used to work but runs out of memory on my laptop
245
- - [ ] jaq
246
- - Fails on missing destructing support
245
+ - [x] jaq
247
246
- [ ] xq
248
247
- Fails on missing ` debug ` , maths, jqjq ` lex ` returns empty (regexp issues?)
249
248
- [x] Bugs
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
eval " $(
3
- jq \
3
+ " ${JQ := jq} " \
4
4
-nr \
5
5
-L " $( dirname " $( realpath " ${BASH_SOURCE[0]} " ) " ) " \
6
6
' include "jqjq"; $ARGS.positional | invoke_client_jqjq' \
You can’t perform that action at this time.
0 commit comments