You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_ruby/25_ruby_hello-world.sh

20 lines
340 B

#!/bin/sh
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
t_Log "Running $0 - ruby can run 'hello world'"
# create ruby script
FILE=/var/tmp/test.rb
cat > $FILE <<EOF
#!/usr/bin/ruby
# Hello world ruby program
puts "hello world";
EOF
ruby $FILE | grep -q 'hello world'
t_CheckExitStatus $?
# and clean up
/bin/rm ${FILE}