Onboard package into gating
This commit is contained in:
parent
ba67449f6a
commit
e8157fca27
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
8
gating.yaml
Normal file
8
gating.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_contexts:
|
||||
- bodhi_update_push_testing
|
||||
- bodhi_update_push_stable
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
23
plans/Smoke.java
Normal file
23
plans/Smoke.java
Normal 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
8
plans/smoke.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
summary: Basic smoke test
|
||||
prepare:
|
||||
how: install
|
||||
package: java-1.8.0-openjdk-devel
|
||||
execute:
|
||||
script:
|
||||
- /usr/lib/jvm/java-1.8.0-openjdk/bin/javac -cp /usr/share/java/jctools/jctools-core.jar plans/Smoke.java
|
||||
- /usr/lib/jvm/java-1.8.0-openjdk/bin/java -cp /usr/share/java/jctools/jctools-core.jar:plans Smoke
|
||||
Loading…
Reference in New Issue
Block a user