aboutsummaryrefslogtreecommitdiff
path: root/tests/cc/modules
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-16 16:22:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-16 16:22:48 +0200
commit5c8de4f515c99d894bec764a6793352c9cad0825 (patch)
tree6a590192c8010e19d9fa152058ba382ec160d603 /tests/cc/modules
parentf3e193b2651b2589daecaf181b96c5622acc51e9 (diff)
Add support for explicitly specifying module name on mxx{} target
Diffstat (limited to 'tests/cc/modules')
-rw-r--r--tests/cc/modules/testscript15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/cc/modules/testscript b/tests/cc/modules/testscript
index 50dc9b2..ce2f1e9 100644
--- a/tests/cc/modules/testscript
+++ b/tests/cc/modules/testscript
@@ -118,7 +118,7 @@ $* test clean <<EOI
: name-match
:
-: Test fuzzy match between module name and file name
+: Test fuzzy/explicit match between module name and file name.
:
{
# "Bad" match which we should better.
@@ -154,6 +154,17 @@ $* test clean <<EOI
ln -s ../../core.mxx foo/core.mxx;
ln -s ../core.mxx ../../core.cxx ../../driver.cxx ./;
$* test clean <'exe{test}: cxx{driver core} mxx{core} foo/mxx{core}'
+
+ : explicit
+ :
+ : Explicit module name.
+ :
+ ln -s ../../core.mxx baz.mxx;
+ ln -s ../core.mxx ../../core.cxx ../../driver.cxx ./;
+ $* test clean <<EOO
+ exe{test}: cxx{driver core} mxx{core baz}
+ mxx{baz}@./: cc.module_name = foo.core
+ EOO
}
: unresolved
@@ -172,7 +183,7 @@ $* test &*.d <'exe{test}: cxx{driver} mxx{core}' 2>>EOE != 0
info: guessed: bar.core
info: actual: foo.core
info: consider adjusting module interface file names or
- info: consider explicitly specifying module name with @@ MOD
+ info: consider specifying module name with cc.module_name
EOE
: library