1 |
2 |
olivier.gi |
!/bin/sh
|
2 |
|
|
|
3 |
|
|
rm -rf *.log
|
4 |
|
|
|
5 |
|
|
# Two-Operand Arithmetic test patterns
|
6 |
|
|
../bin/msp430sim two-op_mov | tee two-op_mov.log
|
7 |
|
|
../bin/msp430sim two-op_mov-b | tee two-op_mov-b.log
|
8 |
|
|
../bin/msp430sim two-op_add | tee two-op_add.log
|
9 |
|
|
../bin/msp430sim two-op_add-b | tee two-op_add-b.log
|
10 |
|
|
../bin/msp430sim two-op_addc | tee two-op_addc.log
|
11 |
|
|
../bin/msp430sim two-op_sub | tee two-op_sub.log
|
12 |
|
|
../bin/msp430sim two-op_subc | tee two-op_subc.log
|
13 |
|
|
../bin/msp430sim two-op_cmp | tee two-op_cmp.log
|
14 |
|
|
../bin/msp430sim two-op_bit | tee two-op_bit.log
|
15 |
|
|
../bin/msp430sim two-op_bic | tee two-op_bic.log
|
16 |
|
|
../bin/msp430sim two-op_bis | tee two-op_bis.log
|
17 |
|
|
../bin/msp430sim two-op_xor | tee two-op_xor.log
|
18 |
|
|
../bin/msp430sim two-op_and | tee two-op_and.log
|
19 |
|
|
../bin/msp430sim two-op_dadd | tee two-op_dadd.log
|
20 |
|
|
|
21 |
|
|
# Conditional Jump test patterns
|
22 |
|
|
../bin/msp430sim c-jump_jeq | tee c-jump_jeq.log
|
23 |
|
|
../bin/msp430sim c-jump_jne | tee c-jump_jne.log
|
24 |
|
|
../bin/msp430sim c-jump_jc | tee c-jump_jc.log
|
25 |
|
|
../bin/msp430sim c-jump_jnc | tee c-jump_jnc.log
|
26 |
|
|
../bin/msp430sim c-jump_jn | tee c-jump_jn.log
|
27 |
|
|
../bin/msp430sim c-jump_jge | tee c-jump_jge.log
|
28 |
|
|
../bin/msp430sim c-jump_jl | tee c-jump_jl.log
|
29 |
|
|
../bin/msp430sim c-jump_jmp | tee c-jump_jmp.log
|
30 |
|
|
|
31 |
|
|
# Single-Operand Arithmetic test patterns
|
32 |
|
|
../bin/msp430sim sing-op_rrc | tee sing-op_rrc.log
|
33 |
|
|
../bin/msp430sim sing-op_rra | tee sing-op_rra.log
|
34 |
|
|
../bin/msp430sim sing-op_swpb | tee sing-op_swpb.log
|
35 |
|
|
../bin/msp430sim sing-op_sxt | tee sing-op_sxt.log
|
36 |
|
|
../bin/msp430sim sing-op_push | tee sing-op_push.log
|
37 |
|
|
../bin/msp430sim sing-op_call | tee sing-op_call.log
|
38 |
|
|
../bin/msp430sim sing-op_reti | tee sing-op_reti.log
|
39 |
|
|
|
40 |
|
|
# ROM Data Read access
|
41 |
|
|
../bin/msp430sim two-op_add_rom-rd | tee two-op_add_rom-rd.log
|
42 |
|
|
../bin/msp430sim sing-op_push_rom-rd | tee sing-op_push_rom-rd.log
|
43 |
|
|
../bin/msp430sim sing-op_call_rom-rd | tee sing-op_call_rom-rd.log
|
44 |
|
|
|
45 |
|
|
# Power saving modes (CPUOFF, OSCOFF, SCG1)
|
46 |
|
|
../bin/msp430sim op_modes | tee op_modes.log
|
47 |
|
|
|
48 |
|
|
# Basic clock module
|
49 |
|
|
../bin/msp430sim clock_module | tee clock_module.log
|
50 |
|
|
|
51 |
|
|
# Serial Debug Interface
|
52 |
|
|
../bin/msp430sim dbg_uart | tee dbg_uart.log
|
53 |
|
|
../bin/msp430sim dbg_cpu | tee dbg_cpu.log
|
54 |
|
|
../bin/msp430sim dbg_mem | tee dbg_mem.log
|
55 |
|
|
../bin/msp430sim dbg_hwbrk0 | tee dbg_hwbrk0.log
|
56 |
|
|
../bin/msp430sim dbg_hwbrk1 | tee dbg_hwbrk1.log
|
57 |
|
|
../bin/msp430sim dbg_hwbrk2 | tee dbg_hwbrk2.log
|
58 |
|
|
../bin/msp430sim dbg_hwbrk3 | tee dbg_hwbrk3.log
|
59 |
|
|
|
60 |
|
|
# Watchdog test patterns
|
61 |
|
|
../bin/msp430sim wdt_interval | tee wdt_interval.log
|
62 |
|
|
../bin/msp430sim wdt_watchdog | tee wdt_watchdog.log
|
63 |
|
|
../bin/msp430sim wdt_clkmux | tee wdt_clkmux.log
|
64 |
|
|
|
65 |
|
|
# GPIO test patterns
|
66 |
|
|
../bin/msp430sim gpio_rdwr | tee gpio_rdwr.log
|
67 |
|
|
../bin/msp430sim gpio_irq | tee gpio_irq.log
|
68 |
|
|
|
69 |
|
|
# Peripheral templates test patterns
|
70 |
|
|
../bin/msp430sim template_periph_8b | tee template_periph_8b.log
|
71 |
|
|
../bin/msp430sim template_periph_16b | tee template_periph_16b.log
|
72 |
|
|
|
73 |
|
|
# Timer A patterns
|
74 |
|
|
../bin/msp430sim tA_modes | tee tA_modes.log
|
75 |
|
|
../bin/msp430sim tA_compare | tee tA_compare.log
|
76 |
|
|
../bin/msp430sim tA_output | tee tA_output.log
|
77 |
|
|
../bin/msp430sim tA_capture | tee tA_capture.log
|
78 |
|
|
../bin/msp430sim tA_clkmux | tee tA_clkmux.log
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
grep FAILED *.log
|
83 |
|
|
echo ""
|
84 |
|
|
echo " ================================"
|
85 |
|
|
echo -n "| Number of passed patterns: "
|
86 |
|
|
cat *.log | grep -c PASSED
|
87 |
|
|
echo -n "| Number of failed patterns: "
|
88 |
|
|
cat *.log | grep -c FAILED
|
89 |
|
|
echo "|--------------------------------"
|
90 |
|
|
echo -n "| Number of patterns: "
|
91 |
|
|
ls -1 *.log | wc -l
|
92 |
|
|
echo " ================================"
|
93 |
|
|
echo " Make sure passed == total"
|
94 |
|
|
echo ""
|
95 |
|
|
echo ""
|