Refactor smoke test

This commit is contained in:
Mikolaj Izdebski 2022-08-25 09:38:51 +02:00
parent 0a977049e8
commit 98fdd9bd2a

View File

@ -1,10 +1,16 @@
summary: Basic smoke test
discover:
how: shell
tests:
- name: /smoke/wrap
test: |
set -x
bnd wrap -b foo -v 1.2.3 /usr/share/java/ant/ant-bootstrap.jar
unzip ant-bootstrap.jar META-INF/MANIFEST.MF
grep ^Bundle-SymbolicName:.foo META-INF/MANIFEST.MF
grep ^Bundle-Version:.1.2.3 META-INF/MANIFEST.MF
prepare:
how: install
package: unzip
execute:
script: |
bnd wrap -b foo -v 1.2.3 /usr/share/java/ant/ant-bootstrap.jar
unzip ant-bootstrap.jar META-INF/MANIFEST.MF
grep ^Bundle-SymbolicName:.foo META-INF/MANIFEST.MF
grep ^Bundle-Version:.1.2.3 META-INF/MANIFEST.MF
how: tmt