-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-05-25-16_34_44.log
146 lines (146 loc) · 4.95 KB
/
2023-05-25-16_34_44.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
+ source /root/mugen/libs/locallibs/common_lib.sh
++ python3 --version
++ '[' 0 -eq 0 ']'
++ source /root/mugen/libs/locallibs/common_lib_python.sh
+ main
++ type -t post_test
+ '[' -n function ']'
+ trap post_test EXIT INT HUP TERM
+ rpm -qa
+ grep expect
++ type -t config_params
+ '[' -n '' ']'
++ type -t pre_test
+ '[' -n function ']'
+ pre_test
+ LOG_INFO 'Start to prepare the test environment.'
+ message='Start to prepare the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start to prepare the test environment.'
Thu May 25 16:34:50 2023 - INFO - Start to prepare the test environment.
+ DNF_INSTALL 'binutils gcc'
+ pkgs='binutils gcc'
+ node=1
+ '[' -z '' ']'
+ tmpfile=
++ python3 /root/mugen/libs/locallibs/rpm_manage.py install --pkgs 'binutils gcc' --node 1 --tempfile ''
Thu May 25 16:35:06 2023 - INFO - pkgs:(binutils gcc) is already installed
+ tmpfile2=
+ '[' -z '' ']'
+ tmpfile=
+ mkdir /tmp/test/
+ path=/tmp/test/
+ cat
+ cat
+ cat
+ LOG_INFO 'Finish preparing the test environment.'
+ message='Finish preparing the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish preparing the test environment.'
Thu May 25 16:35:08 2023 - INFO - Finish preparing the test environment.
++ type -t run_test
+ '[' -n function ']'
+ run_test
+ LOG_INFO 'Start to run test.'
+ message='Start to run test.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start to run test.'
Thu May 25 16:35:09 2023 - INFO - Start to run test.
+ cd /tmp/test/
+ gcc -Wall -c main.c hello.c bye.c
main.c: In function ‘main’:
main.c:3:1: warning: implicit declaration of function ‘hello’ [-Wimplicit-function-declaration]
3 | hello();
| ^~~~~
main.c:4:1: warning: implicit declaration of function ‘bye’ [-Wimplicit-function-declaration]
4 | bye();
| ^~~
hello.c: In function ‘hello’:
hello.c:3:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
3 | printf("hello!\n");
| ^~~~~~
hello.c:3:1: warning: incompatible implicit declaration of built-in function ‘printf’
hello.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | void hello(void)
bye.c: In function ‘bye’:
bye.c:3:1: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
3 | printf("good bye!\n");
| ^~~~~~
bye.c:3:1: warning: incompatible implicit declaration of built-in function ‘printf’
bye.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | void bye(void)
+ ls -al /tmp/test/
+ grep 'main.o\|hello.o\|bye.o'
-rw-r--r-- 1 root root 1376 May 25 16:35 bye.o
-rw-r--r-- 1 root root 1384 May 25 16:35 hello.o
-rw-r--r-- 1 root root 1232 May 25 16:35 main.o
+ CHECK_RESULT 0 0 0 'Compile failure'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='Compile failure'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ nm main.o hello.o bye.o
+ test -f nm.txt
+ CHECK_RESULT 0 0 0 'file is failed'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='file is failed'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ grep -E 'T main|T hello|T bye' /tmp/test//nm.txt
0000000000000000 T main
0000000000000000 T hello
0000000000000000 T bye
+ CHECK_RESULT 0 0 0 'content is error'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='content is error'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ LOG_INFO 'End of the test.'
+ message='End of the test.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End of the test.'
Thu May 25 16:35:12 2023 - INFO - End of the test.
+ CASE_RESULT 0
+ case_re=0
+ test -z ''
+ test 0 -eq 0
+ LOG_INFO 'succeed to execute the case.'
+ message='succeed to execute the case.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'succeed to execute the case.'
Thu May 25 16:35:13 2023 - INFO - succeed to execute the case.
+ exec_result=
+ exit 0
+ post_test
+ LOG_INFO 'Start to restore the test environment.'
+ message='Start to restore the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start to restore the test environment.'
Thu May 25 16:35:14 2023 - INFO - Start to restore the test environment.
+ rm -rf /tmp/test/
+ DNF_REMOVE
+ node=1
+ pkg_list=
+ mode=0
+ [[ -z '' ]]
+ [[ -z '' ]]
+ LOG_WARN 'no thing to do.'
+ message='no thing to do.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level warn --message 'no thing to do.'
Thu May 25 16:35:16 2023 - WARN - no thing to do.
+ return 0
+ LOG_INFO 'Finish restoring the test environment.'
+ message='Finish restoring the test environment.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish restoring the test environment.'
Thu May 25 16:35:17 2023 - INFO - Finish restoring the test environment.