This repository has been archived by the owner on Mar 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·83 lines (72 loc) · 1.64 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#/usr/bin/env sh
apt-get update
apt-get install python3-setuptools -y
apt-get install git -y
apt-get install build-essential -y
apt-get install cmake -y
apt-get install python3-pip -y
apt-get install python3-pytest-cov -y
python3 -m pip install -r requirements.txt
if [ "$#" -eq "0" ]
then
echo "No arguments supplied, so no need for travis requirements"
else
python3 -m pip install -r requirements_dev.txt
fi
mkdir setup
cd setup
git clone -b next https://github.com/aquynh/capstone
cd capstone
CAPSTONE_ARCHS="arm aarch64 x86" ./make.sh
./make.sh install
mkdir /usr/lib/python3.5/site-packages/
cd bindings
cd python
python3 setup.py build install
cd ..
cd ..
cd ..
git clone https://github.com/keystone-engine/keystone
cd keystone
mkdir build
cd build
#../make-share.sh
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="AArch64;X86" -G "Unix Makefiles" ..
make -j8
sudo make install
sudo ldconfig
#make install
kstool x32 "add eax, ebx"
cd ..
cd bindings
cd python
python3 setup.py install
cd ..
cd ..
cd ..
git clone https://github.com/unicorn-engine/unicorn
cd unicorn
UNICORN_QEMU_FLAGS="--python=/usr/bin/python2.7" ./make.sh
./make.sh install
cd bindings
cd python
python3 setup.py install
cd ..
cd ..
cd ..
# out of setup
cd ..
pwd
python3 simple.py
cd db
python3 setup.py install
cd ..
python3 ./db/test.py
if [ "$#" -eq "0" ]
then
echo "No arguments supplied, so no need for travis requirements"
else
#python3 -m pytest --cov=test test/test_coveralls.py
python3 -m pytest --cov=. test/test_coveralls.py test/test_elf.py test/test_emulator.py test/test_grapth.py
python3 -m coveralls
fi