Onboard jctools into gating

Related: rhbz#2054992
This commit is contained in:
Mikolaj Izdebski 2022-02-21 07:56:27 +01:00
parent 888a7cebc3
commit 23b9642b96
4 changed files with 39 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_contexts:
- osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

23
plans/Smoke.java Normal file
View File

@ -0,0 +1,23 @@
import java.util.Queue;
import org.jctools.queues.MpscChunkedArrayQueue;
public class Smoke {
public static void main(String[] args) {
System.out.println("SMOKE TEST START");
Queue<Integer> q = new MpscChunkedArrayQueue<>(1024, 8*1024);
// fill up the queue
int i = 0;
while(q.offer(i)) i++;
System.out.println("Added "+ i);
// empty it
i = 0;
while(q.poll() != null) i++;
System.out.println("Removed "+ i);
System.out.println("SMOKE TEST COMPLETE");
}
}

8
plans/smoke.fmf Normal file
View File

@ -0,0 +1,8 @@
summary: Basic smoke test
prepare:
how: install
package: java-devel
execute:
script:
- javac -cp /usr/share/java/jctools/jctools-core.jar plans/Smoke.java
- java -cp /usr/share/java/jctools/jctools-core.jar:plans Smoke