test_python_jc.py 708 B

12345678910111213141516171819202122
  1. from tests.package.test_python import TestPythonPackageBase
  2. class TestPythonPy3Jc(TestPythonPackageBase):
  3. __test__ = True
  4. # We deliberately run the test without the optional dependencies,
  5. # as this configuration is less tested upstream.
  6. config = TestPythonPackageBase.config + \
  7. """
  8. BR2_PACKAGE_PYTHON3=y
  9. BR2_PACKAGE_PYTHON_JC=y
  10. """
  11. timeout = 60
  12. def test_run(self):
  13. self.login()
  14. cmd = "jc -h > /dev/null 2>&1"
  15. self.assertRunOk(cmd, timeout=self.timeout)
  16. cmd = "jc id | grep -q root"
  17. self.assertRunOk(cmd, timeout=self.timeout)
  18. cmd = "jc env | grep -q PATH"
  19. self.assertRunOk(cmd, self.timeout)