|
56 | 56 | mktempdir() do build_path
|
57 | 57 | platform = Platform("x86_64", "linux"; march="avx")
|
58 | 58 | build_output_meta = nothing
|
59 |
| - @test_logs (:info, "Building for x86_64-linux-gnu-march+avx") (:warn, r"is avx512, not avx as desired.$") match_mode=:any begin |
| 59 | + @test_logs (:info, "Building for x86_64-linux-gnu-march+avx") (:warn, r"is avx512, not avx as desired\.$") match_mode=:any begin |
60 | 60 | build_output_meta = autobuild(
|
61 | 61 | build_path,
|
62 | 62 | "isa_tests",
|
|
105 | 105 | mktempdir() do build_path
|
106 | 106 | platform = Platform("x86_64", "linux"; march="avx512")
|
107 | 107 | build_output_meta = nothing
|
108 |
| - @test_logs (:info, "Building for x86_64-linux-gnu-march+avx512") (:warn, r"is avx, not avx512 as desired. You may be missing some optimization flags during compilation.$") match_mode=:any begin |
| 108 | + @test_logs (:info, "Building for x86_64-linux-gnu-march+avx512") (:warn, r"is avx, not avx512 as desired\. You may be missing some optimization flags during compilation\.$") match_mode=:any begin |
109 | 109 | build_output_meta = autobuild(
|
110 | 110 | build_path,
|
111 | 111 | "isa_tests",
|
|
240 | 240 | make install
|
241 | 241 | install_license /usr/share/licenses/libuv/LICENSE
|
242 | 242 | """
|
243 |
| - build_output_meta = @test_logs (:info, "Building for $(triplet(platform))") (:warn, r"Linked library libgcc_s.so.1") match_mode=:any do_build(build_path, script, platform, gcc_version) |
| 243 | + build_output_meta = @test_logs (:info, "Building for $(triplet(platform))") (:warn, r"Linked library libgcc_s\.so\.1") match_mode=:any do_build(build_path, script, platform, gcc_version) |
244 | 244 | # Extract our platform's build
|
245 | 245 | @test haskey(build_output_meta, platform)
|
246 | 246 | tarball_path, tarball_hash = build_output_meta[platform][1:2]
|
|
299 | 299 | platform = Platform("x86_64", os)
|
300 | 300 | mktempdir() do build_path
|
301 | 301 | build_output_meta = nothing
|
302 |
| - @test_logs (:info, r"Removing libtool file .*/destdir/lib/libfoo.la$") (:info, r"Removing libtool file .*/destdir/lib/libqux.la$") match_mode=:any begin |
| 302 | + @test_logs (:info, r"Removing libtool file .*/destdir/lib/libfoo\.la$") (:info, r"Removing libtool file .*/destdir/lib/libqux\.la$") match_mode=:any begin |
303 | 303 | build_output_meta = autobuild(
|
304 | 304 | build_path,
|
305 | 305 | "libfoo",
|
|
342 | 342 | platform = Platform("x86_64", os)
|
343 | 343 | mktempdir() do build_path
|
344 | 344 | build_output_meta = nothing
|
345 |
| - @test_logs (:info, r"Relocatize pkg-config file .*/destdir/lib/pkgconfig/libfoo.pc$") match_mode=:any begin |
| 345 | + @test_logs (:info, r"Relocatize pkg-config file .*/destdir/lib/pkgconfig/libfoo\.pc$") match_mode=:any begin |
346 | 346 | build_output_meta = autobuild(
|
347 | 347 | build_path,
|
348 | 348 | "libfoo",
|
|
387 | 387 | for platform in [Platform("x86_64", "windows")]
|
388 | 388 | mktempdir() do build_path
|
389 | 389 | build_output_meta = nothing
|
390 |
| - @test_logs (:warn, r"lib/libfoo.dll should be in `bin`") (:warn, r"Simple buildsystem detected") match_mode=:any begin |
| 390 | + @test_logs (:warn, r"lib/libfoo\.dll should be in `bin`") (:warn, r"Simple buildsystem detected") match_mode=:any begin |
391 | 391 | build_output_meta = autobuild(
|
392 | 392 | build_path,
|
393 | 393 | "dll_moving",
|
|
502 | 502 | end
|
503 | 503 |
|
504 | 504 | # Test that `audit()` warns about an absolute path within the prefix
|
505 |
| - @test_logs (:warn, r"share/foo.conf contains an absolute path") match_mode=:any begin |
| 505 | + @test_logs (:warn, r"share/foo\.conf contains an absolute path") match_mode=:any begin |
506 | 506 | Auditor.audit(Prefix(build_path); verbose=true)
|
507 | 507 | end
|
508 | 508 | end
|
|
519 | 519 | symlink("libfoo.so.1.2.3", joinpath(bindir, "libfoo.so"))
|
520 | 520 |
|
521 | 521 | # Test that `audit()` warns about broken symlinks
|
522 |
| - @test_logs (:warn, r"Broken symlink: bin/libzmq.dll.a") match_mode=:any begin |
| 522 | + @test_logs (:warn, r"Broken symlink: bin/libzmq\.dll\.a") match_mode=:any begin |
523 | 523 | Auditor.warn_deadlinks(build_path)
|
524 | 524 | end
|
525 | 525 | end
|
|
532 | 532 |
|
533 | 533 | mktempdir() do build_path
|
534 | 534 | hello_world = ExecutableProduct("hello_world_fortran", :hello_world_fortran)
|
535 |
| - build_output_meta = @test_logs (:warn, r"CompilerSupportLibraries_jll") (:warn, r"Linked library libgfortran.so.5") (:warn, r"Linked library libquadmath.so.0") (:warn, r"Linked library libgcc_s.so.1") match_mode=:any begin |
| 535 | + build_output_meta = @test_logs (:warn, r"CompilerSupportLibraries_jll") (:warn, r"Linked library libgfortran\.so\.(4|5)") (:warn, r"Linked library libquadmath\.so\.0") (:warn, r"Linked library libgcc_s\.so\.1") match_mode=:any begin |
536 | 536 | autobuild(
|
537 | 537 | build_path,
|
538 | 538 | "hello_fortran",
|
|
595 | 595 | # audit should warn us.
|
596 | 596 | libgfortran_versions = (3, 4, 5)
|
597 | 597 | other_libgfortran_version = libgfortran_versions[findfirst(v -> v != our_libgfortran_version.major, libgfortran_versions)]
|
598 |
| - @test_logs (:warn, Regex("but we are supposedly building for libgfortran$(other_libgfortran_version)")) (:warn, r"Linked library libgfortran.so.5") (:warn, r"Linked library libquadmath.so.0") (:warn, r"Linked library libgcc_s.so.1") readmeta(hello_world_path) do ohs |
| 598 | + @test_logs (:warn, Regex("but we are supposedly building for libgfortran$(other_libgfortran_version)")) (:warn, r"Linked library libgfortran\.so\.(4|5)") (:warn, r"Linked library libquadmath\.so\.0") (:warn, r"Linked library libgcc_s\.so\.1") readmeta(hello_world_path) do ohs |
599 | 599 | foreach(ohs) do oh
|
600 | 600 | p = deepcopy(platform)
|
601 | 601 | p["libgfortran_version"] = "$(other_libgfortran_version).0.0"
|
|
842 | 842 | @testset "hard-float ABI" begin
|
843 | 843 | platform = Platform("armv7l", "linux"; call_abi = "eabihf", libc = "glibc")
|
844 | 844 | mktempdir() do build_path
|
845 |
| - build_output_meta = @test_logs (:error, r"libsoft.so does not match the hard-float ABI") match_mode=:any begin |
| 845 | + build_output_meta = @test_logs (:error, r"libsoft\.so does not match the hard-float ABI") match_mode=:any begin |
846 | 846 | autobuild(
|
847 | 847 | build_path,
|
848 | 848 | "hard_float_ABI",
|
@@ -951,14 +951,14 @@ end
|
951 | 951 | oh = only(ohs)
|
952 | 952 | @test !is_for_platform(oh, platform)
|
953 | 953 | @test !check_os_abi(oh, platform)
|
954 |
| - @test_logs((:warn, r"libnonote.so does not have a FreeBSD-branded ELF note"), |
| 954 | + @test_logs((:warn, r"libnonote\.so does not have a FreeBSD-branded ELF note"), |
955 | 955 | match_mode=:any, check_os_abi(oh, platform; verbose=true))
|
956 | 956 | end
|
957 | 957 | readmeta(joinpath(testdir, "lib", "libbadosabi.so")) do ohs
|
958 | 958 | oh = only(ohs)
|
959 | 959 | @test !is_for_platform(oh, platform)
|
960 | 960 | @test !check_os_abi(oh, platform)
|
961 |
| - @test_logs((:warn, r"libbadosabi.so has an ELF header OS/ABI value that is not set to FreeBSD"), |
| 961 | + @test_logs((:warn, r"libbadosabi\.so has an ELF header OS/ABI value that is not set to FreeBSD"), |
962 | 962 | match_mode=:any, check_os_abi(oh, platform; verbose=true))
|
963 | 963 | end
|
964 | 964 | # Only audit the library we didn't mess with in the recipe
|
|
0 commit comments