mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
add pip , cd directory when building and adding large release test script
This commit is contained in:
parent
06d653e330
commit
3f0b77fa93
4 changed files with 22 additions and 9 deletions
|
@ -8,6 +8,10 @@ RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends git ca-certificates build-essential cmake pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev libbz2-dev libbluetooth-dev libpython3-dev libssl-dev sudo && \
|
apt-get install -y --no-install-recommends git ca-certificates build-essential cmake pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev libbz2-dev libbluetooth-dev libpython3-dev libssl-dev sudo && \
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
|
||||||
|
RUN apt install -y python3-minimal
|
||||||
|
RUN apt install -y python3-pip
|
||||||
|
RUN python3 -m pip install ansicolors sslcrypto
|
||||||
|
|
||||||
# Create rrg user
|
# Create rrg user
|
||||||
RUN useradd -ms /bin/bash rrg
|
RUN useradd -ms /bin/bash rrg
|
||||||
RUN passwd -d rrg
|
RUN passwd -d rrg
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
|
# Notes on run_tests.sh script
|
||||||
|
This script does both setup the mirrors and pip install and then run a
|
||||||
|
bunch of different builds with make and cmake together with the different combos
|
||||||
|
of RDV4, GENERIC, BTADDON combos.
|
||||||
|
|
||||||
|
If all tests OK, the script will finish.
|
||||||
|
|
||||||
|
|
||||||
# Notes to run tests
|
# Notes to run tests
|
||||||
|
The script is to be run in proxmark root folder inside the docker env.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker/kali/run_tests.sh;
|
||||||
|
```
|
||||||
|
|
||||||
|
Or if you want to run single test,
|
||||||
```
|
```
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y python3-minimal
|
make clean; make -j
|
||||||
sudo apt install -y python3-pip
|
|
||||||
python3 -m pip install ansicolors sslcrypto
|
|
||||||
tools/pm3_tests.sh --long
|
tools/pm3_tests.sh --long
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -it pm3-kali:1.0
|
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -w /home/rrg/proxmark3 -it pm3-kali:1.0
|
||||||
|
|
|
@ -15,13 +15,10 @@
|
||||||
# cmake client builds
|
# cmake client builds
|
||||||
# of the different possible PLATFORM (PM3RDV4 / PM3GENERIC) and BTADDON combos
|
# of the different possible PLATFORM (PM3RDV4 / PM3GENERIC) and BTADDON combos
|
||||||
|
|
||||||
sudo apt update
|
sudo apt update && sudo apt upgrade -y
|
||||||
sudo apt install -y python3-minimal
|
|
||||||
sudo apt install -y python3-pip
|
|
||||||
python3 -m pip install ansicolors sslcrypto
|
|
||||||
|
|
||||||
# replace egrep to silence warning
|
# replace egrep to silence warning
|
||||||
#sed -i 's/egrep/grep -E/g' tools/pm3_tests.sh
|
sed -i 's/egrep/grep -E/g' tools/pm3_tests.sh
|
||||||
|
|
||||||
# Makefile build tests
|
# Makefile build tests
|
||||||
make clean; make -j PLATFORM=PM3GENERIC; tools/pm3_tests.sh --long || exit 1
|
make clean; make -j PLATFORM=PM3GENERIC; tools/pm3_tests.sh --long || exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue