mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
feat(test): add support for testing against storm.dll
This commit is contained in:
parent
47d903f4ac
commit
982a89b6da
9 changed files with 648 additions and 7 deletions
23
CONTRIBUTING.md
Normal file
23
CONTRIBUTING.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
## Running Tests
|
||||
|
||||
### Coverage
|
||||
Only runnable with GCC.
|
||||
|
||||
1. `sudo apt install lcov`
|
||||
2. `mkdir build`
|
||||
3. `cd build`
|
||||
4. `cmake -DCMAKE_BUILD_TYPE=Debug ..`
|
||||
5. `make StormCoverage`
|
||||
|
||||
Open the resulting `html` file for the report.
|
||||
|
||||
|
||||
### Against an original copy of Storm.dll
|
||||
Only runnable on Windows. Allows running tests against the original `storm.dll` rather than against the recreated code, to test accuracy.
|
||||
|
||||
1. `mkdir build`
|
||||
2. `cd build`
|
||||
2. `cmake -DWHOA_TEST_STORMDLL=1 -DWHOA_STORM_FLAVOR=SC1 -A Win32 ..`.
|
||||
3. `cmake --build .`
|
||||
4. Copy `storm.dll` from your Starcraft 1.17 installation folder to the same directory as `StormTest.exe`.
|
||||
5. Run `StormTest.exe` from the command line.
|
||||
Loading…
Add table
Add a link
Reference in a new issue