-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
ci_test_prereq.sh
executable file
·63 lines (55 loc) · 1.31 KB
/
ci_test_prereq.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
#!/bin/sh
set -e
sudo add-apt-repository -y ppa:jwt27/djgpp-toolchain
sudo add-apt-repository -y ppa:stsp-0/gcc-ia16
if [ "${RUNTYPE}" = "packaged" ] ; then
if ! $(grep -q '^Ubuntu 20' /etc/issue) ; then
sudo add-apt-repository -y -c main -c main/debug ppa:dosemu2/ppa
else
sudo add-apt-repository -y ppa:dosemu2/ppa
fi
fi
sudo apt update -q
sudo apt install -y \
acl \
comcom64 \
nasm \
python3-cpuinfo \
python3-pexpect \
mtools \
gcc-djgpp \
djgpp-dev \
qemu-system-common \
gdb \
valgrind \
gcc-ia16-elf \
libi86-ia16-elf \
libi86-testsuite-ia16-elf \
gcc-multilib \
dos2unix \
bridge-utils \
libvirt-daemon \
libvirt-daemon-system
if ! $(grep -q '^Ubuntu 20' /etc/issue) ; then
sudo apt install -y \
dj64-dbgsym \
djdev64-dbgsym
fi
if [ "${RUNTYPE}" = "packaged" ] ; then
sudo apt install -y \
dosemu2 \
fdpp
if ! $(grep -q '^Ubuntu 20' /etc/issue) ; then
sudo apt install -y \
dosemu2-dbgsym \
fdpp-dbgsym
fi
fi
# Install the FAT mount helper
sudo cp test/dosemu_fat_mount.sh /bin/.
sudo chown root:root /bin/dosemu_fat_mount.sh
sudo chmod 755 /bin/dosemu_fat_mount.sh
# Install the TAP helper
sudo cp test/dosemu_tap_interface.sh /bin/.
sudo chown root:root /bin/dosemu_tap_interface.sh
sudo chmod 755 /bin/dosemu_tap_interface.sh