test: move make-tags.sh into test/

Move the make-tags.sh helper into the `test/` sub-directory. It is
mainly needed for testing together with the other test scripts.
This commit is contained in:
Christian Kellner 2020-09-28 14:18:26 +02:00 committed by Tom Gundersen
parent 00c2313226
commit 05f1ecac8e
3 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ greenprint "Starting koji builder"
sudo ./run-builder.sh start
greenprint "Creating Koji tag infrastructure"
./make-tags.sh
test/make-tags.sh
greenprint "Running integration tests"
python3 -m unittest discover -v test/integration/

14
test/make-tags.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/sh
set -ux
KOJI="koji --server=http://localhost:8080/kojihub --user=kojiadmin --password=kojipass --authtype=password"
$KOJI add-tag f32
$KOJI add-tag --parent f32 f32-candidate
$KOJI add-tag --parent f32 --arches=x86_64 f32-build
$KOJI add-target f32-candidate f32-build f32-candidate
$KOJI add-pkg --owner kojiadmin f32-candidate Fedora-Cloud
$KOJI add-pkg --owner kojiadmin f32-candidate RHEL-Cloud
$KOJI regen-repo f32-build