From cc9cc8b245bc785a44e3fe37ca59960d5eb604cd Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 26 Jul 2023 00:29:11 +0200 Subject: move testscripts to own folder --- build.sh | 9 --------- debug/build.sh | 9 +++++++++ debug/manage_repository.sh | 11 +++++++++++ debug/testrun.sh | 17 +++++++++++++++++ manage_repository.sh | 11 ----------- testrun.sh | 17 ----------------- 6 files changed, 37 insertions(+), 37 deletions(-) delete mode 100755 build.sh create mode 100755 debug/build.sh create mode 100755 debug/manage_repository.sh create mode 100755 debug/testrun.sh delete mode 100755 manage_repository.sh delete mode 100755 testrun.sh diff --git a/build.sh b/build.sh deleted file mode 100755 index 0d6ecd4..0000000 --- a/build.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -DOCKER=podman - -#podman image prune - -$DOCKER pull archlinux:base-devel -$DOCKER build --no-cache -t aurbuilder container/ -#$DOCKER build -t aurbuilder docker/ diff --git a/debug/build.sh b/debug/build.sh new file mode 100755 index 0000000..f9fef13 --- /dev/null +++ b/debug/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +DOCKER=podman + +#podman image prune + +$DOCKER pull archlinux:base-devel +$DOCKER build --no-cache -t aurbuilder ../container/ +#$DOCKER build -t aurbuilder docker/ diff --git a/debug/manage_repository.sh b/debug/manage_repository.sh new file mode 100755 index 0000000..5f0f01b --- /dev/null +++ b/debug/manage_repository.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Custom_local_repository + +OUTDIR="testrun/db/" +PKGDIR="testrun/pkgout/" + +mkdir -p "$OUTDIR" + +repo-add -p -R "$OUTDIR/repo.db.tar.gz" "$PKGDIR/"*.pkg.* + +rm "$OUTDIR/"*.old diff --git a/debug/testrun.sh b/debug/testrun.sh new file mode 100755 index 0000000..2329cf5 --- /dev/null +++ b/debug/testrun.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +DOCKER=podman + +mkdir -p testrun/pkgout + +CHOWN_TO="$USER" +OUTPUT="$(pwd)/testrun/pkgout" + +#./build.sh + +$DOCKER run --userns=host --name archpkg-test --env PACKAGE_NAME=minipro \ + --env FORCE_REBUILD=yes --env CHOWN="$(id -u "$CHOWN_TO"):$(id -g "$CHOWN_TO")" \ + -v "$OUTPUT:/pkgout:z" \ + aurbuilder + +$DOCKER rm archpkg-test diff --git a/manage_repository.sh b/manage_repository.sh deleted file mode 100755 index 395c263..0000000 --- a/manage_repository.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Custom_local_repository - -OUTDIR="testrun/db/" -PKGDIR="testrun/db/" - -mkdir -p "$OUTDIR" - -repo-add -n "$OUTDIR/repo.db.tar.gz" "$PKGDIR/pkgout/*.pkg.*" - -rm "$OUTDIR/*.old" diff --git a/testrun.sh b/testrun.sh deleted file mode 100755 index 2329cf5..0000000 --- a/testrun.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -DOCKER=podman - -mkdir -p testrun/pkgout - -CHOWN_TO="$USER" -OUTPUT="$(pwd)/testrun/pkgout" - -#./build.sh - -$DOCKER run --userns=host --name archpkg-test --env PACKAGE_NAME=minipro \ - --env FORCE_REBUILD=yes --env CHOWN="$(id -u "$CHOWN_TO"):$(id -g "$CHOWN_TO")" \ - -v "$OUTPUT:/pkgout:z" \ - aurbuilder - -$DOCKER rm archpkg-test -- cgit v1.2.3