2017-05-02 12:35:14 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import socket
|
|
|
|
from avocado import main
|
|
|
|
from moduleframework import module_framework
|
|
|
|
|
2017-05-03 07:12:42 +00:00
|
|
|
class RubyTests(module_framework.AvocadoTest):
|
2017-05-02 12:35:14 +00:00
|
|
|
"""
|
|
|
|
:avocado: enable
|
|
|
|
"""
|
|
|
|
|
|
|
|
def test_cmd(self):
|
|
|
|
self.start()
|
|
|
|
self.run("which ruby")
|
|
|
|
|
|
|
|
def test_version(self):
|
|
|
|
self.start()
|
|
|
|
self.run("ruby -v")
|
|
|
|
|
|
|
|
def test_hostname(self):
|
|
|
|
self.start()
|
2017-05-03 07:12:42 +00:00
|
|
|
self.run("hostname")
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|