Add more system tests. #96

This commit is contained in:
Andrey Smirnov
2014-08-25 22:15:21 +04:00
parent 099a82c816
commit 6003764ff5
7 changed files with 98 additions and 6 deletions
+33 -4
View File
@@ -2,8 +2,37 @@ from lib import BaseTest
class RunTask1Test(BaseTest):
"""
output should match
"""
"""
task run: simple commands, 1-word command
"""
runCmd = "aptly task run repo list, repo create local, repo drop local, version"
runCmd = "aptly task run repo list, repo create local, repo drop local, version"
class RunTask2Test(BaseTest):
"""
task run: commands with args
"""
runCmd = "aptly task run -- repo list -raw, repo create local, repo list"
class RunTask3Test(BaseTest):
"""
task run: failure
"""
expectedCode = 1
runCmd = "aptly task run -- repo show a, repo create local, repo list"
class RunTask4Test(BaseTest):
"""
task run: from file
"""
runCmd = "aptly task run -filename=${testfiles}/task"
class RunTask5Test(BaseTest):
"""
task run: from file not found
"""
expectedCode = 1
runCmd = "aptly task run -filename=not_found"