tests: Restore missing parted tests

This commit is contained in:
Brian C. Lane 2023-03-14 14:55:04 -07:00
parent 0daf2d6f22
commit 6176790223
2 changed files with 20 additions and 0 deletions

8
tests/scripts/run_tests.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
set -eux
# make a small disk image
fallocate -l 100M ./disk.img
parted -s ./disk.img mklabel gpt
parted -s ./disk.img 'mkpart root 1MiB 100%'
parted -m -s ./disk.img u s p

12
tests/tests.yml Normal file
View File

@ -0,0 +1,12 @@
---
# Run a simple parted test
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: scripts
run: ./run_tests.sh