Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
alpine-conf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
alpine-conf
Commits
e5215e72
Commit
e5215e72
authored
10 months ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
tests: add basic test for sys install
parent
6b91fc7b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!191
setup-disk: enable lvm with crypt so swap gets encrypted
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/setup_disk_test
+11
-0
11 additions, 0 deletions
tests/setup_disk_test
with
11 additions
and
0 deletions
tests/setup_disk_test
+
11
−
0
View file @
e5215e72
...
...
@@ -11,6 +11,7 @@ init_tests \
setup_disk_func_find_efi_size
\
setup_disk_func_uuid_or_device
\
setup_disk_non_existing_block_dev
\
setup_disk_sys
\
setup_disk_install_mounted_root_nvme
\
setup_disk_install_mounted_root_efi
\
setup_disk_install_mounted_root_efi_boot
\
...
...
@@ -45,6 +46,7 @@ fake_disk() {
echo
$((
$size
*
1000000
/
$blocksize
))
>
sys/block/
$dev
/size
echo
$((
$blocksize
))
>
sys/block/
$dev
/queue/logical_block_size
truncate
-s
"
${
size
}
M"
dev/
"
$dev
"
}
...
...
@@ -251,6 +253,15 @@ setup_disk_non_existing_block_dev_body() {
setup-disk
-m
sys /dev/vda
}
setup_disk_sys_body
()
{
init_env
fake_disk vda
mkdir
proc etc
touch
proc/mounts etc/fstab
ERASE_DISKS
=
/dev/vda atf_check
\
setup-disk
-m
sys /dev/vda
}
setup_disk_install_mounted_root_nvme_body
()
{
init_env
mkdir
-p
target/boot/efi
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment