diff options
| author | ruki <[email protected]> | 2024-02-16 00:59:50 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-16 00:59:50 +0800 |
| commit | 4cb6ecce1119c66bb5c84a27f3f155b2b28ab6ba (patch) | |
| tree | 4e4777284c08adb0db456af540acd2deceb62b30 /tests/projects/c++/modules | |
| parent | b1d3ab468f9fefaed3368d0a9bb90fb4f9c0807b (diff) | |
add more tests
Diffstat (limited to 'tests/projects/c++/modules')
| -rw-r--r-- | tests/projects/c++/modules/internal_partition/src/hello_internal.mpp | 4 | ||||
| -rw-r--r-- | tests/projects/c++/modules/test_headerunits.lua | 6 | ||||
| -rw-r--r-- | tests/projects/c++/modules/test_stdmodules.lua | 6 |
3 files changed, 14 insertions, 2 deletions
diff --git a/tests/projects/c++/modules/internal_partition/src/hello_internal.mpp b/tests/projects/c++/modules/internal_partition/src/hello_internal.mpp index 8d0d4bee0..46a86c361 100644 --- a/tests/projects/c++/modules/internal_partition/src/hello_internal.mpp +++ b/tests/projects/c++/modules/internal_partition/src/hello_internal.mpp @@ -7,5 +7,5 @@ module hello:part_internal; namespace hello { void say_internal(const char *str) { printf("%s\n", str); - } -}
\ No newline at end of file + } +} diff --git a/tests/projects/c++/modules/test_headerunits.lua b/tests/projects/c++/modules/test_headerunits.lua index bb32070cf..70e8b3d51 100644 --- a/tests/projects/c++/modules/test_headerunits.lua +++ b/tests/projects/c++/modules/test_headerunits.lua @@ -9,6 +9,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 main(t) diff --git a/tests/projects/c++/modules/test_stdmodules.lua b/tests/projects/c++/modules/test_stdmodules.lua index 68a5922ef..6c3a16b2c 100644 --- a/tests/projects/c++/modules/test_stdmodules.lua +++ b/tests/projects/c++/modules/test_stdmodules.lua @@ -9,6 +9,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 main(t) |
