Add tests for Emscripten.

This commit is contained in:
David Reid
2018-04-25 18:47:10 +10:00
parent 3301b1798c
commit d9d9901e69
3 changed files with 62 additions and 1 deletions
+13 -1
View File
@@ -1,7 +1,19 @@
Building
========
Build and run these test from this folder. Example:
clear && ./mal_test_0_build && ./bin/mal_test_0
These tests load resources from hard coded paths which point to the "res" folder. These
paths are based on the assumption that the current directory is where the build files
are located.
are located.
Emscripten
----------
On Windows, you need to move into this directory and run emsdk_env.bat from a command
prompt using an absolute path like "C:\emsdk\emsdk_env.bat". Note that PowerShell doesn't
work for me for some reason. Then, run the relevant batch file:
mal_test_0_build_emscripten.bat
The output will be placed in the bin folder.