diff --git a/SporeModManager/test.py b/SporeModManager/test.py
index e6148ab..2c03270 100755
--- a/SporeModManager/test.py
+++ b/SporeModManager/test.py
@@ -134,14 +134,18 @@ def test_install():
description="test_install_1"
installerSystemVersion="1.0.1.1"
dllsBuild="2.5.20">
- test_install.dll
- test_install.package
- test_install_ep1.package
+ test_install_1.dll
+ test_install_1.package
+ test_install_1_lowercase.package
+ test_install_1_ep1.package
+ test_install_1_ep1_mixedcase.package
"""
files = [
- [ 'test_install.dll', 'dll' ],
- [ 'test_install.package', 'package' ],
- [ 'test_install_ep1.package', 'package_ep1' ]
+ [ 'test_install_1.dll', 'dll' ],
+ [ 'test_install_1.package', 'package' ],
+ [ 'test_install_1_lowercase.package', 'package' ],
+ [ 'test_install_1_ep1.package', 'package_ep1' ],
+ [ 'test_install_1_ep1_mixedcase.package', 'package_ep1' ]
]
write_sporemod(xml, files)
@@ -150,23 +154,32 @@ def test_install():
assert result.returncode == 0
assert result.stdout != b''
assert result.stderr == b''
- assert os.path.isfile(os.path.join(modlibs_path, 'test_install.dll'))
- assert os.path.isfile(os.path.join(data_path, 'test_install.package'))
- assert os.path.isfile(os.path.join(ep1_path, 'test_install_ep1.package'))
+ assert os.path.isfile(os.path.join(modlibs_path, 'test_install_1.dll'))
+ assert os.path.isfile(os.path.join(data_path, 'test_install_1.package'))
+ assert os.path.isfile(os.path.join(data_path, 'test_install_1_lowercase.package'))
+ assert os.path.isfile(os.path.join(ep1_path, 'test_install_1_ep1.package'))
+ assert os.path.isfile(os.path.join(ep1_path, 'test_install_1_ep1_mixedcase.package'))
# now check if works
+ os.close(os.open(os.path.join(data_path, 'test_install_2_compatfile'), os.O_CREAT))
os.close(os.open(os.path.join(ep1_path, 'test_install_2_compatfile'), os.O_CREAT))
xml = """
+ test_install_2_1.package
test_install_2_ep1_1.package
+ test_install_2_2.package
test_install_2_ep1_2.package
"""
files = [
+ [ 'test_install_2_1.package', 'package '],
+ [ 'test_install_2_2.package', 'package '],
[ 'test_install_2_ep1_1.package', 'package_ep1' ],
[ 'test_install_2_ep1_2.package', 'package_ep1' ],
]
@@ -176,7 +189,9 @@ def test_install():
assert result.returncode == 0
assert result.stdout != b''
assert result.stderr == b''
+ assert os.path.isfile(os.path.join(data_path, 'test_install_2_1.package'))
assert os.path.isfile(os.path.join(ep1_path, 'test_install_2_ep1_1.package'))
+ assert not os.path.isfile(os.path.join(data_path, 'test_install_2_2.package'))
assert not os.path.isfile(os.path.join(ep1_path, 'test_install_2_ep1_2.package'))
# verify that an invalid dllsBuild doesn't work
@@ -184,7 +199,7 @@ def test_install():
unique="test_install_3"
description="test_install_3"
installerSystemVersion="1.0.1.1"
- dllsBuild="9.9.999">
+ dllsBuild="999.999.999">
"""
write_sporemod(xml)
result = run_smm([ 'install', sporemod_file ])