Skip to content

Commit 2e11e93

Browse files
authored
olivers suggestion to fix errors
1 parent 69041de commit 2e11e93

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

projects/imagemagick/run_tests.sh

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/bin/bash
2-
# Copyright 2025 Google LLC
1+
#!/bin/sh -e
2+
# Copyright 2025 Google LLC.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -15,20 +15,7 @@
1515
#
1616
################################################################################
1717

18-
# Usage: bash run_test.sh
19-
# Runs all tests.
18+
rgrep --files-with-matches '\-lheif' . \
19+
| xargs -r sed -i 's/-lheif/-lheif -lc++/'
2020

21-
set -e # Exit immediately if any command fails
22-
23-
PROJECT_SRC_DIR="$SRC/imagemagick"
24-
25-
echo "==> Changing to ImageMagick source directory: $PROJECT_SRC_DIR"
26-
cd "$PROJECT_SRC_DIR"
27-
28-
echo "==> Setup needed right now..." # DO NOT SUBMIT
29-
./configure
30-
echo "==> Setup finished successfully." # DO NOT SUBMIT
31-
32-
echo "==> Running all tests..."
33-
make check
34-
echo "==> Test run finished successfully."
21+
make -j"$(nproc)" check

0 commit comments

Comments
 (0)