Skip to content

Commit 6353979

Browse files
committed
build.sh: Allow to run shell loader tests
Link: https://lore.kernel.org/ltp/20241210225753.381770-6-pvorel@suse.cz/ Reviewed-by: Li Wang <liwang@redhat.com> Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent 1efa0b0 commit 6353979

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

build.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,14 @@ cross cross-compile build (requires set compiler via -c switch)
173173
native native build
174174
175175
RUN:
176-
autotools run only 'make autotools'
177-
configure run only 'configure'
178-
build run only 'make'
179-
test run only 'make test' (not supported for cross-compile build)
180-
test-c run only 'make test-c' (not supported for cross-compile build)
181-
test-shell run only 'make test-shell' (not supported for cross-compile build)
182-
install run only 'make install'
176+
autotools run only 'make autotools'
177+
configure run only 'configure'
178+
build run only 'make'
179+
test run only 'make test' (not supported for cross-compile build)
180+
test-c run only 'make test-c' (not supported for cross-compile build)
181+
test-shell run only 'make test-shell' (not supported for cross-compile build)
182+
test-shell-loader run only 'make test-shell-loader' (not supported for cross-compile build)
183+
install run only 'make install'
183184
184185
Default configure options:
185186
in-tree: $CONFIGURE_OPTS_IN_TREE
@@ -206,7 +207,7 @@ while getopts "c:hio:p:r:t:" opt; do
206207
esac;;
207208
p) prefix="$OPTARG";;
208209
r) case "$OPTARG" in
209-
autotools|configure|build|test|test-c|test-shell|install) run="$OPTARG";;
210+
autotools|configure|build|test|test-c|test-shell|test-shell-loader|install) run="$OPTARG";;
210211
*) echo "Wrong run type '$OPTARG'" >&2; usage; exit 1;;
211212
esac;;
212213
t) case "$OPTARG" in
@@ -232,7 +233,7 @@ if [ -z "$run" -o "$run" = "build" ]; then
232233
eval build_${tree}_tree
233234
fi
234235

235-
if [ -z "$run" -o "$run" = "test" -o "$run" = "test-c" -o "$run" = "test-shell" ]; then
236+
if [ -z "$run" -o "$run" = "test" -o "$run" = "test-c" -o "$run" = "test-shell" -o "$run" = "test-shell-loader" ]; then
236237
if [ "$build" = "cross" ]; then
237238
echo "cross-compile build, skipping running tests" >&2
238239
else

0 commit comments

Comments
 (0)