Commit 17d5e271 authored by Michael Pöhn's avatar Michael Pöhn

rename script to fdroid_basebox

parent d709bd68
# makebuildserver\_basebox.py
# fdroid\_basebox
This script bootstraps Debian vagrant boxes which are a suitable base for
building F-Droid Build Server boxes. It supports 'libvirt' (qemu/kvm) and
......@@ -12,7 +12,7 @@ https://f-droid.org/docs/Build_Server_Setup
### example: bootstrap a libvirt box
This section describes the primary intended use case for
`makebuildserver_basebox.py`.
`fdroid_basebox`.
#### Fetch this script via git:
......@@ -21,7 +21,7 @@ This section describes the primary intended use case for
#### Bootstrap and add box:
sudo ./makebuildserver_basebox.py --provider libvirt
sudo ./fdroid_basebox.py --provider libvirt
vagrant box add jessie64 fdroid-jessie64-libvirt.box
That's it, _makebuildserver.py_ should be able to find the basebox now.
......@@ -32,8 +32,8 @@ That's it, _makebuildserver.py_ should be able to find the basebox now.
### synopsis
makebuildserver_basebox.py [-h] [-v] [-q] [-t TARGET] [-p PROVIDER]
[-d] [--workdir WORKDIR]
fdroid_basebox.py [-h] [-v] [-q] [-t TARGET] [-p PROVIDER]
[-d] [--workdir WORKDIR]
### options
......
#! /usr/bin/env python3
#
# makebuildserver_basebox.py - bootstrapping VMs for F-Droid buildserver
# fdroid_basebox.py - bootstrapping VMs for F-Droid buildserver
# Copyright (C) 2018 Michael Poehn <michael.poehn@fsfe.org>
#
# This program is free software: you can redistribute it and/or modify
......
......@@ -15,11 +15,11 @@ print('localmodule: ' + localmodule)
if localmodule not in sys.path:
sys.path.insert(0, localmodule)
import makebuildserver_basebox
import fdroid_basebox
class MkBsBoxTest(unittest.TestCase):
'''tests makebuildserver_basebox.py'''
'''tests fdroid_basebox.py'''
def setUp(self):
logging.basicConfig(level=logging.DEBUG)
......@@ -33,7 +33,7 @@ class MkBsBoxTest(unittest.TestCase):
def test_write_bootstrap_script(self):
with tempfile.TemporaryDirectory() as tmpdir:
path = os.path.join(tmpdir, 'script.sh')
makebuildserver_basebox.write_bootstrap_script(
fdroid_basebox.write_bootstrap_script(
path, 'http://deb.debian.org/debian', 'jessie',
'theUsersName', 'libvirt')
......@@ -43,9 +43,9 @@ class MkBsBoxTest(unittest.TestCase):
# testcase disabled because gitlab ci actually runs as root.
#
# def test_main(self):
# self.assertRaisesRegex(makebuildserver_basebox.BaseboxException,
# self.assertRaisesRegex(fdroid_basebox.BaseboxException,
# "This script requires super user privileges.+",
# makebuildserver_basebox.main,
# fdroid_basebox.main,
# provider='unsupported_value')
......
......@@ -15,4 +15,4 @@ for testcase in *.TestCase; do
done
echo smoke test executable ...
../makebuildserver_basebox.py -h > /dev/null
../fdroid_basebox.py -h > /dev/null
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment