Add another test that checks priority scheduling in the case of
[pintos-anon] / src / tests / threads / Make.tests
index 64b9ef3fd2421fce7aa73030e0277a4c5e19fed3..5a7b400493d916b08f0a4538de98cb89d2976242 100644 (file)
@@ -4,9 +4,10 @@
 tests/threads_TESTS = $(addprefix tests/threads/,alarm-single          \
 alarm-multiple alarm-priority alarm-zero alarm-negative                        \
 priority-change priority-donate-one priority-donate-multiple           \
-priority-donate-nest priority-fifo priority-preempt priority-sema      \
-priority-condvar mlfqs-load-1 mlfqs-load-60 mlfqs-load-avg             \
-mlfqs-recent-1 mlfqs-fair-2 mlfqs-fair-20 mlfqs-nice-2 mlfqs-nice-10)
+priority-donate-multiple2 priority-donate-nest priority-donate-sema    \
+priority-fifo priority-preempt priority-sema priority-condvar          \
+mlfqs-load-1 mlfqs-load-60 mlfqs-load-avg mlfqs-recent-1 mlfqs-fair-2  \
+mlfqs-fair-20 mlfqs-nice-2 mlfqs-nice-10)
 
 # Sources for tests.
 tests/threads_SRC  = tests/threads/tests.c
@@ -17,7 +18,9 @@ tests/threads_SRC += tests/threads/alarm-negative.c
 tests/threads_SRC += tests/threads/priority-change.c
 tests/threads_SRC += tests/threads/priority-donate-one.c
 tests/threads_SRC += tests/threads/priority-donate-multiple.c
+tests/threads_SRC += tests/threads/priority-donate-multiple2.c
 tests/threads_SRC += tests/threads/priority-donate-nest.c
+tests/threads_SRC += tests/threads/priority-donate-sema.c
 tests/threads_SRC += tests/threads/priority-fifo.c
 tests/threads_SRC += tests/threads/priority-preempt.c
 tests/threads_SRC += tests/threads/priority-sema.c
@@ -28,11 +31,16 @@ tests/threads_SRC += tests/threads/mlfqs-load-avg.c
 tests/threads_SRC += tests/threads/mlfqs-recent-1.c
 tests/threads_SRC += tests/threads/mlfqs-fair.c
 
-tests/threads/mlfqs-load-1.output                              \
-tests/threads/mlfqs-load-60.output                             \
-tests/threads/mlfqs-load-avg.output                            \
-tests/threads/mlfqs-recent-1.output                            \
-tests/threads/mlfqs-fair-2.output                              \
-tests/threads/mlfqs-fair-20.output                             \
-tests/threads/mlfqs-nice-2.output                              \
-tests/threads/mlfqs-nice-10.output: KERNELFLAGS += -mlfqs
+MLFQS_OUTPUTS =                                \
+tests/threads/mlfqs-load-1.output              \
+tests/threads/mlfqs-load-60.output             \
+tests/threads/mlfqs-load-avg.output            \
+tests/threads/mlfqs-recent-1.output            \
+tests/threads/mlfqs-fair-2.output              \
+tests/threads/mlfqs-fair-20.output             \
+tests/threads/mlfqs-nice-2.output              \
+tests/threads/mlfqs-nice-10.output
+
+$(MLFQS_OUTPUTS): KERNELFLAGS += -mlfqs
+$(MLFQS_OUTPUTS): TIMEOUT = 240
+