33 |
33 |
34 "PRJ_EXPORTS\n" |
34 "PRJ_EXPORTS\n" |
35 "simple_exp1.h exported_1.h\n" |
35 "simple_exp1.h exported_1.h\n" |
36 "simple_exp2.h exported_2.h\n" |
36 "simple_exp2.h exported_2.h\n" |
37 "simple_exp3.h exported_3.h\n" |
37 "simple_exp3.h exported_3.h\n" |
|
38 "executable_file executable_file\n" |
38 '"file with a space.doc" "exportedfilewithspacesremoved.doc"\n' |
39 '"file with a space.doc" "exportedfilewithspacesremoved.doc"\n' |
39 '"file with a space.doc" "exported file with a space.doc"\n\n' |
40 '"file with a space.doc" "exported file with a space.doc"\n\n' |
40 |
41 |
41 "simple_exp1.h /tmp/"+os.environ['USER']+"/ //\n" |
42 "simple_exp1.h /tmp/"+os.environ['USER']+"/ //\n" |
42 "simple_exp2.h \\tmp\\"+os.environ['USER']+"/ //\n" |
43 "simple_exp2.h \\tmp\\"+os.environ['USER']+"/ //\n" |
57 "$(EPOCROOT)/epoc32/include/exportedfilewithspacesremoved.doc", |
58 "$(EPOCROOT)/epoc32/include/exportedfilewithspacesremoved.doc", |
58 "$(EPOCROOT)/epoc32/include/exported file with a space.doc", |
59 "$(EPOCROOT)/epoc32/include/exported file with a space.doc", |
59 "/tmp/$(USER)/simple_exp1.h", |
60 "/tmp/$(USER)/simple_exp1.h", |
60 "/tmp/$(USER)/simple_exp2.h", |
61 "/tmp/$(USER)/simple_exp2.h", |
61 "/tmp/$(USER)/simple_exp3.h", |
62 "/tmp/$(USER)/simple_exp3.h", |
|
63 "$(EPOCROOT)/epoc32/include/executable_file", |
62 "$(EPOCROOT)/epoc32/include/simple_exp4.h" |
64 "$(EPOCROOT)/epoc32/include/simple_exp4.h" |
63 ] |
65 ] |
64 t.run() |
66 t.run() |
|
67 if t.result == SmokeTest.FAIL: |
|
68 result = SmokeTest.FAIL |
|
69 |
|
70 |
|
71 t = SmokeTest() |
|
72 t.id = "0023a1" |
|
73 t.name = "export" |
|
74 t.usebash = True |
|
75 t.command = "ls -l ${EPOCROOT}/epoc32/include/executable_file" |
|
76 t.mustmatch = [ "^.rwxrwxr.x .*executable_file.*$" ] |
|
77 t.targets = [] |
|
78 t.run() |
|
79 t.usebash = False |
|
80 |
65 if t.result == SmokeTest.FAIL: |
81 if t.result == SmokeTest.FAIL: |
66 result = SmokeTest.FAIL |
82 result = SmokeTest.FAIL |
67 |
83 |
68 |
84 |
69 # Testing if clean deletes any exports which it is not supposed to |
85 # Testing if clean deletes any exports which it is not supposed to |
70 t.id = "0023b" |
86 t.id = "0023b" |
71 t.name = "export_clean" |
87 t.name = "export_clean" |
72 t.command = "sbs -b smoke_suite/test_resources/simple_export/expbld.inf " \ |
88 t.command = "sbs -b smoke_suite/test_resources/simple_export/expbld.inf " \ |
73 + "-c armv5 clean" |
89 + "-c armv5 clean" |
|
90 t.mustmatch = [] |
74 t.targets = [ |
91 t.targets = [ |
75 "$(EPOCROOT)/epoc32/include/exported_1.h", |
92 "$(EPOCROOT)/epoc32/include/exported_1.h", |
76 "$(EPOCROOT)/epoc32/include/exported_2.h", |
93 "$(EPOCROOT)/epoc32/include/exported_2.h", |
77 "$(EPOCROOT)/epoc32/include/exported_3.h", |
94 "$(EPOCROOT)/epoc32/include/exported_3.h", |
|
95 "$(EPOCROOT)/epoc32/include/executable_file", |
78 "$(EPOCROOT)/epoc32/include/exportedfilewithspacesremoved.doc", |
96 "$(EPOCROOT)/epoc32/include/exportedfilewithspacesremoved.doc", |
79 "$(EPOCROOT)/epoc32/include/exported file with a space.doc", |
97 "$(EPOCROOT)/epoc32/include/exported file with a space.doc", |
80 "/tmp/$(USER)/simple_exp1.h", |
98 "/tmp/$(USER)/simple_exp1.h", |
81 "/tmp/$(USER)/simple_exp2.h", |
99 "/tmp/$(USER)/simple_exp2.h", |
82 "/tmp/$(USER)/simple_exp3.h" |
100 "/tmp/$(USER)/simple_exp3.h" |
93 + "-c armv5 reallyclean" |
111 + "-c armv5 reallyclean" |
94 t.antitargets = [ |
112 t.antitargets = [ |
95 '$(EPOCROOT)/epoc32/include/exported_1.h', |
113 '$(EPOCROOT)/epoc32/include/exported_1.h', |
96 '$(EPOCROOT)/epoc32/include/exported_2.h', |
114 '$(EPOCROOT)/epoc32/include/exported_2.h', |
97 '$(EPOCROOT)/epoc32/include/exported_3.h', |
115 '$(EPOCROOT)/epoc32/include/exported_3.h', |
|
116 "$(EPOCROOT)/epoc32/include/executable_file", |
98 '$(EPOCROOT)/epoc32/include/exportedfilewithspacesremoved.doc', |
117 '$(EPOCROOT)/epoc32/include/exportedfilewithspacesremoved.doc', |
99 '$(EPOCROOT)/epoc32/include/exported file with a space.doc', |
118 '$(EPOCROOT)/epoc32/include/exported file with a space.doc', |
100 '/tmp/$(USER)/simple_exp1.h', |
119 '/tmp/$(USER)/simple_exp1.h', |
101 '/tmp/$(USER)/simple_exp2.h', |
120 '/tmp/$(USER)/simple_exp2.h', |
102 '/tmp/$(USER)/simple_exp3.h', |
121 '/tmp/$(USER)/simple_exp3.h', |
114 + "-c armv5 --noexport -n" |
133 + "-c armv5 --noexport -n" |
115 t.antitargets = [ |
134 t.antitargets = [ |
116 '$(EPOCROOT)/epoc32/include/exported_1.h', |
135 '$(EPOCROOT)/epoc32/include/exported_1.h', |
117 '$(EPOCROOT)/epoc32/include/exported_2.h', |
136 '$(EPOCROOT)/epoc32/include/exported_2.h', |
118 '$(EPOCROOT)/epoc32/include/exported_3.h', |
137 '$(EPOCROOT)/epoc32/include/exported_3.h', |
|
138 "$(EPOCROOT)/epoc32/include/executable_file", |
119 '$(EPOCROOT)/epoc32/include/exportedfilewithspacesremoved.doc', |
139 '$(EPOCROOT)/epoc32/include/exportedfilewithspacesremoved.doc', |
120 '$(EPOCROOT)/epoc32/include/exported file with a space.doc', |
140 '$(EPOCROOT)/epoc32/include/exported file with a space.doc', |
121 '/tmp/$(USER)/simple_exp1.h', |
141 '/tmp/$(USER)/simple_exp1.h', |
122 '/tmp/$(USER)/simple_exp2.h', |
142 '/tmp/$(USER)/simple_exp2.h', |
123 '/tmp/$(USER)/simple_exp3.h', |
143 '/tmp/$(USER)/simple_exp3.h', |