Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gpucloudsim
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LPDS
gpucloudsim
Commits
4b0dca77
Commit
4b0dca77
authored
Jan 06, 2012
by
Anton Beloglazov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganized the unit tests
parent
9006b427
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
99 deletions
+3
-99
PowerVmAllocationPolicyMigrationLocalRegressionTest.java
.../PowerVmAllocationPolicyMigrationLocalRegressionTest.java
+0
-21
UtilizationModelPlanetLabTest.java
...dbus/cloudsim/examples/UtilizationModelPlanetLabTest.java
+0
-51
UtilizationModelStochasticExponentialSmoothingTest.java
...s/UtilizationModelStochasticExponentialSmoothingTest.java
+0
-24
UtilizationModelPlanetLabInMemoryTest.java
...udbus/cloudsim/UtilizationModelPlanetLabInMemoryTest.java
+1
-1
PowerVmSelectionPolicyMaximumCorrelationTest.java
...m/power/PowerVmSelectionPolicyMaximumCorrelationTest.java
+1
-1
MathUtilTest.java
...rc/test/java/org/cloudbus/cloudsim/util/MathUtilTest.java
+1
-1
No files found.
modules/cloudsim-examples/src/test/java/org/cloudbus/cloudsim/examples/PowerVmAllocationPolicyMigrationLocalRegressionTest.java
deleted
100644 → 0
View file @
9006b427
package
org
.
cloudbus
.
cloudsim
.
examples
;
import
org.junit.Test
;
import
flanagan.analysis.Regression
;
public
class
PowerVmAllocationPolicyMigrationLocalRegressionTest
{
public
static
final
double
[]
X
=
{
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
};
public
static
final
double
[]
Y
=
{
55
,
60
,
62
,
59
,
67
,
73
,
85
,
97
,
73
,
68
,
69
,
52
,
51
,
55
,
48
,
46
,
52
,
55
,
58
,
65
,
70
};
@Test
public
void
testData
()
{
Regression
regression
=
new
Regression
(
X
,
Y
);
regression
.
constantPlot
();
}
}
modules/cloudsim-examples/src/test/java/org/cloudbus/cloudsim/examples/UtilizationModelPlanetLabTest.java
deleted
100644 → 0
View file @
9006b427
package
org
.
cloudbus
.
cloudsim
.
examples
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
org.junit.Before
;
import
org.junit.Test
;
public
class
UtilizationModelPlanetLabTest
{
public
static
final
String
FILE
=
"UtilizationModelPlanetLabTest.dat"
;
private
UtilizationModelPlanetLab
utilizationModel
;
@Before
public
void
setUp
()
throws
Exception
{
utilizationModel
=
new
UtilizationModelPlanetLab
(
getClass
().
getClassLoader
().
getResource
(
FILE
)
.
getPath
());
}
@Test
public
void
testGetPowerModel
()
{
assertEquals
(
10.1
,
utilizationModel
.
getUtilization
(
0
),
0
);
assertEquals
(
11.1
,
utilizationModel
.
getUtilization
(
1
),
0
);
assertEquals
(
12.1
,
utilizationModel
.
getUtilization
(
2
),
0
);
assertEquals
(
13.1
,
utilizationModel
.
getUtilization
(
3
),
0
);
assertEquals
(
14.1
,
utilizationModel
.
getUtilization
(
4
),
0
);
assertEquals
(
15.1
,
utilizationModel
.
getUtilization
(
5
),
0
);
assertEquals
(
10.1
,
utilizationModel
.
getUtilization
(
0
),
0
);
assertEquals
(
11.1
,
utilizationModel
.
getUtilization
(
1
),
0
);
assertEquals
(
12.1
,
utilizationModel
.
getUtilization
(
2
),
0
);
assertEquals
(
16.1
,
utilizationModel
.
getUtilization
(
6
),
0
);
assertEquals
(
17.1
,
utilizationModel
.
getUtilization
(
7
),
0
);
assertEquals
(
18.1
,
utilizationModel
.
getUtilization
(
8
),
0
);
assertEquals
(
13.1
,
utilizationModel
.
getUtilization
(
3
),
0
);
assertEquals
(
14.1
,
utilizationModel
.
getUtilization
(
4
),
0
);
assertEquals
(
15.1
,
utilizationModel
.
getUtilization
(
5
),
0
);
assertEquals
(
19.1
,
utilizationModel
.
getUtilization
(
9
),
0
);
assertEquals
(
20.1
,
utilizationModel
.
getUtilization
(
10
),
0
);
assertEquals
(
21.1
,
utilizationModel
.
getUtilization
(
11
),
0
);
assertEquals
(
22.1
,
utilizationModel
.
getUtilization
(
12
),
0
);
assertEquals
(
23.1
,
utilizationModel
.
getUtilization
(
13
),
0
);
assertEquals
(
24.1
,
utilizationModel
.
getUtilization
(
14
),
0
);
assertEquals
(
25.1
,
utilizationModel
.
getUtilization
(
15
),
0
);
assertEquals
(
0.0
,
utilizationModel
.
getUtilization
(
16
),
0
);
assertEquals
(
10.1
,
utilizationModel
.
getUtilization
(
0
),
0
);
assertEquals
(
11.1
,
utilizationModel
.
getUtilization
(
1
),
0
);
assertEquals
(
12.1
,
utilizationModel
.
getUtilization
(
2
),
0
);
assertEquals
(
13.1
,
utilizationModel
.
getUtilization
(
3
),
0
);
}
}
modules/cloudsim-examples/src/test/java/org/cloudbus/cloudsim/examples/UtilizationModelStochasticExponentialSmoothingTest.java
deleted
100644 → 0
View file @
9006b427
package
org
.
cloudbus
.
cloudsim
.
examples
;
import
org.cloudbus.cloudsim.Log
;
import
org.junit.Ignore
;
import
org.junit.Test
;
public
class
UtilizationModelStochasticExponentialSmoothingTest
{
@Test
@Ignore
public
void
testGeneratedValues
()
{
double
alpha
=
0.1
;
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
UtilizationModelStochasticExponentialSmoothing
utilizationModel
=
new
UtilizationModelStochasticExponentialSmoothing
();
UtilizationModelStochasticExponentialSmoothing
.
ALPHA
=
alpha
;
Log
.
printLine
(
"\n\nalpha = "
+
UtilizationModelStochasticExponentialSmoothing
.
ALPHA
+
"\n\n"
);
for
(
int
j
=
0
;
j
<
100
;
j
++)
{
Log
.
printLine
(
j
+
";"
+
utilizationModel
.
getUtilization
(
j
));
}
alpha
+=
0.1
;
}
}
}
modules/cloudsim
-examples/src/test/java/org/cloudbus/cloudsim/examples
/UtilizationModelPlanetLabInMemoryTest.java
→
modules/cloudsim
/src/test/java/org/cloudbus/cloudsim
/UtilizationModelPlanetLabInMemoryTest.java
View file @
4b0dca77
package
org
.
cloudbus
.
cloudsim
.
examples
;
package
org
.
cloudbus
.
cloudsim
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
modules/cloudsim
-examples/src/test/java/org/cloudbus/cloudsim/examples
/PowerVmSelectionPolicyMaximumCorrelationTest.java
→
modules/cloudsim
/src/test/java/org/cloudbus/cloudsim/power
/PowerVmSelectionPolicyMaximumCorrelationTest.java
View file @
4b0dca77
package
org
.
cloudbus
.
cloudsim
.
examples
;
package
org
.
cloudbus
.
cloudsim
.
power
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
modules/cloudsim
-examples/src/test/java/org/cloudbus/cloudsim/examples
/MathUtilTest.java
→
modules/cloudsim
/src/test/java/org/cloudbus/cloudsim/util
/MathUtilTest.java
View file @
4b0dca77
package
org
.
cloudbus
.
cloudsim
.
examples
;
package
org
.
cloudbus
.
cloudsim
.
util
;
import
static
org
.
junit
.
Assert
.
assertArrayEquals
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
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