mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 18:41:17 -03:00
Add test script for development
This commit is contained in:
parent
fdfd8953d5
commit
4699f87cc7
5 changed files with 346 additions and 2 deletions
45
script/test/test01.sh
Executable file
45
script/test/test01.sh
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
#!/bin/bash -u
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
# Load configuration parameter
|
||||
source ./config01.sh
|
||||
|
||||
# Load common functions
|
||||
source ../lib/common.sh
|
||||
|
||||
function main() {
|
||||
|
||||
# This is the mount point of the install target.
|
||||
export TARGETMOUNTPOINT="/target"
|
||||
|
||||
# *******************************************************************************
|
||||
# Confirmation before installation
|
||||
# *******************************************************************************
|
||||
|
||||
# parameters for distribution check
|
||||
export DISTRIBUTIONSIGNATURE="ubuntu"
|
||||
export DISTRIBUTIONNAME="Ubuntu"
|
||||
|
||||
# Check whetehr given signature exist or not
|
||||
if ! distribution_check ; then
|
||||
return 1 # with error status
|
||||
fi
|
||||
|
||||
# Common part of the parameter confirmation
|
||||
if ! confirmation ; then
|
||||
return 1 # with error status
|
||||
fi
|
||||
|
||||
# *******************************************************************************
|
||||
# Pre-install stage
|
||||
# *******************************************************************************
|
||||
|
||||
# Common part of the pre-install stage
|
||||
if ! pre_install ; then
|
||||
return 1 # with error status
|
||||
fi
|
||||
}
|
||||
|
||||
# main routine
|
||||
main
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue