From 9031b9c2ea382a6f62cee4efdcf95895115478e2 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 25 Aug 2022 09:38:51 +0200 Subject: [PATCH] Refactor smoke test --- plans/smoke.fmf | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/plans/smoke.fmf b/plans/smoke.fmf index b016e0b..72ff510 100644 --- a/plans/smoke.fmf +++ b/plans/smoke.fmf @@ -1,14 +1,20 @@ summary: Basic smoke test +discover: + how: shell + tests: + - name: /smoke/generate-stax-reader + test: | + set -x + PATH=/usr/lib/jvm/java-11-openjdk/bin:${PATH} + modello plans/smoke.mdo java test-src 1.0.0 foo 8 + javac -d test-bin test-src/smoke/* + modello plans/smoke.mdo stax-reader test-src 1.0.0 foo 8 + javac -d test-bin -cp test-bin test-src/smoke/io/stax/* + find test-src test-bin + test -f test-bin/smoke/SomeBean.class + test -f test-bin/smoke/io/stax/SmokeStaxReader.class prepare: how: install package: java-11-openjdk-devel execute: - script: | - set -x - modello plans/smoke.mdo java test-src 1.0.0 foo 8 - javac -d test-bin test-src/smoke/* - modello plans/smoke.mdo stax-reader test-src 1.0.0 foo 8 - javac -d test-bin -cp test-bin test-src/smoke/io/stax/* - find test-src test-bin - test -f test-bin/smoke/SomeBean.class - test -f test-bin/smoke/io/stax/SmokeStaxReader.class + how: tmt