The ruby shared tests
  • Shell 94.2%
  • Ruby 5.8%
Find a file
Jun Aruga b90aa97120 Update README adding Contributing section.
* Add Contributing section including Testing sub section.
* Change the repository name's heading level.
  Replace the heading level 2 syntax ("--") with the more popular heading level
  1 syntax.
  See <https://www.markdownguide.org/basic-syntax/> for details.
2024-09-25 16:17:02 +02:00
.fmf Add tmt plan to run modified tests 2022-11-30 11:11:32 +01:00
run-basic-rails-application Remove Makefile/PURPOSE file, add summary/description 2024-07-16 18:38:49 +02:00
Sanity/native-extension-gem-is-installed-without-error Disable native.../ruby31 on rhel-10 2024-08-06 18:21:43 +02:00
systemtap-static-probes-in-ruby Improve checking for systemtap files 2024-08-05 11:50:47 +02:00
.gitignore Import 3 integration tests 2018-02-15 13:42:17 +01:00
main.fmf Remove Makefile/PURPOSE file, add summary/description 2024-07-16 18:38:49 +02:00
plans.fmf Add tmt plan to run modified tests 2022-11-30 11:11:32 +01:00
README.md Update README adding Contributing section. 2024-09-25 16:17:02 +02:00

Shared ruby tests

This repository contains shared ruby tests.

Available integration tests:

  • systemtap-static-probes-in-ruby - exercising ruby's systemtap api
  • bundler-unit-test - run bundler's unit tests
  • run-basic-rails-application - run a simple rails application

Contributing

Testing

You can run the tests in your local environment.

Install tmt.

$ sudo dnf install tmt+all

Run the following command to run the tests for Fedora rawhide:

$ tmt -c distro=fedora-rawhide run --all provision -h virtual -i fedora-rawhide plans --default
/var/tmp/tmt/run-NNN
...

The tmt's provisioning method virtual (tmt run provision -h virtual) must be used, otherwise the tests fail due to known issues with container provisioning method (tmt run provision -h container). Also note the run-NNN printed on the output of the command. This represents the run ID used with tmt run --id option in later steps.

Run the following command to see the report, setting the value of the above run ID to the --id option. As this repository doesn't have tmt's plans to run the tests, we need to set the plans --default to use the default plans. See this tmt's document about the tmt run report options.

$ tmt run --id run-NNN report -vvv plans --default