Changeset d1f9281 in rtems-schedsim


Ignore:
Timestamp:
May 27, 2014, 2:39:09 PM (5 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
master
Children:
b68f8cd
Parents:
f6fe059
Message:

schedsim_priority: Change scenario's to expect verbose output.

Location:
schedsim/shell/schedsim_priority/scenarios
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • schedsim/shell/schedsim_priority/scenarios/script01.expected

    rf6fe059 rd1f9281  
     1Script File               : script01.scen
     2verbose                   : 1
     3==> 1: echo "*** TEST 01 ***"
    14*** TEST 01 ***
     5==> 2: rtems_init
    26  CPU 0: Thread Heir: 0x09010001 priority=255
    37  CPU 0: Thread Executing: 0x09010001 priority=255
     8==> 3: echo "=== Create and delete 0x0a010001 ==="
    49=== Create and delete 0x0a010001 ===
     10==> 4: task_create TA1 3
    511Creating task with:  Preemption: yes Timeslicing: no
    612Task (TA1) created: id=0x0a010001, priority=3
     
    814  CPU 0: Thread Heir: 0x0a010001 priority=3
    915  CPU 0: Thread Executing: 0x0a010001 priority=3
     16==> 5: task_delete TA1
    1017  CPU 0: Thread Heir: 0x09010001 priority=255
    1118  CPU 0: Thread Executing: 0x09010001 priority=255
    1219Task (0x0a010001) deleted
     20==> 6: echo "=== Create and delete 0x0a010002 ==="
    1321=== Create and delete 0x0a010002 ===
     22==> 7: task_create TA1 3
    1423Creating task with:  Preemption: yes Timeslicing: no
    1524Task (TA1) created: id=0x0a010002, priority=3
     
    1726  CPU 0: Thread Heir: 0x0a010002 priority=3
    1827  CPU 0: Thread Executing: 0x0a010002 priority=3
     28==> 8: task_delete 0x0a010002
    1929  CPU 0: Thread Heir: 0x09010001 priority=255
    2030  CPU 0: Thread Executing: 0x09010001 priority=255
    2131Task (0x0a010002) deleted
     32==> 9: echo "*** END OF TEST 01 ***"
    2233*** END OF TEST 01 ***
     34==> 10: exit
  • schedsim/shell/schedsim_priority/scenarios/script02.expected

    rf6fe059 rd1f9281  
     1Script File               : script02.scen
     2verbose                   : 1
     3==> 1: echo "*** TEST 02 ***"
    14*** TEST 02 ***
     5==> 2: rtems_init
    26  CPU 0: Thread Heir: 0x09010001 priority=255
    37  CPU 0: Thread Executing: 0x09010001 priority=255
     8==> 3: echo "=== Create 0x0a010001 ==="
    49=== Create 0x0a010001 ===
     10==> 4: task_create TA1 1
    511Creating task with:  Preemption: yes Timeslicing: no
    612Task (TA1) created: id=0x0a010001, priority=1
     
    814  CPU 0: Thread Heir: 0x0a010001 priority=1
    915  CPU 0: Thread Executing: 0x0a010001 priority=1
     16==> 5: task_wake_after 5
    1017Task (0x0a010001) sleeping for 5 ticks
    1118  CPU 0: Thread Heir: 0x09010001 priority=255
    1219  CPU 0: Thread Executing: 0x09010001 priority=255
     20==> 6: clock_tick 7
    1321ClockTick (1) ...
    1422ClockTick (2) ...
     
    2028ClockTick (6) ...
    2129ClockTick (7) ...
     30==> 7: echo "*** END OF TEST 2 ***"
    2231*** END OF TEST 2 ***
     32==> 8: exit
  • schedsim/shell/schedsim_priority/scenarios/script03.expected

    rf6fe059 rd1f9281  
     1Script File               : script03.scen
     2verbose                   : 1
     3==> 1: echo "*** TEST 03 ***"
    14*** TEST 03 ***
     5==> 2: rtems_init
    26  CPU 0: Thread Heir: 0x09010001 priority=255
    37  CPU 0: Thread Executing: 0x09010001 priority=255
     8==> 3: echo "=== Create 0x0a010001 ==="
    49=== Create 0x0a010001 ===
     10==> 4: task_create TA1 1
    511Creating task with:  Preemption: yes Timeslicing: no
    612Task (TA1) created: id=0x0a010001, priority=1
     
    814  CPU 0: Thread Heir: 0x0a010001 priority=1
    915  CPU 0: Thread Executing: 0x0a010001 priority=1
     16==> 5: echo "** Mode - query"
    1017** Mode - query
     18==> 6: task_mode
    1119Previous Mode: Preemption: yes Timeslicing: no
     20==> 7: echo "** Mode - set no timeslicing"
    1221** Mode - set no timeslicing
     22==> 8: task_mode -t
    1323Previous Mode: Preemption: yes Timeslicing: no
    1424Current Mode:  Preemption: yes Timeslicing: no
     25==> 9: echo "** Mode - set timeslicing"
    1526** Mode - set timeslicing
     27==> 10: task_mode -T
    1628Previous Mode: Preemption: yes Timeslicing: no
    1729Current Mode:  Preemption: yes Timeslicing: yes
     30==> 11: echo "** Mode - set no timeslicing and no preempt"
    1831** Mode - set no timeslicing and no preempt
    19 Previous Mode: Preemption: yes Timeslicing: yes
    20 Current Mode:  Preemption: no Timeslicing: no
    21 ** Mode - set timeslicing and preempt
    22 Previous Mode: Preemption: no Timeslicing: no
    23 Current Mode:  Preemption: yes Timeslicing: yes
    24 ** Mode - query
    25 Previous Mode: Preemption: yes Timeslicing: yes
    26 *** END OF TEST 03 ***
     32==> 12: task_mode -t -p
  • schedsim/shell/schedsim_priority/scenarios/script04.expected

    rf6fe059 rd1f9281  
     1Script File               : script04.scen
     2verbose                   : 1
     3==> 1: echo "*** TEST 04 ***"
    14*** TEST 04 ***
     5==> 2: rtems_init
    26  CPU 0: Thread Heir: 0x09010001 priority=255
    37  CPU 0: Thread Executing: 0x09010001 priority=255
     8==> 3: echo Create 0x0a010001
    49Create 0x0a010001
     10==> 4: task_create TA1 1
    511Creating task with:  Preemption: yes Timeslicing: no
    612Task (TA1) created: id=0x0a010001, priority=1
     
    814  CPU 0: Thread Heir: 0x0a010001 priority=1
    915  CPU 0: Thread Executing: 0x0a010001 priority=1
     16==> 5: task_suspend TA1
    1017Suspending task (0x0a010001)
    1118  CPU 0: Thread Heir: 0x09010001 priority=255
    1219  CPU 0: Thread Executing: 0x09010001 priority=255
     20==> 6: task_create TA1 2
    1321Creating task with:  Preemption: yes Timeslicing: no
    1422Task (TA1) created: id=0x0a010002, priority=2
     
    1624  CPU 0: Thread Heir: 0x0a010002 priority=2
    1725  CPU 0: Thread Executing: 0x0a010002 priority=2
     26==> 7: task_resume TA1
    1827Resuming task (0x0a010001)
    1928  CPU 0: Thread Heir: 0x0a010001 priority=1
    2029  CPU 0: Thread Executing: 0x0a010001 priority=1
     30==> 8: echo "*** END OF TEST 04 ***"
    2131*** END OF TEST 04 ***
     32==> 9: exit
  • schedsim/shell/schedsim_priority/scenarios/script05.expected

    rf6fe059 rd1f9281  
     1Script File               : script05.scen
     2verbose                   : 1
     3==> 1: echo "*** TEST 05 ***"
    14*** TEST 05 ***
     5==> 2: rtems_init
    26  CPU 0: Thread Heir: 0x09010001 priority=255
    37  CPU 0: Thread Executing: 0x09010001 priority=255
     8==> 3: echo Create 0x0a010001
    49Create 0x0a010001
     10==> 4: task_create TA1 1
    511Creating task with:  Preemption: yes Timeslicing: no
    612Task (TA1) created: id=0x0a010001, priority=1
     
    814  CPU 0: Thread Heir: 0x0a010001 priority=1
    915  CPU 0: Thread Executing: 0x0a010001 priority=1
     16==> 5: task_create TA2 2
    1017Creating task with:  Preemption: yes Timeslicing: no
    1118Task (TA2) created: id=0x0a010002, priority=2
    1219Task (TA2) starting: id=0x0a010002, priority=2
     20==> 6: task_create TA3 3
    1321Creating task with:  Preemption: yes Timeslicing: no
    1422Task (TA3) created: id=0x0a010003, priority=3
    1523Task (TA3) starting: id=0x0a010003, priority=3
     24==> 7: semaphore_create SEM1
    1625Semaphore (SEM1) created: id=0x1a010001
     26==> 8: semaphore_obtain SEM1 0
    1727Obtain semaphore (0x1a010001) with timeout 0
    1828  CPU 0: Thread Heir: 0x0a010002 priority=2
    1929  CPU 0: Thread Executing: 0x0a010002 priority=2
     30==> 9: semaphore_obtain SEM1 0
    2031Obtain semaphore (0x1a010001) with timeout 0
    2132  CPU 0: Thread Heir: 0x0a010003 priority=3
    2233  CPU 0: Thread Executing: 0x0a010003 priority=3
     34==> 10: semaphore_obtain SEM1 0
    2335Obtain semaphore (0x1a010001) with timeout 0
    2436  CPU 0: Thread Heir: 0x09010001 priority=255
    2537  CPU 0: Thread Executing: 0x09010001 priority=255
     38==> 11: semaphore_flush SEM1
    2639Flushing semaphore (0x1a010001)
    2740  CPU 0: Thread Heir: 0x0a010001 priority=1
    2841  CPU 0: Thread Executing: 0x0a010001 priority=1
     42==> 12: echo "*** Now back to TA1 to do it differently"
    2943*** Now back to TA1 to do it differently
     44==> 13: semaphore_obtain SEM1 0
    3045Obtain semaphore (0x1a010001) with timeout 0
    3146  CPU 0: Thread Heir: 0x0a010002 priority=2
    3247  CPU 0: Thread Executing: 0x0a010002 priority=2
     48==> 14: semaphore_obtain SEM1 0
    3349Obtain semaphore (0x1a010001) with timeout 0
    3450  CPU 0: Thread Heir: 0x0a010003 priority=3
    3551  CPU 0: Thread Executing: 0x0a010003 priority=3
     52==> 15: semaphore_release SEM1
    3653Releasing semaphore (0x1a010001)
    3754  CPU 0: Thread Heir: 0x0a010001 priority=1
    3855  CPU 0: Thread Executing: 0x0a010001 priority=1
     56==> 16: # as TA1
     57==> 17: semaphore_obtain SEM1 0
    3958Obtain semaphore (0x1a010001) with timeout 0
    4059  CPU 0: Thread Heir: 0x0a010003 priority=3
    4160  CPU 0: Thread Executing: 0x0a010003 priority=3
     61==> 18: semaphore_delete SEM1
    4262Deleting semaphore (0x1a010001)
    4363  CPU 0: Thread Heir: 0x0a010001 priority=1
    4464  CPU 0: Thread Executing: 0x0a010001 priority=1
     65==> 19: # should preempt
     66==> 20: echo "*** END OF TEST 05 ***"
    4567*** END OF TEST 05 ***
     68==> 21: exit
  • schedsim/shell/schedsim_priority/scenarios/script06.expected

    rf6fe059 rd1f9281  
     1Script File               : script06.scen
     2verbose                   : 1
     3==> 1: echo "*** TEST 06 ***"
    14*** TEST 06 ***
     5==> 2: rtems_init
    26  CPU 0: Thread Heir: 0x09010001 priority=255
    37  CPU 0: Thread Executing: 0x09010001 priority=255
     8==> 3: echo Create 0x0a010001
    49Create 0x0a010001
     10==> 4: task_create TA1 1
    511Creating task with:  Preemption: yes Timeslicing: no
    612Task (TA1) created: id=0x0a010001, priority=1
     
    814  CPU 0: Thread Heir: 0x0a010001 priority=1
    915  CPU 0: Thread Executing: 0x0a010001 priority=1
     16==> 5: task_create TA2 2
    1017Creating task with:  Preemption: yes Timeslicing: no
    1118Task (TA2) created: id=0x0a010002, priority=2
    1219Task (TA2) starting: id=0x0a010002, priority=2
     20==> 6: task_create TA3 3
    1321Creating task with:  Preemption: yes Timeslicing: no
    1422Task (TA3) created: id=0x0a010003, priority=3
    1523Task (TA3) starting: id=0x0a010003, priority=3
     24==> 7: semaphore_create SEM1
    1625Semaphore (SEM1) created: id=0x1a010001
     26==> 8: semaphore_obtain SEM1 0
    1727Obtain semaphore (0x1a010001) with timeout 0
    1828  CPU 0: Thread Heir: 0x0a010002 priority=2
    1929  CPU 0: Thread Executing: 0x0a010002 priority=2
     30==> 9: semaphore_obtain SEM1 0
    2031Obtain semaphore (0x1a010001) with timeout 0
    2132  CPU 0: Thread Heir: 0x0a010003 priority=3
    2233  CPU 0: Thread Executing: 0x0a010003 priority=3
     34==> 10: semaphore_release SEM1
    2335Releasing semaphore (0x1a010001)
    2436  CPU 0: Thread Heir: 0x0a010001 priority=1
    2537  CPU 0: Thread Executing: 0x0a010001 priority=1
     38==> 11: semaphore_delete SEM1
    2639Deleting semaphore (0x1a010001)
     40==> 12: echo "*** END OF TEST 06 ***"
    2741*** END OF TEST 06 ***
     42==> 13: exit
Note: See TracChangeset for help on using the changeset viewer.