Skip to content

Commit acf5213

Browse files
author
Stefan Reinauer
committed
testsuite 1.0.0
git-svn-id: svn://coreboot.org/openbios/fcode-utils@91 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent 6dcfd5a commit acf5213

193 files changed

Lines changed: 23030 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

testsuite/GlobalLocalValues.fth

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../LocalValues/GlobalLocalValues.fth
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../LocalValues/GlobalLocalValuesDevel.fth
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../LocalValues/LocalValuesDevelSupport.fth

testsuite/LocalValuesSupport.fth

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../LocalValues/LocalValuesSupport.fth

testsuite/TokBrack/TestArgs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Automated Test Arguments file for TokBrack category
2+
# (That's short for "Tokenizer Bracket";
3+
# it refers to the Tokenizer Escape state.)
4+
5+
# Valid lines have four comma-separated fields:
6+
# Test-file base-name
7+
# Result-file label
8+
# Extra command-line switches
9+
# A script-command with arguments (but no commas).
10+
# Lines that have no label, no switches, and no script
11+
# do not need any commas.
12+
13+
# Updated Wed, 08 Mar 2006 at 19:11 PST by David L. Paktor
14+
15+
# Might as well get the date-and-time one out of the way first...
16+
TokBrkTst_02 , , -i -l
17+
TokBrkTst_01 , , -i
18+
TokBrkTst_01 , alwyshdr , -i -f ALWays-heADers
19+
TokBrkTst_03
20+
TokBrkErrTst_01 , , -i
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
\ Test of tokenizer[ ]tokenizer scope Error-Detection
2+
\ Updated Fri, 17 Feb 2006 at 10:15 PST by David L. Paktor
3+
4+
fcode-version2
5+
6+
headers
7+
h# 30
8+
emit-byte
9+
hex
10+
tokenizer[
11+
rummidge
12+
10 emit-byte
13+
10 emit-byte
14+
d# 10 emit-byte
15+
o# 10 emit-byte
16+
h# 10 emit-byte
17+
802 next-fcode
18+
h# 1020 next-fcode
19+
h# 3682 emit-byte
20+
]tokenizer
21+
decimal 50 constant gummidge
22+
hex
23+
tokenizer[ gummidge
24+
rummidge
25+
]tokenizer
26+
h# 30 emit-byte
27+
28+
100 constant pele_yoetz_ne'ema'an_anochi_hu_ha'omer_v'oseh_v'ain_c'moni_bchol_ha_aretz
29+
30+
pele_yoetz_ne'ema'an_anochi_hu_ha'omer_v'oseh_v'ain_c'moni_bchol_ha_aretz 2 * constant clone
31+
32+
b(lit)
33+
tokenizer[
34+
30 swap emit-byte
35+
d# 20 emit-byte
36+
o# 20 emit-byte
37+
h# 20 emit-byte
38+
]tokenizer
39+
tokenizer[
40+
h# defeca8e constant poopoo
41+
h# beeffece constant moopoo
42+
]tokenizer
43+
alias merde poopoo
44+
alias couterde moopoo
45+
tokenizer[
46+
merde fliteral
47+
]tokenizer
48+
couterde fliteral
49+
50+
tokenizer[
51+
fcode-push
52+
fliteral
53+
a# Fink
54+
fcode-pop
55+
]tokenizer
56+
57+
end0
58+
59+
60+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
\ Elementary test of the tokenizer[ ]tokenizer scope functions
2+
\ Updated Fri, 21 Oct 2005 at 16:01 PDT by David L. Paktor
3+
4+
fcode-version2
5+
6+
headers
7+
hex
8+
9+
b(lit)
10+
tokenizer[
11+
10 emit-byte
12+
d# 10 emit-byte
13+
o# 10 emit-byte
14+
h# 10 emit-byte
15+
]tokenizer
16+
decimal
17+
100 constant pele_yoetz_ne'ema'an_anochi_hu_ha'omer_v'oseh_v'ain_c'moni_bchol_ha_aretz
18+
19+
pele_yoetz_ne'ema'an_anochi_hu_ha'omer_v'oseh_v'ain_c'moni_bchol_ha_aretz 2 * constant clone
20+
21+
12 c,
22+
tokenizer[ 12 fliteral
23+
]tokenizer l,
24+
12 c,
25+
: yuttzer 14 tokenizer[ 14 fliteral hex 14 fliteral ]tokenizer 14 ;
26+
27+
hex
28+
headerless
29+
80 constant this_name_has_a_whole_lot_of_syllables_and_so_would_not_be_a_good_ingredient_in_ice_cream_but_at_least_you_know_what_it_means
30+
31+
headers
32+
33+
f[ 1cec6ea3 constant a_name_with_too_many_letters_should_not_matter_in_tokenizer_escape_mode
34+
]f
35+
36+
: brand-x-ice-cream \ Because it uses ingredients with too many syllables
37+
pele_yoetz_ne'ema'an_anochi_hu_ha'omer_v'oseh_v'ain_c'moni_bchol_ha_aretz
38+
dup 20 - do i . loop cr
39+
." Nameless one..." this_name_has_a_whole_lot_of_syllables_and_so_would_not_be_a_good_ingredient_in_ice_cream_but_at_least_you_know_what_it_means ." equals " . cr
40+
." But everyone likes an "
41+
f[ a_name_with_too_many_letters_should_not_matter_in_tokenizer_escape_mode
42+
f] fliteral .
43+
clone . cr
44+
;
45+
46+
end0
47+
48+
49+
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
\ Secondary test of tokenizer-escape mode functions
2+
\ Updated Thu, 02 Mar 2006 at 17:47 PST by David L. Paktor
3+
4+
[macro] where-from ." This came from " [input-file-name] type ." line " [line-number] .d cr
5+
[macro] in_what ." In " [function-name] type cr
6+
[macro] mess_in_what f[ [function-name] ]f
7+
8+
tokenizer[
9+
10+
fload revlev.fth
11+
12+
h# 020000 constant eithernet \ Class Code: 0x020000 (Ethernet)
13+
h# 5417 constant deviouce \ Device ID: 0x5417
14+
h# 17d5 constant vanitor \ Vendor ID: 0x17d5
15+
16+
vanitor deviouce eithernet
17+
i-got-a-Rev-Level
18+
false
19+
]tokenizer
20+
21+
not-last-image
22+
last-img
23+
set-last-image
24+
SET-REV-LEVEL
25+
pci-header
26+
27+
fcode-version2
28+
29+
headers
30+
hex
31+
tokenizer[
32+
33+
d# 10 constant triumph
34+
o# 40 constant trophy
35+
h# 80 constant trumpet
36+
]tokenizer
37+
b(lit)
38+
tokenizer[
39+
10 emit-byte
40+
triumph emit-byte
41+
trumpet emit-byte
42+
trophy emit-byte
43+
44+
]tokenizer
45+
b(lit)
46+
tokenizer[
47+
48+
h# de h# fe h# ca h# 8e
49+
2swap swap
50+
emit-byte emit-byte
51+
swap emit-byte emit-byte
52+
53+
]tokenizer
54+
55+
h# defeca8e constant poopoo
56+
h# beeffece constant moopoo
57+
alias couterde moopoo
58+
tokenizer[
59+
h# defeca8e constant poopoo
60+
h# beeffece constant moopoo
61+
alias couterde moopoo
62+
couterde poopoo
63+
]tokenizer fliteral
64+
fliteral
65+
66+
f['] moopoo \ Can't f['] couterde just yet
67+
couterde poopoo
68+
tokenizer[ h# feedbac4 ]tokenizer \ Leave something extra on the stack...
69+
: merde
70+
['] moopoo \ Can't ['] couterde just yet, either
71+
' poopoo
72+
couterde
73+
ascii b char e [char] f
74+
[message] About to tokenize run-time date and time stamps. Twice!
75+
." Date " [fcode-date] type
76+
." Time" [fcode-time] type cr
77+
." Time" [fcode-time] type
78+
." Date " [fcode-date] type cr
79+
f[ [fcode-date] [fcode-time] ]f
80+
in_what where-from mess_in_what
81+
;
82+
ascii f
83+
char e
84+
[char] c
85+
86+
: terde
87+
in_what where-from mess_in_what
88+
;
89+
90+
91+
end0
92+
93+
\ save-image chalupa.fc
94+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
\ Test new Aliasing algorithm
2+
3+
\ Updated Tue, 31 May 2005 at 12:05 by David L. Paktor
4+
5+
fcode-version2
6+
tokenizer[
7+
\ emit-date
8+
\ alias dte emit-date
9+
alias dq ."
10+
dq This is a message"
11+
\ dte
12+
h# 00030000 constant goodmeat
13+
goodmeat fliteral
14+
alias goodeats goodmeat
15+
goodeats fliteral
16+
reset-symbols
17+
]tokenizer
18+
end0

testsuite/TokBrack/revlev.fth

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
\ Fake out an FLOAD-able constant
2+
h# f2ed constant i-got-a-Rev-Level

0 commit comments

Comments
 (0)