Skip to content

Commit ceceaf6

Browse files
committed
[~] Update test_reference for the futur checker
1 parent 2ff4969 commit ceceaf6

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

test_reference

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ Tests for CD :
1717
Test 6 [CD: Can't chdir (Permission denied)] : OK
1818
Test 7 [CD: No home directory 1] : OK
1919
Test 8 [CD: No home directory 2] : OK
20-
Test 9 [CD: Change home directory] : KO - Check output in /tmp/test.643053/9/mysh.out /tmp/test.643053/9/tcsh.out
20+
Test 9 [CD: Change home directory] : KO
2121
Test 10 [CD: No OLDPWD] : OK
22-
Test 11 [CD: using globbing] : KO - Check output in /tmp/test.643053/11/mysh.out /tmp/test.643053/11/tcsh.out
23-
Error: 2 / 11 | Result: /tmp/test.643053/
22+
Test 11 [CD: using globbing] : KO
23+
Error: 2 / 11 |
2424
Tests for ENV :
2525
Test 1 [ENV: Simple setenv and unsetenv] : OK
2626
Test 2 [ENV: Redirect env to file] : OK
2727
Test 3 [ENV: Setenv no arguments] : OK
2828
Test 4 [ENV: Setenv change commands path] : OK
2929
Test 5 [ENV: Multiple unsetenv] : OK
3030
Test 6 [ENV: Get one variable] : OK
31-
Test 7 [ENV: Unsetenv with globbing] : KO - Check output in /tmp/test.643922/7/mysh.out /tmp/test.643922/7/tcsh.out
31+
Test 7 [ENV: Unsetenv with globbing] : KO
3232
Test 8 [ENV: Setenv: Too many arguments] : OK
3333
Test 9 [ENV: Unsetenv: Too few arguments] : OK
3434
Test 10 [ENV: Setenv: Variable name must begin with a letter] : OK
3535
Test 11 [ENV: Setenv: Variable name must contain alphanumeric characters] : OK
36-
Error: 1 / 11 | Result: /tmp/test.643922/
36+
Error: 1 / 11 |
3737
Tests for EXIT :
3838
Test 1 [EXIT: Simple command] : OK
3939
Test 2 [EXIT: With argument] : OK
@@ -76,13 +76,13 @@ Tests for OPERATORS :
7676
Test 2 [OPERATORS: Multiple commands with or] : OK
7777
Test 3 [OPERATORS: Multiple commands with and and or] : OK
7878
Test 4 [OPERATORS: And with one commands] : OK
79-
Test 5 [OPERATORS: Invalid null command] : KO - Check output in /tmp/test.648704/5/mysh.out /tmp/test.648704/5/tcsh.out
80-
Test 6 [OPERATORS: Invalid null command] : KO - Check output in /tmp/test.648704/6/mysh.out /tmp/test.648704/6/tcsh.out
81-
Test 7 [OPERATORS: Invalid null command] : KO - Check output in /tmp/test.648704/7/mysh.out /tmp/test.648704/7/tcsh.out
82-
Error: 3 / 7 | Result: /tmp/test.648704/
79+
Test 5 [OPERATORS: Invalid null command] : KO
80+
Test 6 [OPERATORS: Invalid null command] : KO
81+
Test 7 [OPERATORS: Invalid null command] : KO
82+
Error: 3 / 7 |
8383
Tests for PIPES :
8484
Test 1 [PIPES: Simple pipe] : OK
85-
Test 2 [PIPES: With builtin] : KO - Check output in /tmp/test.649786/2/mysh.out /tmp/test.649786/2/tcsh.out
85+
Test 2 [PIPES: With builtin] : KO
8686
Test 3 [PIPES: With input redirect] : OK
8787
Test 4 [PIPES: With output redirect] : OK
8888
Test 5 [PIPES: With input and output redirect] : OK
@@ -97,11 +97,11 @@ Tests for PIPES :
9797
Test 14 [PIPES: Invalid null command 1] : OK
9898
Test 15 [PIPES: Invalid null command 2] : OK
9999
Test 16 [PIPES: With invalid command 1] : OK
100-
Test 17 [PIPES: With invalid command 2] : KO - Check output in /tmp/test.649786/17/mysh.out /tmp/test.649786/17/tcsh.out
100+
Test 17 [PIPES: With invalid command 2] : KO
101101
Test 18 [PIPES: With invalid command 3] : OK
102102
Test 19 [PIPES: With invalid command 4] : OK
103-
Test 20 [PIPES: Two unknown commands] : KO - Check output in /tmp/test.649786/20/mysh.out /tmp/test.649786/20/tcsh.out
104-
Error: 3 / 20 | Result: /tmp/test.649786/
103+
Test 20 [PIPES: Two unknown commands] : KO
104+
Error: 3 / 20 |
105105
Tests for REDIRECTIONS :
106106
Test 1 [REDIRECTIONS: Simple left] : OK
107107
Test 2 [REDIRECTIONS: Double left] : OK
@@ -110,10 +110,10 @@ Tests for REDIRECTIONS :
110110
Test 5 [REDIRECTIONS: Simple left and right] : OK
111111
Test 6 [REDIRECTIONS: Simple left and double right] : OK
112112
Test 7 [REDIRECTIONS: Redirections with multiple commands] : OK
113-
Test 8 [REDIRECTIONS: Hard formatting] : KO - Check output in /tmp/test.651421/8/mysh.out /tmp/test.651421/8/tcsh.out
113+
Test 8 [REDIRECTIONS: Hard formatting] : KO
114114
Test 9 [REDIRECTIONS: Two left redirections] : OK
115115
Test 10 [REDIRECTIONS: Two right redirections] : OK
116-
Test 11 [REDIRECTIONS: No such file or directory for left redirection] : KO - Check output in /tmp/test.651421/11/mysh.out /tmp/test.651421/11/tcsh.out
116+
Test 11 [REDIRECTIONS: No such file or directory for left redirection] : KO
117117
Test 12 [REDIRECTIONS: Left redirection with no commands] : OK
118118
Test 13 [REDIRECTIONS: Right simple redirection with no commands] : OK
119119
Test 14 [REDIRECTIONS: Right double redirection with no commands] : OK
@@ -127,23 +127,23 @@ Tests for REDIRECTIONS :
127127
Test 24 [REDIRECTIONS: Missing name for redirect 5] : OK
128128
Test 25 [REDIRECTIONS: Missing name for redirect 6] : OK
129129
Test 26 [REDIRECTIONS: Missing name for redirect 7] : OK
130-
Test 27 [REDIRECTIONS: Missing name for redirect 8] : KO - Check output in /tmp/test.651421/27/mysh.out /tmp/test.651421/27/tcsh.out
130+
Test 27 [REDIRECTIONS: Missing name for redirect 8] : KO
131131
Test 28 [REDIRECTIONS: Missing name for redirect 9] : OK
132-
Test 29 [REDIRECTIONS: Missing name for redirect 10] : KO - Check output in /tmp/test.651421/29/mysh.out /tmp/test.651421/29/tcsh.out
133-
Error: 4 / 27 | Result: /tmp/test.651421/
134-
Tests for parentheses :
135-
Test 1 [parentheses: Simple command] : OK
136-
Test 2 [parentheses: Simple command in multiple ()] : OK
137-
Test 3 [parentheses: Redirect operators] : OK
138-
Test 4 [parentheses: Multi commands] : OK
139-
Test 5 [parentheses: Redirect pipes] : OK
140-
Test 6 [parentheses: Hard test] : OK
141-
Test 7 [parentheses: Too many 1] : OK
142-
Test 8 [parentheses: Too many 2] : OK
143-
Test 9 [parentheses: Too many 3] : OK
144-
Test 10 [parentheses: Badly placed 1] : OK
145-
Test 11 [parentheses: Badly placed 2] : OK
146-
Test 12 [parentheses: Invalid null command] : OK
132+
Test 29 [REDIRECTIONS: Missing name for redirect 10] : KO
133+
Error: 4 / 27 |
134+
Tests for PARENTHESES :
135+
Test 1 [PARENTHESES: Simple command] : OK
136+
Test 2 [PARENTHESES: Simple command in multiple ()] : OK
137+
Test 3 [PARENTHESES: Redirect operators] : OK
138+
Test 4 [PARENTHESES: Multi commands] : OK
139+
Test 5 [PARENTHESES: Redirect pipes] : OK
140+
Test 6 [PARENTHESES: Hard test] : OK
141+
Test 7 [PARENTHESES: Too many 1] : OK
142+
Test 8 [PARENTHESES: Too many 2] : OK
143+
Test 9 [PARENTHESES: Too many 3] : OK
144+
Test 10 [PARENTHESES: Badly placed 1] : OK
145+
Test 11 [PARENTHESES: Badly placed 2] : OK
146+
Test 12 [PARENTHESES: Invalid null command] : OK
147147
No errors found.
148148
Tests for INHIBITORS :
149149
Test 1 [INHIBITORS: Test 1] : OK
@@ -166,19 +166,19 @@ Tests for GLOBBING :
166166
Test 2 [GLOBBING: b*] : OK
167167
Test 3 [GLOBBING: ?b*] : OK
168168
Test 4 [GLOBBING: [0-9][0-9]] : OK
169-
Test 5 [GLOBBING: [Aa-Yy]*] : KO - Check output in /tmp/test.666042/5/mysh.out /tmp/test.666042/5/tcsh.out
170-
Test 6 [GLOBBING: *.{c,o}] : KO - Check output in /tmp/test.666042/6/mysh.out /tmp/test.666042/6/tcsh.out
171-
Error: 2 / 6 | Result: /tmp/test.666042/
169+
Test 5 [GLOBBING: [Aa-Yy]*] : KO
170+
Test 6 [GLOBBING: *.{c,o}] : KO
171+
Error: 2 / 6 |
172172
Tests for ALIAS :
173173
Test 1 [ALIAS: Unknown command (a -> ls)] : OK
174174
Test 2 [ALIAS: Existing command (ls -> ls -l)] : OK
175175
Test 3 [UNALIAS: Simple test (ls)] : OK
176176
Test 4 [ALIAS: No arguments (display alias list)] : OK
177177
Test 5 [UNALIAS: Multi command (l, a and g)] : OK
178-
Test 6 [ALIAS: command with inhibitors] : KO - Check output in /tmp/test.673622/6/mysh.out /tmp/test.673622/6/tcsh.out
178+
Test 6 [ALIAS: command with inhibitors] : KO
179179
Test 7 [UNALIAS: Globbing] : OK
180180
Test 8 [UNALIAS: Too few arguments] : OK
181-
Error: 1 / 8 | Result: /tmp/test.673622/
181+
Error: 1 / 8 |
182182
Tests for WHERE :
183183
Test 1 [WHERE: Simple command (ls)] : OK
184184
Test 2 [WHERE: Multiple commands (ls, grep and pwd)] : OK
@@ -217,7 +217,7 @@ Tests for SCRIPTING :
217217
Test 3 [SCRIPTING: IF: true if with else] : OK
218218
Test 4 [SCRIPTING: IF: if with else true] : OK
219219
Test 5 [SCRIPTING: IF: if complex condition] : OK
220-
Test 6 [SCRIPTING: IF: if false] : OK
220+
Test 6 [SCRIPTING: IF: then/endif not found] : OK
221221
Test 7 [SCRIPTING: ELSE: useless else] : OK
222222
Test 8 [SCRIPTING: IF: complexe script] : OK
223223
Test 9 [SCRIPTING: IF: endif not found] : OK
@@ -226,14 +226,14 @@ Tests for SCRIPTING :
226226
Test 12 [SCRIPTING: IF: Empty if] : OK
227227
Test 13 [SCRIPTING: ENDIF: Simple command] : OK
228228
Test 14 [SCRIPTING: ENDIF: Too many arguments] : OK
229-
Test 15 [SCRIPTING: IF: Expression Syntax] : KO - Check output in /tmp/test.676637/15/mysh.out /tmp/test.676637/15/tcsh.out
229+
Test 15 [SCRIPTING: IF: Expression Syntax] : KO
230230
Test 16 [SCRIPTING: FOREACH: Simple foreach] : OK
231231
Test 17 [SCRIPTING: FOREACH && IF: Combined] : OK
232232
Test 18 [SCRIPTING: FOREACH: Empty variable] : OK
233233
Test 19 [SCRIPTING: FOREACH: Too few arguments] : OK
234234
Test 20 [SCRIPTING: FOREACH: Words not parenthesized] : OK
235235
Test 21 [SCRIPTING: FOREACH: Invalid variable] : OK
236-
Error: 1 / 21 | Result: /tmp/test.676637/
236+
Error: 1 / 21 |
237237
Tests for VARIABLES :
238238
Test 1 [VARIABLES: Hard set and unset local variables] : OK
239239
Test 2 [VARIABLES: Hard set and unset local variables] : OK
@@ -251,25 +251,25 @@ Tests for VARIABLES :
251251
Test 14 [VARIABLES: Illegal variable name 6] : OK
252252
Test 15 [VARIABLES: Missing '}' 1] : OK
253253
Test 16 [VARIABLES: Missing '}' 2] : OK
254-
Test 17 [VARIABLES: Newline in variable name] : KO - Check output in /tmp/test.678397/17/mysh.out /tmp/test.678397/17/tcsh.out
254+
Test 17 [VARIABLES: Newline in variable name] : KO
255255
Test 18 [SPECIAL VARIABLES: Exit status] : OK
256-
Test 19 [SPECIAL VARIABLES: Old command] : KO - Check output in /tmp/test.678397/19/mysh.out /tmp/test.678397/19/tcsh.out
257-
Test 20 [SPECIAL VARIABLES: Old command (no env)] : KO - Check output in /tmp/test.678397/20/mysh.out /tmp/test.678397/20/tcsh.out
258-
Test 21 [SPECIAL VARIABLES: cwd] : KO - Check output in /tmp/test.678397/21/mysh.out /tmp/test.678397/21/tcsh.out
259-
Test 22 [SPECIAL VARIABLES: owd] : KO - Check output in /tmp/test.678397/22/mysh.out /tmp/test.678397/22/tcsh.out
260-
Test 23 [SPECIAL VARIABLES: Path] : KO - Check output in /tmp/test.678397/23/mysh.out /tmp/test.678397/23/tcsh.out
261-
Test 24 [SPECIAL VARIABLES: Path (no env)] : KO - Check output in /tmp/test.678397/24/mysh.out /tmp/test.678397/24/tcsh.out
262-
Test 25 [SPECIAL VARIABLES: Home] : KO - Check output in /tmp/test.678397/25/mysh.out /tmp/test.678397/25/tcsh.out
263-
Test 26 [SPECIAL VARIABLES: Home (no env)] : KO - Check output in /tmp/test.678397/26/mysh.out /tmp/test.678397/26/tcsh.out
264-
Test 27 [SPECIAL VARIABLES: shell] : KO - Check output in /tmp/test.678397/27/mysh.out /tmp/test.678397/27/tcsh.out
265-
Test 28 [SPECIAL VARIABLES: user] : KO - Check output in /tmp/test.678397/28/mysh.out /tmp/test.678397/28/tcsh.out
266-
Test 29 [SPECIAL VARIABLES: uid] : KO - Check output in /tmp/test.678397/29/mysh.out /tmp/test.678397/29/tcsh.out
256+
Test 19 [SPECIAL VARIABLES: Old command] : KO
257+
Test 20 [SPECIAL VARIABLES: Old command (no env)] : KO
258+
Test 21 [SPECIAL VARIABLES: cwd] : KO
259+
Test 22 [SPECIAL VARIABLES: owd] : KO
260+
Test 23 [SPECIAL VARIABLES: Path] : KO
261+
Test 24 [SPECIAL VARIABLES: Path (no env)] : KO
262+
Test 25 [SPECIAL VARIABLES: Home] : KO
263+
Test 26 [SPECIAL VARIABLES: Home (no env)] : KO
264+
Test 27 [SPECIAL VARIABLES: shell] : KO
265+
Test 28 [SPECIAL VARIABLES: user] : KO
266+
Test 29 [SPECIAL VARIABLES: uid] : KO
267267
Test 30 [SPECIAL VARIABLES: ignoreof] : OK
268-
Test 31 [SPECIAL VARIABLES: Term] : KO - Check output in /tmp/test.678397/31/mysh.out /tmp/test.678397/31/tcsh.out
269-
Test 32 [SPECIAL VARIABLES: Term (no env)] : KO - Check output in /tmp/test.678397/32/mysh.out /tmp/test.678397/32/tcsh.out
268+
Test 31 [SPECIAL VARIABLES: Term] : KO
269+
Test 32 [SPECIAL VARIABLES: Term (no env)] : KO
270270
Test 33 [SPECIAL VARIABLES ALIAS: precmd] : OK
271-
Test 34 [SPECIAL VARIABLES ALIAS: cwdcmd] : KO - Check output in /tmp/test.678397/34/mysh.out /tmp/test.678397/34/tcsh.out
272-
Error: 15 / 34 | Result: /tmp/test.678397/
271+
Test 34 [SPECIAL VARIABLES ALIAS: cwdcmd] : KO
272+
Error: 15 / 34 |
273273
Tests for OTHER :
274274
Test 1 [OTHER: Null command] : OK
275275
Test 2 [SOURCE: Simple command] : OK

0 commit comments

Comments
 (0)