forked from solemnwarning/ipxwrapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.dev.txt
44 lines (31 loc) · 1.94 KB
/
readme.dev.txt
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
IPXWrapper development hints
============================
Compiling
---------
IPXWrapper can be compiled using the toolchains from win-builds.org, both under Windows and cross-compiling from Linux. If cross-compiling, set the HOST environment variable to i686-w64-mingw32 or similar, depending on your system.
In addition to a GCC toolchain, you will need the following:
* GNU Make
* NASM
* Perl
* WinPcap headers
Running the test suite
----------------------
The test suite requires a Linux system and a Windows system, connected by two Ethernet networks with fixed IPv4 addresses on each. You must run `make tools` before attempting to run the test suite.
Running the DirectPlay tests requires an additional two Windows systems, these have the same requirements as the first, except they only need network adapters on the first network.
The Linux system:
* Must have the following Perl modules installed:
* IPC::Run
* Net::Libdnet::Eth
* Net::Pcap
* NetPacket
* Test::Spec
* Must have access to the same IPXWrapper source tree as the Windows system.
* Should be configured to automatically authenticate (i.e. by public key) when SSHing to the IP address of the Windows system.
The Windows system:
* Must not have any network adapters besides the two used for testing.
* Must be running an SSH server which kills orphaned processes upon disconnect, such as Bitvise SSH server.
* Must map the IPXWrapper source tree to drive Z: within the SSH session.
* Must have WinPcap installed and usable.
* Must not be using Windows Firewall.
Once you have configured both machines, edit tests/config.pm as required and run `prove tests/` as root.
**NOTE**: The tests will fail if one of the systems is a VirtualBox host and the other is a guest running under the same system, communicating through host-only or bridged adapters due to a VirtualBox bug described here: https://www.virtualbox.org/ticket/3768. Using two VirtualBox guests is fine.