test-debugextensions.t
115 lines
| 2.9 KiB
| text/troff
|
Tads3Lexer
/ tests / test-debugextensions.t
Gregory Szorc
|
r37360 | #if no-extraextensions | ||
liscju
|
r26351 | $ hg debugextensions | ||
Gregory Szorc
|
r37360 | #endif | ||
liscju
|
r26351 | |||
$ debugpath=`pwd`/extwithoutinfos.py | ||||
$ cat > extwithoutinfos.py <<EOF | ||||
> EOF | ||||
Yuya Nishihara
|
r29891 | $ cat > extwithinfos.py <<EOF | ||
Augie Fackler
|
r36585 | > testedwith = b'3.0 3.1 3.2.1' | ||
> buglink = b'https://example.org/bts' | ||||
Yuya Nishihara
|
r29891 | > EOF | ||
liscju
|
r26351 | |||
$ cat >> $HGRCPATH <<EOF | ||||
> [extensions] | ||||
> histedit= | ||||
> patchbomb= | ||||
> rebase= | ||||
> mq= | ||||
> ext1 = $debugpath | ||||
Yuya Nishihara
|
r29891 | > ext2 = `pwd`/extwithinfos.py | ||
liscju
|
r26351 | > EOF | ||
Gregory Szorc
|
r37360 | $ for extension in $HGTESTEXTRAEXTENSIONS; do | ||
> echo "$extension=!" >> $HGRCPATH | ||||
> done | ||||
liscju
|
r26351 | $ hg debugextensions | ||
ext1 (untested!) | ||||
Yuya Nishihara
|
r29891 | ext2 (3.2.1!) | ||
liscju
|
r26351 | histedit | ||
mq | ||||
patchbomb | ||||
rebase | ||||
$ hg debugextensions -v | ||||
ext1 | ||||
Kevin Bullock
|
r28615 | location: */extwithoutinfos.py* (glob) | ||
Yuya Nishihara
|
r29892 | bundled: no | ||
Yuya Nishihara
|
r29891 | ext2 | ||
location: */extwithinfos.py* (glob) | ||||
Yuya Nishihara
|
r29892 | bundled: no | ||
Yuya Nishihara
|
r29891 | tested with: 3.0 3.1 3.2.1 | ||
bug reporting: https://example.org/bts | ||||
liscju
|
r26351 | histedit | ||
Matt Harbison
|
r50730 | location: */hgext/histedit.py* (glob) (no-pyoxidizer-in-memory !) | ||
location: */release/app/hg* (glob) (pyoxidizer-in-memory !) | ||||
Yuya Nishihara
|
r29892 | bundled: yes | ||
liscju
|
r26351 | mq | ||
Matt Harbison
|
r50730 | location: */hgext/mq.py* (glob) (no-pyoxidizer-in-memory !) | ||
location: */release/app/hg* (glob) (pyoxidizer-in-memory !) | ||||
Yuya Nishihara
|
r29892 | bundled: yes | ||
liscju
|
r26351 | patchbomb | ||
Matt Harbison
|
r50730 | location: */hgext/patchbomb.py* (glob) (no-pyoxidizer-in-memory !) | ||
location: */release/app/hg* (glob) (pyoxidizer-in-memory !) | ||||
Yuya Nishihara
|
r29892 | bundled: yes | ||
liscju
|
r26351 | rebase | ||
Matt Harbison
|
r50730 | location: */hgext/rebase.py* (glob) (no-pyoxidizer-in-memory !) | ||
location: */release/app/hg* (glob) (pyoxidizer-in-memory !) | ||||
Yuya Nishihara
|
r29892 | bundled: yes | ||
liscju
|
r26351 | |||
Matt Harbison
|
r26430 | $ hg debugextensions -Tjson | sed 's|\\\\|/|g' | ||
liscju
|
r26351 | [ | ||
{ | ||||
"buglink": "", | ||||
Yuya Nishihara
|
r29892 | "bundled": false, | ||
liscju
|
r26351 | "name": "ext1", | ||
Kevin Bullock
|
r28615 | "source": "*/extwithoutinfos.py*", (glob) | ||
Yuya Nishihara
|
r29703 | "testedwith": [] | ||
liscju
|
r26351 | }, | ||
{ | ||||
Yuya Nishihara
|
r29891 | "buglink": "https://example.org/bts", | ||
Yuya Nishihara
|
r29892 | "bundled": false, | ||
Yuya Nishihara
|
r29891 | "name": "ext2", | ||
"source": "*/extwithinfos.py*", (glob) | ||||
"testedwith": ["3.0", "3.1", "3.2.1"] | ||||
}, | ||||
{ | ||||
liscju
|
r26351 | "buglink": "", | ||
Yuya Nishihara
|
r29892 | "bundled": true, | ||
liscju
|
r26351 | "name": "histedit", | ||
Matt Harbison
|
r50730 | "source": "*/hgext/histedit.py*", (glob) (no-pyoxidizer-in-memory !) | ||
"source": */release/app/hg* (glob) (pyoxidizer-in-memory !) | ||||
Yuya Nishihara
|
r29893 | "testedwith": [] | ||
liscju
|
r26351 | }, | ||
{ | ||||
"buglink": "", | ||||
Yuya Nishihara
|
r29892 | "bundled": true, | ||
liscju
|
r26351 | "name": "mq", | ||
Matt Harbison
|
r50730 | "source": "*/hgext/mq.py*", (glob) (no-pyoxidizer-in-memory !) | ||
"source": */release/app/hg* (glob) (pyoxidizer-in-memory !) | ||||
Yuya Nishihara
|
r29893 | "testedwith": [] | ||
liscju
|
r26351 | }, | ||
{ | ||||
"buglink": "", | ||||
Yuya Nishihara
|
r29892 | "bundled": true, | ||
liscju
|
r26351 | "name": "patchbomb", | ||
Matt Harbison
|
r50730 | "source": "*/hgext/patchbomb.py*", (glob) (no-pyoxidizer-in-memory !) | ||
"source": */release/app/hg* (glob) (pyoxidizer-in-memory !) | ||||
Yuya Nishihara
|
r29893 | "testedwith": [] | ||
liscju
|
r26351 | }, | ||
{ | ||||
"buglink": "", | ||||
Yuya Nishihara
|
r29892 | "bundled": true, | ||
liscju
|
r26351 | "name": "rebase", | ||
Matt Harbison
|
r50730 | "source": "*/hgext/rebase.py*", (glob) (no-pyoxidizer-in-memory !) | ||
"source": */release/app/hg* (glob) (pyoxidizer-in-memory !) | ||||
Yuya Nishihara
|
r29893 | "testedwith": [] | ||
liscju
|
r26351 | } | ||
] | ||||
Yuya Nishihara
|
r29703 | |||
Yuya Nishihara
|
r29891 | $ hg debugextensions -T '{ifcontains("3.1", testedwith, "{name}\n")}' | ||
ext2 | ||||
$ hg debugextensions \ | ||||
> -T '{ifcontains("3.2", testedwith, "no substring match: {name}\n")}' | ||||