Files
poky/meta/recipes-devtools/ruby/ruby/run-ptest
Jiaying Song 844ad4dc30 ruby-ptest : some ptest fixes
- Skip the test_rm_r_no_permissions test under the root user, as
  deletion always succeeds.
- Filter out tests under the -ext- directory in run-ptest. Due to the
  commit [1],the packaging of .so test files under the .ext directory
  was removed. As a result, adjust the test filtering rules to avoid
  test failures caused by missing files.
- Add installation of rdoc.rb and did_you_mean.rb files in
  do_install_ptest to ensure complete test dependencies.
- Add init.rb file to PTEST installation path.

(From OE-Core rev: fbbfbfd59fe74c6f742af29d32fae1327068b9ff)

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-09-01 08:30:57 -07:00

253 B

#!/bin/sh

test_fullname=$(find test -name test_*.rb | grep -v '/-ext-/')

for i in ${test_fullname}; do ruby ./test/runner.rb ${i} 2>&1 > /dev/null ret=$? if [ $ret != 0 ]; then echo "FAIL: ${i}" else echo "PASS: ${i}"
fi done