|
2 năm trước cách đây | |
---|---|---|
.. | ||
benchs | 5 năm trước cách đây | |
display | 3 năm trước cách đây | |
echoServer | 3 năm trước cách đây | |
misc | 2 năm trước cách đây | |
nullsafety | 3 năm trước cách đây | |
optimization | 3 năm trước cách đây | |
runci | 3 năm trước cách đây | |
server | 2 năm trước cách đây | |
sourcemaps | 6 năm trước cách đây | |
sys | 3 năm trước cách đây | |
threads | 2 năm trước cách đây | |
threads-old | 4 năm trước cách đây | |
unit | 2 năm trước cách đây | |
.gitattributes | 10 năm trước cách đây | |
Brewfile | 4 năm trước cách đây | |
PHP.ini | 3 năm trước cách đây | |
README.md | 3 năm trước cách đây | |
RunCi.hx | 3 năm trước cách đây | |
RunCi.hxml | 7 năm trước cách đây | |
TestMakefile.hx | 8 năm trước cách đây | |
TestMakefile.hxml | 7 năm trước cách đây |
We have a number of test suites, which are placed in their own folders in this directory.
"RunCi.hx" is the script used by our CIs to run all the test suites.
It is possible to run it in local machines too:
export TEST=$TARGET
(or set "TEST=$TARGET"
on Windows), where $TARGET
should be a comma-seperated list of targets, e.g. neko,macro
. Possible targets are macro
, neko
, js
, lua
, php
, cpp
, cppia
, flash9
, java
, jvm
, cs
, python
, and hl
.haxe RunCi.hxml
.Note that the script will try to look for test dependencies and install them if they are not found. Look at the getXXXDependencies
functions for the details.
The "unit" folder contains a set of unit tests for the Haxe std library. Unit tests can be run separately instead of using "RunCi.hx", which runs all test suites.
Assuming all test dependencies has been installed, we compile and run the unit tests for all targets at once as follows:
haxe compile.hxml
.nekotools server
.Cpp unit tests are compiled with -D HXCPP_NO_DEBUG_LINK
(removes debug symbols) to speed up compilation times. You can remove this from compile-cpp.hxml
to be able to open the generated Test-debug.exe
in Visual Studio and debug it. This is useful if it's difficult to figure out why a test is failing, or also which test is failing (for instance with a segmentation fault).
The "sys" folder contains tests for the system targets. It can also be run separately instead of using "RunCi.hx".
Assuming all test dependencies has been installed, we compile and run the sys tests for all targets at once as follows:
haxe run.hxml
.