|
25 | 25 | ExecutableProduct("main_avx2", :main_avx2),
|
26 | 26 | ]
|
27 | 27 |
|
28 |
| - build_output_meta = autobuild( |
29 |
| - build_path, |
30 |
| - "isa_tests", |
31 |
| - v"1.0.0", |
32 |
| - [build_tests_dir], |
33 |
| - # Build the test suite, install the binaries into our prefix's `bin` |
34 |
| - raw""" |
35 |
| - cd ${WORKSPACE}/srcdir/isa_tests |
36 |
| - make -j${nproc} install |
37 |
| - install_license /usr/include/ltdl.h |
38 |
| - """, |
39 |
| - # Build for our platform |
40 |
| - [platform], |
41 |
| - # Ensure our executable products are built |
42 |
| - products, |
43 |
| - # No dependencies |
44 |
| - []; |
45 |
| - # We need to build with very recent GCC so that we can emit AVX2 |
46 |
| - preferred_gcc_version=v"8", |
47 |
| - ) |
| 28 | + build_output_meta = nothing |
| 29 | + @test_logs (:warn, r"sandybridge") (:warn, r"haswell") match_mode=:any begin |
| 30 | + build_output_meta = autobuild( |
| 31 | + build_path, |
| 32 | + "isa_tests", |
| 33 | + v"1.0.0", |
| 34 | + [build_tests_dir], |
| 35 | + # Build the test suite, install the binaries into our prefix's `bin` |
| 36 | + raw""" |
| 37 | + cd ${WORKSPACE}/srcdir/isa_tests |
| 38 | + make -j${nproc} install |
| 39 | + install_license /usr/include/ltdl.h |
| 40 | + """, |
| 41 | + # Build for our platform |
| 42 | + [platform], |
| 43 | + # Ensure our executable products are built |
| 44 | + products, |
| 45 | + # No dependencies |
| 46 | + []; |
| 47 | + # We need to build with very recent GCC so that we can emit AVX2 |
| 48 | + preferred_gcc_version=v"8", |
| 49 | + ) |
| 50 | + end |
48 | 51 |
|
49 | 52 | # Extract our platform's build
|
50 | 53 | @test haskey(build_output_meta, platform)
|
@@ -121,37 +124,37 @@ end
|
121 | 124 |
|
122 | 125 |
|
123 | 126 | @testset "Auditor - .dll moving" begin
|
124 |
| - for platform in [Linux(:x86_64), Windows(:x86_64)] |
| 127 | + for platform in [Windows(:x86_64)] |
125 | 128 | mktempdir() do build_path
|
126 |
| - build_output_meta = autobuild( |
127 |
| - build_path, |
128 |
| - "dll_moving", |
129 |
| - v"1.0.0", |
130 |
| - [], |
131 |
| - # Intsall a .dll into lib |
132 |
| - raw""" |
133 |
| - mkdir -p ${prefix}/lib |
134 |
| - cc -o ${prefix}/lib/libfoo.${dlext} -shared /usr/share/testsuite/c/dyn_link/libfoo/libfoo.c |
135 |
| - install_license /usr/include/ltdl.h |
136 |
| - """, |
137 |
| - # Build for our platform |
138 |
| - [platform], |
139 |
| - # Ensure our executable products are built |
140 |
| - Product[LibraryProduct("libfoo", :libfoo)], |
141 |
| - # No dependencies |
142 |
| - []; |
143 |
| - # We need to build with very recent GCC so that we can emit AVX2 |
144 |
| - preferred_gcc_version=v"8", |
145 |
| - ) |
| 129 | + build_output_meta = nothing |
| 130 | + @test_logs (:warn, r"lib/libfoo.dll should be in `bin`") (:warn, r"Simple buildsystem detected") match_mode=:any begin |
| 131 | + build_output_meta = autobuild( |
| 132 | + build_path, |
| 133 | + "dll_moving", |
| 134 | + v"1.0.0", |
| 135 | + [], |
| 136 | + # Install a .dll into lib |
| 137 | + raw""" |
| 138 | + mkdir -p ${prefix}/lib |
| 139 | + cc -o ${prefix}/lib/libfoo.${dlext} -shared /usr/share/testsuite/c/dyn_link/libfoo/libfoo.c |
| 140 | + install_license /usr/include/ltdl.h |
| 141 | + """, |
| 142 | + # Build for our platform |
| 143 | + [platform], |
| 144 | + # Ensure our executable products are built |
| 145 | + Product[LibraryProduct("libfoo", :libfoo)], |
| 146 | + # No dependencies |
| 147 | + [] |
| 148 | + ) |
| 149 | + end |
146 | 150 |
|
147 | 151 | @test haskey(build_output_meta, platform)
|
148 | 152 | tarball_path, tarball_hash = build_output_meta[platform][1:2]
|
149 | 153 | @test isfile(tarball_path)
|
150 | 154 |
|
151 | 155 | # Test that `libfoo.dll` gets moved to `bin` if it's a windows
|
152 | 156 | contents = list_tarball_files(tarball_path)
|
153 |
| - dir = isa(platform, Windows) ? "bin" : "lib" |
154 |
| - @test "$(dir)/libfoo.$(dlext(platform))" in contents |
| 157 | + @test "bin/libfoo.$(dlext(platform))" in contents |
155 | 158 | end
|
156 | 159 | end
|
157 | 160 | end
|
|
0 commit comments