Skip to content

Commit c74f599

Browse files
chore: a Bash script for testing under Ubuntu
For quick test I need this script [ci skip]
1 parent 014f639 commit c74f599

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/bash
2+
3+
# for local testing of the project in Ubuntu 14.04 (via VirtualBox)
4+
5+
#create download folder 'download_FPC'
6+
cd ~
7+
mkdir download_FPC
8+
cd download_FPC
9+
10+
#download the FPC + lazarus IDE (1.6.2)
11+
wget http://mirrors.iwi.me/lazarus/releases/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6.2/fpc_3.0.0-151205_amd64.deb
12+
wget http://mirrors.iwi.me/lazarus/releases/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6.2/fpc-src_3.0.0-151205_amd64.deb
13+
wget http://mirrors.iwi.me/lazarus/releases/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6.2/lazarus-project_1.6.2-1_amd64.deb
14+
15+
#Install the downloaded FPC + lazarus IDE
16+
sudo dpkg -i ./*.deb
17+
#install all the software dependency it needed
18+
sudo apt install -f -y
19+
20+
#install git
21+
sudo apt-get install git -y
22+
23+
#Download the source code in the home folder
24+
cd ~
25+
git clone --recursive https://github.com/GerryFerdinandus/bittorrent-tracker-editor.git
26+
27+
#build the source code trackereditor. (optional: --build-mode=Release)
28+
lazbuild --build-mode=Debug bittorrent-tracker-editor/source/project/tracker_editor/trackereditor.lpi
29+
30+
#build the source code tracker_editor_test
31+
lazbuild --build-mode=Debug bittorrent-tracker-editor/source/project/unit_test/tracker_editor_test.lpi
32+
33+
#Run the unit test
34+
./bittorrent-tracker-editor/enduser/test_trackereditor -a --format=plain
35+
36+
37+
38+
39+
40+

0 commit comments

Comments
 (0)