File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,13 +32,17 @@ assert manifest['kind'] == 'rpm'
3232assert manifest['version'] == '0.1.0'
3333assert manifest['package'].endswith('.rpm')
3434assert manifest['profile'] == '/etc/turtle-term/turtleterm.lua'
35+ for command in ['turtle-cloudfog', 'turtle-superconscious', 'turtle-agent-machine']:
36+ assert command in manifest['public_commands'], command
3537PY
3638
3739rpm -qp --queryformat ' %{NAME}\n' " $rpm " | grep -qx ' turtle-term'
3840rpm -qp --queryformat ' %{VERSION}\n' " $rpm " | grep -qx ' 0.1.0'
3941
40- rpm -qpl " $rpm " | grep -q ' ^/usr/bin/turtleterm$'
41- rpm -qpl " $rpm " | grep -q ' ^/usr/bin/turtle-agentctl$'
42+ for command in turtleterm turtle-agentctl turtle-cloudfog turtle-superconscious turtle-agent-machine; do
43+ rpm -qpl " $rpm " | grep -q " ^/usr/bin/$command $"
44+ done
45+
4246rpm -qpl " $rpm " | grep -q ' ^/etc/turtle-term/turtleterm.lua$'
4347rpm -qpl " $rpm " | grep -q ' ^/usr/share/applications/ai.sourceos.TurtleTerm.desktop$'
4448rpm -qpl " $rpm " | grep -q ' ^/usr/share/metainfo/ai.sourceos.TurtleTerm.metainfo.xml$'
@@ -62,4 +66,9 @@ if grep -R "$tmp\|BUILDROOT\|rpm-root\|arch-root\|deb-root" "$extract/usr/bin/tu
6266 exit 1
6367fi
6468
69+ " $extract /usr/bin/turtle-agentctl" --stdio surfaces > /dev/null
70+ " $extract /usr/bin/turtle-cloudfog" surfaces > /dev/null
71+ " $extract /usr/bin/turtle-superconscious" observe rpm-package > /dev/null
72+ " $extract /usr/bin/turtle-agent-machine" surfaces > /dev/null
73+
6574echo " verified $rpm "
You can’t perform that action at this time.
0 commit comments