diff options
| author | ruki <[email protected]> | 2024-02-10 23:02:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-10 23:02:44 +0800 |
| commit | 6015b11e6904c81b676c53d6947d7ab00a474781 (patch) | |
| tree | d285a7fa938d3b09e1b6b48ec3d61a7ca3370a2a /tests/projects/c++/modules/test_base.lua | |
| parent | e6fd7cad454f75bea550ecd4783d2c0496684953 (diff) | |
test modules incremental compilation
Diffstat (limited to 'tests/projects/c++/modules/test_base.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_base.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/projects/c++/modules/test_base.lua b/tests/projects/c++/modules/test_base.lua index 092fbd72f..219901c63 100644 --- a/tests/projects/c++/modules/test_base.lua +++ b/tests/projects/c++/modules/test_base.lua @@ -8,6 +8,12 @@ function _build() else os.run("xmake -r") end + local outdata = os.iorun("xmake") + if outdata then + if outdata:find("compiling") or outdata:find("linking") or outdata:find("generating") then + raise("Modules incremental compilation does not work\n%s", outdata) + end + end end function can_build() |
