3 # Copyright (c) 2006 Robin Rosenberg
6 test_description
='Test floating a number of patches to the top of the stack
13 'Initialize the StGIT repository' \
15 stg new A -m "a" && echo A >a.txt && stg add a.txt && stg refresh &&
16 stg new B -m "b" && echo B >b.txt && stg add b.txt && stg refresh &&
17 stg new C -m "c" && echo C >c.txt && stg add c.txt && stg refresh &&
18 stg new D -m "d" && echo D >d.txt && stg add d.txt && stg refresh &&
19 stg new E -m "e" && echo E >e.txt && stg add e.txt && stg refresh &&
20 stg new F -m "f" && echo F >f.txt && stg add f.txt && stg refresh &&
21 stg new G -m "g" && echo G >g.txt && stg add g.txt && stg refresh &&
23 test "$(echo $(stg applied))" = "A B C D E F"
29 test "$(echo $(stg applied))" = "B C D E F A"
32 'Float A to top (noop)' \
34 test "$(echo $(stg applied))" = "B C D E F A"
39 test "$(echo $(stg applied))" = "D E F A B C"
44 test "$(echo $(stg applied))" = "D F B C E A"
49 test "$(echo $(stg applied))" = "D F B C A E"
54 test "$(echo $(stg applied))" = "D B C A E G F"