68acb1d2be
Add a few more tests to exercise some of the treefile options. We do need to also expand test-basic.sh itself to sanity-check the structure of a normal ostree compose. That's up next on the list. Closes: #548 Approved by: cgwalters
24 lines
666 B
Bash
Executable File
24 lines
666 B
Bash
Executable File
#!/bin/bash
|
|
set -xeuo pipefail
|
|
|
|
dn=$(cd $(dirname $0) && pwd)
|
|
. ${dn}/libcomposetest.sh
|
|
|
|
prepare_compose_test "units"
|
|
pysetjsonmember "default_target" '"multi-user.target"'
|
|
pyappendjsonmember "packages" '["tuned"]'
|
|
pysetjsonmember "units" '["tuned.service"]'
|
|
cat $treefile
|
|
runcompose
|
|
echo "ok compose"
|
|
|
|
ostree --repo=${repobuild} ls ${treeref} \
|
|
/usr/etc/systemd/system/default.target > out.txt
|
|
assert_file_has_content out.txt '-> .*/multi-user\.target'
|
|
echo "ok default target"
|
|
|
|
ostree --repo=${repobuild} ls ${treeref} \
|
|
/usr/etc/systemd/system/multi-user.target.wants > out.txt
|
|
assert_file_has_content out.txt '-> .*/tuned.service'
|
|
echo "ok enable units"
|