Lines Matching refs:command
20 command line is correctly handled, under both valid and invalid usage
22 some very basic incidental usage needed to validate the command line.
37 constant color blocks, are used to help determine that the command line is
117 These tests are designed to test the command line is handled correctly.
236 These tests are designed to test the command line is handled correctly.
403 def exec(self, command, pattern=None):
411 command (list(str)): The command to execute.
421 result = sp.run(command, stdout=sp.PIPE, stderr=sp.PIPE,
431 print("\n" + " ".join(command))
432 # Format for script command list replay
433 print("\n" + ", ".join(("\"%s\"" % x for x in command)))
464 command = [self.binary, "-cl", imIn, imOut, "6x6", "-exhaustive"]
465 self.exec(command)
476 command = [self.binary, "-cs", imIn, imOut, "6x6", "-exhaustive"]
477 self.exec(command)
488 command = [self.binary, "-ch", imIn, imOut, "6x6", "-exhaustive"]
489 self.exec(command)
500 command = [self.binary, "-cH", imIn, imOut, "6x6", "-exhaustive"]
501 self.exec(command)
512 command = [self.binary, "-dl", imIn, imOut]
513 self.exec(command)
524 command = [self.binary, "-ds", imIn, imOut]
525 self.exec(command)
536 command = [self.binary, "-dh", imIn, imOut]
537 self.exec(command)
551 command = [self.binary, "-dH", imIn, imOut]
552 self.exec(command)
565 command = [self.binary, "-tl", imIn, imOut, "6x6", "-exhaustive"]
566 self.exec(command)
576 command = [self.binary, "-ts", imIn, imOut, "6x6", "-exhaustive"]
577 self.exec(command)
587 command = [self.binary, "-th", imIn, imOut, "6x6", "-exhaustive"]
588 self.exec(command)
600 command = [self.binary, "-tH", imIn, imOut, "6x6", "-exhaustive"]
601 self.exec(command)
620 command = [self.binary, "-tl", imIn, imOut, blk, "-exhaustive"]
621 self.exec(command)
642 command = [self.binary, "-tl", imIn, imOut, blk, "-exhaustive"]
643 self.exec(command)
660 command = [self.binary, "-tl", imIn, imOut, "4x4", preset]
661 self.exec(command)
677 command = [self.binary, "-tl", imIn, imOut, "4x4", "-fast"]
678 self.exec(command)
710 command = [self.binary, "-tl", imIn, imOut, "4x4", "-fast"]
711 self.exec(command)
731 command = [self.binary, "-cl", imIn, imOut, "4x4", "-fast"]
732 self.exec(command)
734 command = [self.binary, "-dl", imOut, imOut2]
735 self.exec(command)
754 command = [self.binary, "-th", imIn, imOut, "4x4", "-fast"]
755 self.exec(command)
774 command = [self.binary, "-th", imIn, imOut, "4x4", "-fast"]
775 self.exec(command)
795 command = [self.binary, "-ch", imIn, imOut, "4x4", "-fast"]
796 self.exec(command)
798 command = [self.binary, "-dh", imOut, imOut2]
799 self.exec(command)
813 command = [
818 refdB = float(self.exec(command, LDR_RGB_PSNR_PATTERN))
820 command.append("-normal")
821 testdB = float(self.exec(command, LDR_RGB_PSNR_PATTERN))
834 command = [
839 refdB = float(self.exec(command, LDR_RGB_PSNR_PATTERN))
841 command.append("-normal")
842 command.append("-perceptual")
843 testdB = float(self.exec(command, LDR_RGB_PSNR_PATTERN))
862 command = [
868 self.exec(command)
888 command = [
894 self.exec(command)
909 command = [
915 self.exec(command)
930 command = [
935 self.exec(command)
940 command = [
945 self.exec(command)
961 command = [
966 self.exec(command)
971 command = [
976 self.exec(command)
992 command = [
997 self.exec(command)
1015 command = [
1019 self.exec(command)
1033 command2 = command + ["-cw"] + cwArg
1046 command = [
1050 self.exec(command)
1053 command += ["-partitioncountlimit", "1"]
1054 self.exec(command)
1068 command = [
1072 self.exec(command)
1075 command += ["-2partitionindexlimit", "1"]
1076 self.exec(command)
1090 command = [
1094 self.exec(command)
1097 command += ["-3partitionindexlimit", "1"]
1098 self.exec(command)
1112 command = [
1116 self.exec(command)
1119 command += ["-4partitionindexlimit", "1"]
1120 self.exec(command)
1134 command = [
1138 self.exec(command)
1141 command += ["-blockmodelimit", "25"]
1142 self.exec(command)
1155 command = [
1159 self.exec(command)
1162 command += ["-refinementlimit", "1"]
1163 self.exec(command)
1176 command = [
1180 self.exec(command)
1183 command += ["-candidatelimit", "1"]
1184 self.exec(command)
1198 command = [
1202 self.exec(command)
1205 command += ["-dblimit", "10"]
1206 self.exec(command)
1220 command = [
1224 self.exec(command)
1227 command += ["-2partitionlimitfactor", "1.0"]
1228 self.exec(command)
1242 command = [
1246 self.exec(command)
1249 command += ["-3partitionlimitfactor", "1.0"]
1250 self.exec(command)
1264 command = [
1268 self.exec(command)
1271 command += ["-2planelimitcorrelation", "0.1"]
1272 self.exec(command)
1286 command = [
1290 self.exec(command)
1293 command += ["-2partitioncandidatelimit", "1"]
1294 self.exec(command)
1308 command = [
1312 self.exec(command)
1315 command += ["-3partitioncandidatelimit", "1"]
1316 self.exec(command)
1330 command = [
1334 self.exec(command)
1337 command += ["-4partitioncandidatelimit", "1"]
1338 self.exec(command)
1342 # even for -exhaustive, BUT command line option must be accepted and
1355 command = [
1360 self.exec(command)
1363 command += ["-j", "1"]
1365 self.exec(command)
1379 command = [
1382 stdout = self.exec(command)
1384 command += ["-silent"]
1385 stdoutSilent = self.exec(command)
1402 command = [self.binary, "-tl", inputFile, p1DecFile, "4x4", "-medium"]
1403 self.exec(command)
1406 command = [self.binary, "-cl", inputFile, p2CompFile, "4x4", "-medium",
1408 self.exec(command)
1409 command = [self.binary, "-dl", p2CompFile, p2DecFile]
1410 self.exec(command)
1422 These tests are designed to test that bad inputs to the command line are
1425 Note that many tests are mutations of a valid positive test command line,
1426 to ensure that the base command line is valid before it is mutated many
1428 is actually a valid command line (otherwise we could be throwing an
1432 def exec(self, command, expectPass=False):
1444 command (list(str)): The command to execute.
1445 expectPass (bool): ``True`` if this command is actually expected to
1449 result = sp.run(command, stdout=sp.PIPE, stderr=sp.PIPE,
1465 print("\n" + " ".join(command))
1466 # Format for script command list replay
1467 print("\n" + ", ".join(("\"%s\"" % x for x in command)))
1488 def exec_with_omit(self, command, startOmit):
1490 Execute a negative test with command line argument omission.
1492 These tests aim to prove that the command fails if arguments are
1493 missing. However the passed command MUST be a valid command which
1499 * A partial command doesn't fail.
1500 * The full command doesn't pass.
1502 # Run the command, incrementally omitting arguments
1503 commandLen = len(command)
1505 omit = len(command) - subLen
1507 testCommand = command[:subLen]
1515 # Build a valid command
1516 command = [
1522 self.exec_with_omit(command, 2)
1528 # Build a valid command with a missing input file
1529 command = [
1535 self.exec(command)
1541 # Build a valid command with a missing input file
1542 command = [
1548 self.exec(command)
1554 # Build an otherwise valid command with the test flaw
1555 command = [
1561 self.exec(command)
1567 # Build an otherwise valid command with the test flaw
1568 command = [
1574 self.exec(command)
1580 # Build an otherwise valid command with the test flaw
1581 command = [
1587 self.exec(command)
1604 # Build an otherwise valid command with the test flaw
1605 command = [
1611 # Test that the underlying command is valid
1612 self.exec(command, True)
1614 blockIndex = command.index("4x4")
1617 command[blockIndex] = badSize
1618 self.exec(command)
1624 # Build an otherwise valid command with the test flaw
1625 command = [
1631 self.exec(command)
1637 # Build an otherwise valid command with the test flaw
1638 command = [
1644 self.exec(command)
1650 # Build an otherwise valid command with the test flaw
1655 command = [
1661 self.exec(command)
1667 # Build an otherwise valid command
1668 command = [
1674 # Run the command, incrementally omitting arguments
1675 self.exec_with_omit(command, 7)
1681 # Build a valid command
1682 command = [
1688 # Run the command, incrementally omitting arguments
1689 self.exec_with_omit(command, 2)
1695 # Build a valid command with a missing input file
1696 command = [
1702 self.exec(command)
1708 # Build an otherwise valid command with the test flaw
1709 command = [
1715 self.exec(command)
1721 # Build an otherwise valid command with the test flaw
1722 command = [
1728 self.exec(command)
1745 # Build an otherwise valid command with the test flaw
1746 command = [
1752 # Test that the underlying command is valid
1753 self.exec(command, True)
1755 blockIndex = command.index("4x4")
1758 command[blockIndex] = badSize
1759 self.exec(command)
1765 # Build an otherwise valid command with the test flaw
1766 command = [
1772 self.exec(command)
1778 # Build an otherwise valid command with the test flaw
1779 command = [
1785 self.exec(command)
1791 # Build a valid command
1792 command = [
1797 # Run the command, incrementally omitting arguments
1798 self.exec_with_omit(command, 2)
1804 # Build an otherwise valid command with the test flaw
1805 command = [
1810 self.exec(command)
1816 # Build a valid command
1817 command = [
1824 # Run the command, incrementally omitting arguments
1825 self.exec_with_omit(command, 7)
1831 # Build a valid command
1832 command = [
1839 # Run the command, incrementally omitting arguments
1840 self.exec_with_omit(command, 7)
1846 # Build a valid command
1847 command = [
1854 # Run the command, incrementally omitting arguments
1855 self.exec_with_omit(command, 7)
1861 # Build a valid command
1862 command = [
1869 # Run the command, incrementally omitting arguments
1870 self.exec_with_omit(command, 7)
1876 # Build a valid command
1877 command = [
1884 # Run the command, incrementally omitting arguments
1885 self.exec_with_omit(command, 7)
1891 # Build a valid command
1892 command = [
1899 # Run the command, incrementally omitting arguments
1900 self.exec_with_omit(command, 7)
1906 # Build a valid command
1907 command = [
1914 # Run the command, incrementally omitting arguments
1915 self.exec_with_omit(command, 7)
1922 # Build a valid command
1923 command = [
1930 # Run the command, incrementally omitting arguments
1931 self.exec_with_omit(command, 7)
1937 # Build a valid command
1938 command = [
1945 # Run the command, incrementally omitting arguments
1946 self.exec_with_omit(command, 7)
1952 # Build a valid command
1953 command = [
1960 # Run the command, incrementally omitting arguments
1961 self.exec_with_omit(command, 7)
1967 # Build a valid command
1968 command = [
1975 # Run the command, incrementally omitting arguments
1976 self.exec_with_omit(command, 7)
1982 # Build a valid command
1983 command = [
1990 # Run the command, incrementally omitting arguments
1991 self.exec_with_omit(command, 7)
1997 # Build a valid command
1998 command = [
2005 # Run the command, incrementally omitting arguments
2006 self.exec_with_omit(command, 7)
2012 # Build a valid command
2013 command = [
2020 # Run the command, incrementally omitting arguments
2021 self.exec_with_omit(command, 7)
2027 # Build a valid command
2028 command = [
2035 # Run the command, incrementally omitting arguments
2036 self.exec_with_omit(command, 7)
2056 # Build a valid base command
2057 command = [
2064 blockIndex = command.index("rgba")
2067 command[blockIndex] = badSwizzle
2068 self.exec(command)
2074 # Build a valid command
2075 command = [
2082 # Run the command, incrementally omitting arguments
2083 self.exec_with_omit(command, 7)
2100 # Build a valid base command
2101 command = [
2108 blockIndex = command.index("rgba")
2111 command[blockIndex] = badSwizzle
2112 self.exec(command)
2118 # Build a valid command
2119 command = [
2125 # Run the command, incrementally omitting arguments
2126 self.exec_with_omit(command, 5)
2146 # Build a valid base command
2147 command = [
2153 blockIndex = command.index("rgba")
2156 command[blockIndex] = badSwizzle
2157 self.exec(command)
2163 # Build a valid command
2164 command = [
2171 # Run the command, incrementally omitting arguments
2172 self.exec_with_omit(command, 7)