5 SET MONO_MODULE_PATH=%2
8 IF "" == "%CONFIG_PATH%" (
9 ECHO Error: No configuration path set.
13 IF "" == "%MONO_MODULE_PATH%" (
14 ECHO Error: No mono module path set.
18 IF "" == "%CPU_ARCH%" (
19 ECHO Error: No cpu architecture set.
23 IF NOT "x86" == "%CPU_ARCH%" (
25 IF NOT "x86-64" == "%CPU_ARCH%" (
26 ECHO Error: Unknown cpu architecture, %CPU_ARCH%.
31 SET CONFIG_PATH=%CONFIG_PATH:"=%
32 SET CONFIG_PATH=%CONFIG_PATH:/=\%
34 SET MONO_MODULE_PATH=%MONO_MODULE_PATH:"=%
35 SET MONO_MODULE_PATH=%MONO_MODULE_PATH:/=\%
37 REM Setup test configuration file.
38 >%CONFIG_PATH% ECHO ^<configuration^>
39 >>%CONFIG_PATH% ECHO ^<dllmap os="windows" cpu="%CPU_ARCH%" dll="libtest" target="%MONO_MODULE_PATH%\libtest.dll" /^>
40 >>%CONFIG_PATH% ECHO ^</configuration^>
43 ECHO Successfully setup test configuration file, %CONFIG_PATH%.
48 ECHO Failed to setup test configuration file.
49 ECHO test-config-setup.bat [CONFIG_FILE_PATH] [MONO_MODULE_PATH] [x86|x86-64]