tests/test-run-tests.t
changeset 38235 b865bba56db1
parent 38234 507bdc40bb17
child 38257 f2e3196a34f9
equal deleted inserted replaced
38234:507bdc40bb17 38235:b865bba56db1
  1494   +  B
  1494   +  B
  1495    #if C
  1495    #if C
  1496      $ [ $V = C ]
  1496      $ [ $V = C ]
  1497    #endif
  1497    #endif
  1498   
  1498   
  1499   ERROR: test-cases-abc.t (case B) output changed
  1499   ERROR: test-cases-abc.t#B output changed
  1500   !.
  1500   !.
  1501   Failed test-cases-abc.t (case B): output changed
  1501   Failed test-cases-abc.t#B: output changed
  1502   # Ran 3 tests, 0 skipped, 1 failed.
  1502   # Ran 3 tests, 0 skipped, 1 failed.
  1503   python hash seed: * (glob)
  1503   python hash seed: * (glob)
  1504   [1]
  1504   [1]
  1505 
  1505 
  1506 --restart works
  1506 --restart works
  1517   +  B
  1517   +  B
  1518    #if C
  1518    #if C
  1519      $ [ $V = C ]
  1519      $ [ $V = C ]
  1520    #endif
  1520    #endif
  1521   
  1521   
  1522   ERROR: test-cases-abc.t (case B) output changed
  1522   ERROR: test-cases-abc.t#B output changed
  1523   !.
  1523   !.
  1524   Failed test-cases-abc.t (case B): output changed
  1524   Failed test-cases-abc.t#B: output changed
  1525   # Ran 2 tests, 0 skipped, 1 failed.
  1525   # Ran 2 tests, 0 skipped, 1 failed.
  1526   python hash seed: * (glob)
  1526   python hash seed: * (glob)
  1527   [1]
  1527   [1]
  1528 
  1528 
  1529 --restart works with outputdir
  1529 --restart works with outputdir
  1542   +  B
  1542   +  B
  1543    #if C
  1543    #if C
  1544      $ [ $V = C ]
  1544      $ [ $V = C ]
  1545    #endif
  1545    #endif
  1546   
  1546   
  1547   ERROR: test-cases-abc.t (case B) output changed
  1547   ERROR: test-cases-abc.t#B output changed
  1548   !.
  1548   !.
  1549   Failed test-cases-abc.t (case B): output changed
  1549   Failed test-cases-abc.t#B: output changed
  1550   # Ran 2 tests, 0 skipped, 1 failed.
  1550   # Ran 2 tests, 0 skipped, 1 failed.
  1551   python hash seed: * (glob)
  1551   python hash seed: * (glob)
  1552   [1]
  1552   [1]
  1553 
  1553 
  1554 Test TESTCASE variable
  1554 Test TESTCASE variable
  1571   ..
  1571   ..
  1572   # Ran 2 tests, 0 skipped, 0 failed.
  1572   # Ran 2 tests, 0 skipped, 0 failed.
  1573 
  1573 
  1574 Support running a specific test case
  1574 Support running a specific test case
  1575 
  1575 
  1576   $ rt "test-cases-abc.t (case B)"
  1576   $ rt "test-cases-abc.t#B"
  1577   
  1577   
  1578   --- $TESTTMP/anothertests/cases/test-cases-abc.t
  1578   --- $TESTTMP/anothertests/cases/test-cases-abc.t
  1579   +++ $TESTTMP/anothertests/cases/test-cases-abc.t.B.err
  1579   +++ $TESTTMP/anothertests/cases/test-cases-abc.t.B.err
  1580   @@ -7,7 +7,7 @@
  1580   @@ -7,7 +7,7 @@
  1581      $ V=C
  1581      $ V=C
  1585   +  B
  1585   +  B
  1586    #if C
  1586    #if C
  1587      $ [ $V = C ]
  1587      $ [ $V = C ]
  1588    #endif
  1588    #endif
  1589   
  1589   
  1590   ERROR: test-cases-abc.t (case B) output changed
  1590   ERROR: test-cases-abc.t#B output changed
  1591   !
  1591   !
  1592   Failed test-cases-abc.t (case B): output changed
  1592   Failed test-cases-abc.t#B: output changed
  1593   # Ran 1 tests, 0 skipped, 1 failed.
  1593   # Ran 1 tests, 0 skipped, 1 failed.
  1594   python hash seed: * (glob)
  1594   python hash seed: * (glob)
  1595   [1]
  1595   [1]
  1596 
  1596 
  1597 Support running multiple test cases in the same file
  1597 Support running multiple test cases in the same file
  1598 
  1598 
  1599   $ rt "test-cases-abc.t (case B)" "test-cases-abc.t (case C)"
  1599   $ rt test-cases-abc.t#B test-cases-abc.t#C
  1600   
  1600   
  1601   --- $TESTTMP/anothertests/cases/test-cases-abc.t
  1601   --- $TESTTMP/anothertests/cases/test-cases-abc.t
  1602   +++ $TESTTMP/anothertests/cases/test-cases-abc.t.B.err
  1602   +++ $TESTTMP/anothertests/cases/test-cases-abc.t.B.err
  1603   @@ -7,7 +7,7 @@
  1603   @@ -7,7 +7,7 @@
  1604      $ V=C
  1604      $ V=C
  1608   +  B
  1608   +  B
  1609    #if C
  1609    #if C
  1610      $ [ $V = C ]
  1610      $ [ $V = C ]
  1611    #endif
  1611    #endif
  1612   
  1612   
  1613   ERROR: test-cases-abc.t (case B) output changed
  1613   ERROR: test-cases-abc.t#B output changed
  1614   !.
  1614   !.
  1615   Failed test-cases-abc.t (case B): output changed
  1615   Failed test-cases-abc.t#B: output changed
  1616   # Ran 2 tests, 0 skipped, 1 failed.
  1616   # Ran 2 tests, 0 skipped, 1 failed.
  1617   python hash seed: * (glob)
  1617   python hash seed: * (glob)
  1618   [1]
  1618   [1]
  1619 
  1619 
  1620 Support running invalid test cases
  1620 Support running invalid test cases
  1621 
  1621 
  1622   $ rt "test-cases-abc.t (case B)" "test-cases-abc.t (case D)"
  1622   $ rt test-cases-abc.t#B test-cases-abc.t#D
  1623   
  1623   
  1624   --- $TESTTMP/anothertests/cases/test-cases-abc.t
  1624   --- $TESTTMP/anothertests/cases/test-cases-abc.t
  1625   +++ $TESTTMP/anothertests/cases/test-cases-abc.t.B.err
  1625   +++ $TESTTMP/anothertests/cases/test-cases-abc.t.B.err
  1626   @@ -7,7 +7,7 @@
  1626   @@ -7,7 +7,7 @@
  1627      $ V=C
  1627      $ V=C
  1631   +  B
  1631   +  B
  1632    #if C
  1632    #if C
  1633      $ [ $V = C ]
  1633      $ [ $V = C ]
  1634    #endif
  1634    #endif
  1635   
  1635   
  1636   ERROR: test-cases-abc.t (case B) output changed
  1636   ERROR: test-cases-abc.t#B output changed
  1637   !
  1637   !
  1638   Failed test-cases-abc.t (case B): output changed
  1638   Failed test-cases-abc.t#B: output changed
  1639   # Ran 1 tests, 0 skipped, 1 failed.
  1639   # Ran 1 tests, 0 skipped, 1 failed.
  1640   python hash seed: * (glob)
  1640   python hash seed: * (glob)
  1641   [1]
  1641   [1]
  1642 
  1642 
  1643 Test automatic pattern replacement
  1643 Test automatic pattern replacement