[haizea-commit] r559 - trunk/tests
haizea-commit at mailman.cs.uchicago.edu
haizea-commit at mailman.cs.uchicago.edu
Thu Jan 29 18:07:05 CST 2009
Author: borja
Date: 2009-01-29 18:07:03 -0600 (Thu, 29 Jan 2009)
New Revision: 559
Added:
trunk/tests/migrate.lwf
trunk/tests/preemption_prematureend2.lwf
trunk/tests/reservation.lwf
trunk/tests/reservation_prematureend.lwf
trunk/tests/reuse1.lwf
trunk/tests/reuse2.lwf
trunk/tests/wait.lwf
Modified:
trunk/tests/test_simulator.py
Log:
More tests
Added: trunk/tests/migrate.lwf
===================================================================
--- trunk/tests/migrate.lwf (rev 0)
+++ trunk/tests/migrate.lwf 2009-01-30 00:07:03 UTC (rev 559)
@@ -0,0 +1,9 @@
+# Name: MIGRATE
+# Description: Slightly convoluted combination of requests with
+# the ultimate purpose of forcing one of the leases (the third
+# one) to cold-migrate from nodes P3, P4 to nodes P1, P2
+# (which become available earlier than expected due to the
+# early end of the first AR lease)
+0 1800 3600 900 2 1 1024 0 foobar.img 1024
+0 0 3600 3600 2 1 1024 0 foobar.img 1024
+0 -1 3600 3600 2 1 1024 0 foobar.img 1024
\ No newline at end of file
Added: trunk/tests/preemption_prematureend2.lwf
===================================================================
--- trunk/tests/preemption_prematureend2.lwf (rev 0)
+++ trunk/tests/preemption_prematureend2.lwf 2009-01-30 00:07:03 UTC (rev 559)
@@ -0,0 +1,5 @@
+# Name: PREEMPT-PREMATUREEND2
+# Description: Same as PREEMPT, but with
+# premature end time for both leases.
+0 -1 3600 2700 1 1 1024 0 foobar.img 1024
+900 1800 900 600 4 1 1024 0 foobar.img 1024
\ No newline at end of file
Added: trunk/tests/reservation.lwf
===================================================================
--- trunk/tests/reservation.lwf (rev 0)
+++ trunk/tests/reservation.lwf 2009-01-30 00:07:03 UTC (rev 559)
@@ -0,0 +1,7 @@
+# Name: RESERVATION
+# Description: Two best-effort leases. The first one is a long
+# single-node lease, while the second one is a short wide lease
+# using up all the nodes. With backfilling, the scheduler
+# should make a future reservation for the second lease.
+0 -1 3600 3600 1 1 1024 0 foobar.img 1024
+900 -1 900 900 4 1 1024 0 foobar.img 1024
\ No newline at end of file
Added: trunk/tests/reservation_prematureend.lwf
===================================================================
--- trunk/tests/reservation_prematureend.lwf (rev 0)
+++ trunk/tests/reservation_prematureend.lwf 2009-01-30 00:07:03 UTC (rev 559)
@@ -0,0 +1,8 @@
+# Name: RESERVATION-PREMATUREEND
+# Description: Same as RESERVATION. However, the first lease
+# ends prematurely, freeing up resources earlier than
+# expected. The scheduler should reschedule the second lease
+# (for which a reservation was made in the future)
+# since it can now start earlier
+0 -1 3600 1800 1 1 1024 0 foobar.img 1024
+900 -1 900 900 4 1 1024 0 foobar.img 1024
\ No newline at end of file
Added: trunk/tests/reuse1.lwf
===================================================================
--- trunk/tests/reuse1.lwf (rev 0)
+++ trunk/tests/reuse1.lwf 2009-01-30 00:07:03 UTC (rev 559)
@@ -0,0 +1,7 @@
+# Name: REUSE-1
+# Description: Two lease requests, both requiring the same
+# disk image. The second (best-effort) should be able to avoid
+# doing an image transfer by reusing the cached image from the
+# first (AR) request.
+0 900 900 900 1 1 1024 0 foobar.img 1024
+2700 -1 900 900 1 1 1024 0 foobar.img 1024
\ No newline at end of file
Added: trunk/tests/reuse2.lwf
===================================================================
--- trunk/tests/reuse2.lwf (rev 0)
+++ trunk/tests/reuse2.lwf 2009-01-30 00:07:03 UTC (rev 559)
@@ -0,0 +1,10 @@
+# Name: REUSE-2
+# Description: The first two lease requests are AR leases happening
+# at the same time, but with different images. The third one is
+# a best-effort one, using the image from the second AR request
+# (which should be scheduled on nodes P3, P4). The scheduler should
+# prefer scheduling the best-effort lease on P3, P4 since it
+# avoids an image transfer.
+0 900 900 900 2 1 1024 0 foobar1.img 1024
+0 900 900 900 2 1 1024 0 foobar2.img 1024
+2700 -1 900 900 1 1 1024 0 foobar2.img 1024
\ No newline at end of file
Modified: trunk/tests/test_simulator.py
===================================================================
--- trunk/tests/test_simulator.py 2009-01-29 23:11:04 UTC (rev 558)
+++ trunk/tests/test_simulator.py 2009-01-30 00:07:03 UTC (rev 559)
@@ -20,4 +20,39 @@
def test_preemption_prematureend():
config = load_configfile("base_config_simulator.conf", "preemption_prematureend.lwf")
rm = ResourceManager(config)
+ rm.start()
+
+def test_preemption_prematureend2():
+ config = load_configfile("base_config_simulator.conf", "preemption_prematureend2.lwf")
+ rm = ResourceManager(config)
+ rm.start()
+
+def test_reservation():
+ config = load_configfile("base_config_simulator.conf", "reservation.lwf")
+ rm = ResourceManager(config)
+ rm.start()
+
+def test_reservation_prematureend():
+ config = load_configfile("base_config_simulator.conf", "reservation_prematureend.lwf")
+ rm = ResourceManager(config)
+ rm.start()
+
+def test_migrate():
+ config = load_configfile("base_config_simulator.conf", "migrate.lwf")
+ rm = ResourceManager(config)
+ rm.start()
+
+def test_reuse1():
+ config = load_configfile("base_config_simulator.conf", "reuse1.lwf")
+ rm = ResourceManager(config)
+ rm.start()
+
+def test_reuse2():
+ config = load_configfile("base_config_simulator.conf", "reuse2.lwf")
+ rm = ResourceManager(config)
+ rm.start()
+
+def test_wait():
+ config = load_configfile("base_config_simulator.conf", "wait.lwf")
+ rm = ResourceManager(config)
rm.start()
\ No newline at end of file
Added: trunk/tests/wait.lwf
===================================================================
--- trunk/tests/wait.lwf (rev 0)
+++ trunk/tests/wait.lwf 2009-01-30 00:07:03 UTC (rev 559)
@@ -0,0 +1,11 @@
+# Name: WAIT
+# Description: All best-effort requests, all of which (except the first)
+# will have to wait in the queue before starting.
+#0 -1 900 900 4 1 1024 0 foobar.img 1024
+#0 -1 900 900 4 1 1024 0 foobar.img 1024
+#0 -1 900 900 4 1 1024 0 foobar.img 1024
+#0 -1 900 900 4 1 1024 0 foobar.img 1024
+#0 -1 900 900 4 1 1024 0 foobar.img 1024
+#0 -1 900 900 4 1 1024 0 foobar.img 1024
+#0 -1 900 900 4 1 1024 0 foobar.img 1024
+#0 -1 900 900 4 1 1024 0 foobar.img 1024
More information about the Haizea-commit
mailing list