File tree 4 files changed +4
-25
lines changed 4 files changed +4
-25
lines changed Original file line number Diff line number Diff line change 1
- # The first two steps are just as in cli-diff-images. Dump images from
2
- # a trace into an empty directory.
3
-
4
- rm_and_mkdir ./tri-out
5
- apitrace dump-images --call-nos=no -o ./tri-out/tri tri.trace
6
-
7
- # Compare the dumped image with a doctored image to provoke a failure.
8
- # The EXPECT_FAILURE attribute causes the test driver to look for a
9
- # non-zero return value from apitrace and fail the test if it is not
10
- # seen.
11
-
12
- EXPECT_FAILURE: apitrace diff-images -v ./tri-ref-mismatch ./tri-out
1
+ EXPECT_FAILURE: apitrace diff-images --verbose images/white-1x1/ images/black-1x1/
13
2
14
3
# In addition to getting the return value indicating an error, let's
15
4
# also require that "apitrace diff-images" gave us the output we
16
5
# expect.
17
6
18
- expect "Comparing ./tri-ref-mismatch/tri0000000000 .png and ./tri-out/tri0000000000 .png ... MISMATCH\n"
7
+ expect "Comparing images/white-1x1/0 .png and images/black-1x1/0 .png ... MISMATCH\n"
Original file line number Diff line number Diff line change 1
- # Make a directory for the output images
2
-
3
- rm_and_mkdir ./tri-out
4
-
5
- # Generate images for every frame (only 1) of a trace
6
-
7
- apitrace dump-images --call-nos=no -o ./tri-out/tri tri.trace
8
-
9
- # Compare the result of "apitrace dump-images" with our reference
10
-
11
- apitrace diff-images -v ./tri-ref ./tri-out
1
+ apitrace diff-images --verbose images/white-1x1/ images/white-1x1/
12
2
13
3
# Ensure that the "apitrace diff-images" actually did something. This
14
4
# is important since if it couldn't find images in one directory or
15
5
# the other then it would just silently return 0 and this test would
16
6
# incorrectly pass.
17
7
18
- expect "Comparing ./tri-ref/tri0000000000 .png and ./tri-out/tri0000000000 .png ... MATCH\n"
8
+ expect "Comparing images/white-1x1/0 .png and images/white-1x1/0 .png ... MATCH\n"
You can’t perform that action at this time.
0 commit comments