# SPDX-FileCopyrightText: 2023 David Runge # SPDX-License-Identifier: Apache-2.0 OR MIT FROM registry.gitlab.com/openpgp-card/virtual-cards/smartpgp-builddeps LABEL openpgp-card-tools-test=vcard ENV CARD_BASED_TESTS=true RUN \ apt update -y -qq \ && apt install -y clang git libpcsclite-dev make nettle-dev pkg-config sq ENTRYPOINT \ export PATH="$HOME/.cargo/bin:$PATH" \ && cargo --version \ && rustc --version \ && /etc/init.d/pcscd start \ && runuser -u jcardsim sh /home/jcardsim/run-card.sh \ && cd /src \ && cargo test -- --test-threads 1 VOLUME ["/src"]