From 989c8d85c2e8d496d6788673451e93eea8131885 Mon Sep 17 00:00:00 2001 From: Jan Staněk Date: Jan 22 2020 15:17:31 +0000 Subject: Enable testing gating with basic functional tests --- diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..b1e13b7 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,8 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_testing +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} +... diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..d333757 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,16 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + - uglify-js + tests: + # Check that the main binary can be run at all + - usable: + run: uglifyjs --version + # Check that a basic expression is correctly minified + - expression: + run: test "$(echo '1 + 1'|uglifyjs --expression)" = '1+1;' +...