xref: /aosp_15_r20/external/jazzer-api/docker/jazzer-autofuzz/entrypoint.sh (revision 33edd6723662ea34453766bfdca85dbfdd5342b8)
1*33edd672SMark#!/usr/bin/env bash
2*33edd672SMark# Copyright 2021 Code Intelligence GmbH
3*33edd672SMark#
4*33edd672SMark# Licensed under the Apache License, Version 2.0 (the "License");
5*33edd672SMark# you may not use this file except in compliance with the License.
6*33edd672SMark# You may obtain a copy of the License at
7*33edd672SMark#
8*33edd672SMark#      http://www.apache.org/licenses/LICENSE-2.0
9*33edd672SMark#
10*33edd672SMark# Unless required by applicable law or agreed to in writing, software
11*33edd672SMark# distributed under the License is distributed on an "AS IS" BASIS,
12*33edd672SMark# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*33edd672SMark# See the License for the specific language governing permissions and
14*33edd672SMark# limitations under the License.
15*33edd672SMark
16*33edd672SMarkset -e
17*33edd672SMark
18*33edd672SMarkCP="$(/app/coursier.jar fetch --classpath "$1")"
19*33edd672SMark/app/jazzer \
20*33edd672SMark  --cp="$CP" \
21*33edd672SMark  --autofuzz="$2" \
22*33edd672SMark  "${@:3}"
23