int main(int argc, char *argv[]){ printf("***************************\n"); printf("* Do not create process *\n"); printf("***************************\n"); test_create_process(0, 0); test_create_process(0, 1); test_create_process(0, 5); printf("***************************\n"); printf("* Create 1 process *\n"); printf("***************************\n"); test_create_process(1, 0); test_create_process(1, 3); test_create_process(1, 6); printf("***************************\n"); printf("* Create 3 process *\n"); printf("***************************\n"); test_create_process(3, 5); test_create_process(3, 10); printf("***************************\n"); printf("* Create 5 process *\n"); printf("***************************\n"); test_create_process(3, 6); test_create_process(3, 12); return 0; }
int main(){ fixtureSetup(); resetTestCount(); testStarted("test_create_process"); setup(); test_create_process(); tearDown(); testEnded(); testStarted("test_add_first_process"); setup(); test_add_first_process(); tearDown(); testEnded(); testStarted("test_add_process_with_priority_higher_than_first_process"); setup(); test_add_process_with_priority_higher_than_first_process(); tearDown(); testEnded(); testStarted("test_add_process_with_priority_somewhere_in_between_process_queue_only_2_elements"); setup(); test_add_process_with_priority_somewhere_in_between_process_queue_only_2_elements(); tearDown(); testEnded(); testStarted("test_add_process_with_priority_somewhere_in_between_process_queue"); setup(); test_add_process_with_priority_somewhere_in_between_process_queue(); tearDown(); testEnded(); testStarted("test_add_process_with_very_low_priority"); setup(); test_add_process_with_very_low_priority(); tearDown(); testEnded(); testStarted("test_remove_first_and_only_process"); setup(); test_remove_first_and_only_process(); tearDown(); testEnded(); testStarted("test_remove_processes_in_middle"); setup(); test_remove_processes_in_middle(); tearDown(); testEnded(); testStarted("test_remove_last_process"); setup(); test_remove_last_process(); tearDown(); testEnded(); testStarted("test_remove_first_in_many"); setup(); test_remove_first_in_many(); tearDown(); testEnded(); summarizeTestCount(); fixtureTearDown(); return 0; }