-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminix.log
153 lines (148 loc) · 7.13 KB
/
minix.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
-bash-4.2$ gmake
test -d obj || mkdir obj
test -d bin || mkdir bin
cc -Iinclude -c src/utils.c -o obj/utils.o
cc -Iinclude -c src/mshell.c -o obj/mshell.o
cc -Iinclude -c src/builtins.c -o obj/builtins.o
cc -Iinclude -c src/myutils.c -o obj/myutils.o
gmake -C input_parse INSTALL_DIR=/home/bartlomi/shell/obj INC_DIR=/home/bartlomi/shell/include
gmake[1]: Entering directory `/home/bartlomi/shell/input_parse'
cc -I/home/bartlomi/shell/include -c siparseutils.c
byacc -d siparse.y
byacc: 3 reduce/reduce conflicts.
cc -I/home/bartlomi/shell/include y.tab.c -c
lex siparse.lex
cc -I/home/bartlomi/shell/include lex.yy.c -c
ar rcs /home/bartlomi/shell/obj/siparse.a siparseutils.o lex.yy.o y.tab.o
gmake[1]: Leaving directory `/home/bartlomi/shell/input_parse'
cc -Iinclude obj/utils.o obj/mshell.o obj/builtins.o obj/myutils.o obj/siparse.a -o bin/mshell
-bash-4.2$ echo $?
0
-bash-4.2$ cd ..
-bash-4.2$ tar -xzf tests.tgz
-bash-4.2$ cd tests
-bash-4.2$ ./clean.sh
rm -f bin/*
removing test directory /tmp/bartlomi.ShellTest
rm: /tmp/bartlomi.ShellTest: no such file or directory
rm -f bin/*
Cleaning suite 1.
removing outputs
removing autogenerated expected outputs
rm -f bin/*
Cleaning suite 2.
removing outputs
removing autogenerated expected outputs
rm -f bin/*
Cleaning suite 3.
removing outputs
removing autogenerated expected outputs
rm -f bin/*
Cleaning suite 4.
removing outputs
removing autogenerated expected outputs
-bash-4.2$ ./prepare.sh
building utils
cc -o bin/splitter src/splitter.c
cc -o bin/catcher src/catcher.c
cc -o bin/fdcounter src/fdcounter.c
cc -o bin/decho src/decho.c
cc -o bin/testerOX src/testerOX.c -lm
cc -o bin/tsleep src/testerOX.c -lm
creating test directory /tmp/bartlomi.ShellTest
-bash-4.2$ ./run_all.sh ~/shell/bin/mshell
--- Suite 1 ---
Test 1 : echo simple commands
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/1/input/1.in > /home/bartlomi/tests/suites/1/output/1.out 2>/home/bartlomi/tests/suites/1/output/1.err
OK
Test 2 : # empty lines
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/1/input/2.in > /home/bartlomi/tests/suites/1/output/2.out 2>/home/bartlomi/tests/suites/1/output/2.err
OK
Test 3 : # long file
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/1/input/3.in > /home/bartlomi/tests/suites/1/output/3.out 2>/home/bartlomi/tests/suites/1/output/3.err
OK
Test 4 : # long lines
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/1/input/4.in > /home/bartlomi/tests/suites/1/output/4.out 2>/home/bartlomi/tests/suites/1/output/4.err
OK
Test 5 : # last line not ended with '\n'
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/1/input/5.in > /home/bartlomi/tests/suites/1/output/5.out 2>/home/bartlomi/tests/suites/1/output/5.err
OK
Test 6 : # exec errors
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/1/input/6.in > /home/bartlomi/tests/suites/1/output/6.out 2>/home/bartlomi/tests/suites/1/output/6.err
OK
Test 11 : echo simple commands + splitter
Command:specific see /home/bartlomi/tests/suites/1/exec/11.exec
OK
Test 12 : # empty lines + splitter
Command:specific see /home/bartlomi/tests/suites/1/exec/12.exec
OK
Test 13 : # long file + splitter
Command:specific see /home/bartlomi/tests/suites/1/exec/13.exec
OK
Test 14 : # long lines + splitter
Command:specific see /home/bartlomi/tests/suites/1/exec/14.exec
OK
Test 15 : # last line not ended with '\n' + splitter
Command:specific see /home/bartlomi/tests/suites/1/exec/15.exec
OK
Test 16 : # exec errors + splitter
Command:specific see /home/bartlomi/tests/suites/1/exec/16.exec
OK
--- Suite 2 ---
Test 1 : # builtin exit
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/2/input/1.in > /home/bartlomi/tests/suites/2/output/1.out 2>/home/bartlomi/tests/suites/2/output/1.err
OK
Test 2 : # builtin lcd
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/2/input/2.in > /home/bartlomi/tests/suites/2/output/2.out 2>/home/bartlomi/tests/suites/2/output/2.err
OK
Test 3 : # builtin lcd no arguments
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/2/input/3.in > /home/bartlomi/tests/suites/2/output/3.out 2>/home/bartlomi/tests/suites/2/output/3.err
OK
Test 4 : # builtin lls
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/2/input/4.in > /home/bartlomi/tests/suites/2/output/4.out 2>/home/bartlomi/tests/suites/2/output/4.err
OK
Test 5 : # builtin kill test 1
Command:specific see /home/bartlomi/tests/suites/2/exec/5.exec
OK
Test 6 : # builtin kill test 2
Command:specific see /home/bartlomi/tests/suites/2/exec/6.exec
OK
Test 7 : # reporting errors
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/2/input/7.in > /home/bartlomi/tests/suites/2/output/7.out 2>/home/bartlomi/tests/suites/2/output/7.err
OK
--- Suite 3 ---
Test 1 : # basic redirections
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/3/input/1.in > /home/bartlomi/tests/suites/3/output/1.out 2>/home/bartlomi/tests/suites/3/output/1.err
OK
Test 2 : # many redirections
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/3/input/2.in > /home/bartlomi/tests/suites/3/output/2.out 2>/home/bartlomi/tests/suites/3/output/2.err
OK
Test 3 : # redirections - counting used descriptors
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/3/input/3.in > /home/bartlomi/tests/suites/3/output/3.out 2>/home/bartlomi/tests/suites/3/output/3.err
OK
Test 4 : # redirection errors
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/3/input/4.in > /home/bartlomi/tests/suites/3/output/4.out 2>/home/bartlomi/tests/suites/3/output/4.err
OK
Test 5 : # simple pipes
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/3/input/5.in > /home/bartlomi/tests/suites/3/output/5.out 2>/home/bartlomi/tests/suites/3/output/5.err
OK
Test 6 : # pipes - counting used descriptors
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/3/input/6.in > /home/bartlomi/tests/suites/3/output/6.out 2>/home/bartlomi/tests/suites/3/output/6.err
OK
Test 7 : # multiple pipelines per line
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/3/input/7.in > /home/bartlomi/tests/suites/3/output/7.out 2>/home/bartlomi/tests/suites/3/output/7.err
OK
--- Suite 4 ---
Test 1 : # simple zombies
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/4/input/1.in > /home/bartlomi/tests/suites/4/output/1.out 2>/home/bartlomi/tests/suites/4/output/1.err
OK
Test 2 : # many zombies
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/4/input/2.in > /home/bartlomi/tests/suites/4/output/2.out 2>/home/bartlomi/tests/suites/4/output/2.err
OK
Test 3 : # zombies while waiting for foreground
Command:specific see /home/bartlomi/tests/suites/4/exec/3.exec
OK
Test 4 : # SIGINT and background
Command:/home/bartlomi/shell/bin/mshell < /home/bartlomi/tests/suites/4/input/4.in > /home/bartlomi/tests/suites/4/output/4.out 2>/home/bartlomi/tests/suites/4/output/4.err
OK
-bash-4.2$