Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d8586e16
Commit
d8586e16
authored
May 01, 2007
by
James Hawkins
Committed by
Alexandre Julliard
May 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add tests that show that costing is run in both the UI and Execute sequences.
parent
8f155977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
install.c
dlls/msi/tests/install.c
+66
-0
No files found.
dlls/msi/tests/install.c
View file @
d8586e16
...
@@ -355,6 +355,33 @@ static const CHAR ci2_file_dat[] = "File\tComponent_\tFileName\tFileSize\tVersio
...
@@ -355,6 +355,33 @@ static const CHAR ci2_file_dat[] = "File\tComponent_\tFileName\tFileSize\tVersio
"File
\t
File
\n
"
"File
\t
File
\n
"
"augustus
\t
augustus
\t
augustus
\t
500
\t\t\t
8192
\t
1"
;
"augustus
\t
augustus
\t
augustus
\t
500
\t\t\t
8192
\t
1"
;
static
const
CHAR
spf_custom_action_dat
[]
=
"Action
\t
Type
\t
Source
\t
Target
\t
ISComments
\n
"
"s72
\t
i2
\t
S64
\t
S0
\t
S255
\n
"
"CustomAction
\t
Action
\n
"
"SetFolderProp
\t
51
\t
MSITESTDIR
\t
[ProgramFilesFolder]
\\
msitest
\\
added
\t\n
"
;
static
const
CHAR
spf_install_exec_seq_dat
[]
=
"Action
\t
Condition
\t
Sequence
\n
"
"s72
\t
S255
\t
I2
\n
"
"InstallExecuteSequence
\t
Action
\n
"
"CostFinalize
\t\t
1000
\n
"
"CostInitialize
\t\t
800
\n
"
"FileCost
\t\t
900
\n
"
"SetFolderProp
\t\t
950
\n
"
"InstallFiles
\t\t
4000
\n
"
"InstallServices
\t\t
5000
\n
"
"InstallFinalize
\t\t
6600
\n
"
"InstallInitialize
\t\t
1500
\n
"
"InstallValidate
\t\t
1400
\n
"
"LaunchConditions
\t\t
100"
;
static
const
CHAR
spf_install_ui_seq_dat
[]
=
"Action
\t
Condition
\t
Sequence
\n
"
"s72
\t
S255
\t
I2
\n
"
"InstallUISequence
\t
Action
\n
"
"CostInitialize
\t\t
800
\n
"
"FileCost
\t\t
900
\n
"
"CostFinalize
\t\t
1000
\n
"
"ExecuteAction
\t\t
1100
\n
"
;
typedef
struct
_msi_table
typedef
struct
_msi_table
{
{
const
CHAR
*
filename
;
const
CHAR
*
filename
;
...
@@ -515,6 +542,20 @@ static const msi_table ci2_tables[] =
...
@@ -515,6 +542,20 @@ static const msi_table ci2_tables[] =
ADD_TABLE
(
property
),
ADD_TABLE
(
property
),
};
};
static
const
msi_table
spf_tables
[]
=
{
ADD_TABLE
(
ci_component
),
ADD_TABLE
(
directory
),
ADD_TABLE
(
rof_feature
),
ADD_TABLE
(
rof_feature_comp
),
ADD_TABLE
(
rof_file
),
ADD_TABLE
(
spf_install_exec_seq
),
ADD_TABLE
(
rof_media
),
ADD_TABLE
(
property
),
ADD_TABLE
(
spf_custom_action
),
ADD_TABLE
(
spf_install_ui_seq
),
};
/* cabinet definitions */
/* cabinet definitions */
/* make the max size large so there is only one cab file */
/* make the max size large so there is only one cab file */
...
@@ -1425,6 +1466,30 @@ static void test_concurrentinstall(void)
...
@@ -1425,6 +1466,30 @@ static void test_concurrentinstall(void)
DeleteFile
(
msifile
);
DeleteFile
(
msifile
);
}
}
static
void
test_setpropertyfolder
(
void
)
{
UINT
r
;
CreateDirectoryA
(
"msitest"
,
NULL
);
create_file
(
"msitest
\\
maximus"
,
500
);
create_database
(
msifile
,
spf_tables
,
sizeof
(
spf_tables
)
/
sizeof
(
msi_table
));
MsiSetInternalUI
(
INSTALLUILEVEL_FULL
,
NULL
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
delete_pf
(
"msitest
\\
maximus"
,
TRUE
);
/* FIXME: remove when the tests pass */
todo_wine
{
ok
(
delete_pf
(
"msitest
\\
added
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
added"
,
FALSE
),
"File not installed
\n
"
);
}
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
DeleteFile
(
msifile
);
}
START_TEST
(
install
)
START_TEST
(
install
)
{
{
DWORD
len
;
DWORD
len
;
...
@@ -1454,6 +1519,7 @@ START_TEST(install)
...
@@ -1454,6 +1519,7 @@ START_TEST(install)
test_setdirproperty
();
test_setdirproperty
();
test_cabisextracted
();
test_cabisextracted
();
test_concurrentinstall
();
test_concurrentinstall
();
test_setpropertyfolder
();
SetCurrentDirectoryA
(
prev_path
);
SetCurrentDirectoryA
(
prev_path
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment