mirror of https://github.com/pwndbg/pwndbg.git
Format shell scripts with shfmt (#1123)
* Add lint.sh script * Format shell scripts with shfmt and add to lint.sh Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>pull/1119/head
parent
2b62259d7e
commit
cc50024417
@ -1,13 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Benchmark context command
|
||||
make test > /dev/null
|
||||
make test >/dev/null
|
||||
git log --abbrev-commit --pretty=oneline HEAD^..HEAD
|
||||
gdb ./test \
|
||||
-ex "source ../gdbinit.py" \
|
||||
-ex "b main" -ex "r" \
|
||||
-ex "python import timeit; print(' 1ST RUN:', timeit.repeat('pwndbg.commands.context.context()', repeat=1, number=1, globals=globals())[0])" \
|
||||
-ex "si" \
|
||||
-ex "python import timeit; print(' 2ND RUN:', timeit.repeat('pwndbg.commands.context.context()', repeat=1, number=1, globals=globals())[0])" \
|
||||
-ex "si" \
|
||||
-ex "python import timeit; print('MULTIPLE RUNS:', timeit.repeat('pwndbg.commands.context.context()', repeat=1, number=10, globals=globals())[0] / 10)" \
|
||||
-ex "quit" | grep 'RUNS*:'
|
||||
-ex "source ../gdbinit.py" \
|
||||
-ex "b main" -ex "r" \
|
||||
-ex "python import timeit; print(' 1ST RUN:', timeit.repeat('pwndbg.commands.context.context()', repeat=1, number=1, globals=globals())[0])" \
|
||||
-ex "si" \
|
||||
-ex "python import timeit; print(' 2ND RUN:', timeit.repeat('pwndbg.commands.context.context()', repeat=1, number=1, globals=globals())[0])" \
|
||||
-ex "si" \
|
||||
-ex "python import timeit; print('MULTIPLE RUNS:', timeit.repeat('pwndbg.commands.context.context()', repeat=1, number=10, globals=globals())[0] / 10)" \
|
||||
-ex "quit" | grep 'RUNS*:'
|
||||
|
||||
Loading…
Reference in new issue