From 4a967682d48ed16db75f787976e99cd97df28356 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 7 Feb 2021 12:47:49 +0100 Subject: Make inital test run on debian, ubuntu, arch, fedora --- podman/arch-testenv | 9 + podman/debian-testenv | 11 + podman/fedora-testenv | 7 + podman/testdata/gerbolyze-2.0.0.tar.gz | Bin 0 -> 830632 bytes podman/testdata/test_svg_readme.svg | 515 +++++++++++++++++++++++++++++++++ podman/testdata/testscript.sh | 5 + podman/ubuntu-testenv | 7 + 7 files changed, 554 insertions(+) create mode 100644 podman/arch-testenv create mode 100644 podman/debian-testenv create mode 100644 podman/fedora-testenv create mode 100644 podman/testdata/gerbolyze-2.0.0.tar.gz create mode 100644 podman/testdata/test_svg_readme.svg create mode 100755 podman/testdata/testscript.sh create mode 100644 podman/ubuntu-testenv (limited to 'podman') diff --git a/podman/arch-testenv b/podman/arch-testenv new file mode 100644 index 0000000..37236c9 --- /dev/null +++ b/podman/arch-testenv @@ -0,0 +1,9 @@ + +FROM docker.io/archlinux:latest +MAINTAINER gerbolyze@jaseg.de +RUN pacman --noconfirm -Syu +RUN pacman --noconfirm -Sy pugixml opencv pango cairo git python make clang rustup cargo python-pip base-devel +RUN rustup install stable +RUN rustup default stable +RUN cargo install usvg + diff --git a/podman/debian-testenv b/podman/debian-testenv new file mode 100644 index 0000000..544b3f2 --- /dev/null +++ b/podman/debian-testenv @@ -0,0 +1,11 @@ + +FROM docker.io/debian:latest +MAINTAINER gerbolyze@jaseg.de +RUN env DEBIAN_FRONTEND=noninteractive apt update -y +RUN env DEBIAN_FRONTEND=noninteractive apt install -y libopencv-dev libpugixml-dev libpangocairo-1.0-0 libpango1.0-dev libcairo2-dev clang make python3 git python3-wheel curl python3-pip python3-venv + +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +RUN sh -c '. ~/.cargo/env && rustup install stable' +RUN sh -c '. ~/.cargo/env && rustup default stable' +RUN sh -c '. ~/.cargo/env && cargo install usvg' + diff --git a/podman/fedora-testenv b/podman/fedora-testenv new file mode 100644 index 0000000..c37de87 --- /dev/null +++ b/podman/fedora-testenv @@ -0,0 +1,7 @@ + +FROM docker.io/fedora:latest +MAINTAINER gerbolyze@jaseg.de +RUN dnf update --refresh -y +RUN dnf install -y python3 make clang opencv-devel pugixml-devel pango-devel cairo-devel rust cargo +RUN cargo install usvg + diff --git a/podman/testdata/gerbolyze-2.0.0.tar.gz b/podman/testdata/gerbolyze-2.0.0.tar.gz new file mode 100644 index 0000000..50b2da0 Binary files /dev/null and b/podman/testdata/gerbolyze-2.0.0.tar.gz differ diff --git a/podman/testdata/test_svg_readme.svg b/podman/testdata/test_svg_readme.svg new file mode 100644 index 0000000..1a0178e --- /dev/null +++ b/podman/testdata/test_svg_readme.svg @@ -0,0 +1,515 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + सर्वे मानवाः स्वतन्त्राः समुत्पन्नाः वर्तन्ते अपि च, गौरवदृशा + + + + + لكن لا بد أن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار + + This is a gerber export test + + diff --git a/podman/testdata/testscript.sh b/podman/testdata/testscript.sh new file mode 100755 index 0000000..59d8b0e --- /dev/null +++ b/podman/testdata/testscript.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +pip3 install --user /data/gerbolyze-*.tar.gz --no-binary gerbolyze +/root/.local/bin/svg-flatten --clear-color black --dark-color white --format svg /data/test_svg_readme.svg /out/test_out.svg + diff --git a/podman/ubuntu-testenv b/podman/ubuntu-testenv new file mode 100644 index 0000000..2665d9b --- /dev/null +++ b/podman/ubuntu-testenv @@ -0,0 +1,7 @@ + +FROM docker.io/ubuntu:latest +MAINTAINER gerbolyze@jaseg.de +RUN env DEBIAN_FRONTEND=noninteractive apt update -y +RUN env DEBIAN_FRONTEND=noninteractive apt install -y libopencv-dev libpugixml-dev libpangocairo-1.0-0 libpango1.0-dev libcairo2-dev clang make python3 git python3-wheel curl python3-pip python3-venv cargo +RUN cargo install usvg + -- cgit