28 lines
657 B
Bash
28 lines
657 B
Bash
# Copyright (C) 2024 Umorpha Systems
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
bats_require_minimum_version 1.7.0
|
|
bats_load_library bats-support
|
|
bats_load_library bats-assert
|
|
bats_load_library bats-file
|
|
|
|
teardown() {
|
|
if [ -n "${tmpdir:-}" ]; then
|
|
temp_del "$tmpdir"
|
|
fi
|
|
}
|
|
|
|
@test "osi-mk needs arguments" {
|
|
LC_ALL=C run --separate-stderr osi-mk
|
|
assert_failure 2
|
|
assert_equal "$output" ''
|
|
assert [ ${#stderr_lines[@]} -gt 1 ]
|
|
assert_regex "${stderr_lines[-1]}" "^Try .*osi-mk --help' for more information\$"
|
|
}
|
|
|
|
@test "osi-mk builds base" {
|
|
tmpdir="$(temp_make)"
|
|
|
|
osi-mk --conf=format=raw_btrfs --conf=size=1G --package=base "$tmpdir/tst.img"
|
|
}
|