-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
63 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Compiling pie v0.1.0 (/pie) | ||
Finished dev [unoptimized + debuginfo] target(s) in 0.11s | ||
Finished dev [unoptimized + debuginfo] target(s) in 0.09s |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Compiling pie v0.1.0 (/pie) | ||
Finished dev [unoptimized + debuginfo] target(s) in 0.05s | ||
Finished dev [unoptimized + debuginfo] target(s) in 0.04s |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Compiling pie v0.1.0 (/pie) | ||
Finished dev [unoptimized + debuginfo] target(s) in 1.16s | ||
Finished dev [unoptimized + debuginfo] target(s) in 1.05s | ||
Running `/pie/target/debug/examples/incremental` | ||
A) New task: expect `read_task` to execute | ||
Reading from input.txt with Modified stamper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
Compiling pie v0.1.0 (/pie) | ||
Finished dev [unoptimized + debuginfo] target(s) in 0.79s | ||
Finished dev [unoptimized + debuginfo] target(s) in 0.66s | ||
Running `/pie/target/debug/examples/incremental` | ||
A) New task: expect `read_task` to execute | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
← Ok("Hi") | ||
|
||
B) Reuse: expect no execution | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
|
||
C) Inconsistent file dependency: expect `read_task` to execute | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
← Ok("Hello") | ||
|
||
D) New task, reuse other: expect only `write_task` to execute | ||
→ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)), "/tmp/.tmpTfXwzf/output.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
→ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)), "/tmp/.tmpto8R4J/output.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
← Ok("") | ||
|
||
E) Inconsistent file and task dependency: expect both tasks to execute | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
← Ok("Hello, World!") | ||
→ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)), "/tmp/.tmpTfXwzf/output.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
→ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)), "/tmp/.tmpto8R4J/output.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
← Ok("") | ||
|
||
F) Early cutoff: expect only `read_task` to execute | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
← Ok("Hello, World!") | ||
✓ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)), "/tmp/.tmpTfXwzf/output.txt", Modified)) | ||
✓ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)), "/tmp/.tmpto8R4J/output.txt", Modified)) | ||
|
||
G) Regenerate changed output file: expect only `write_task` to execute | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
→ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)), "/tmp/.tmpTfXwzf/output.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
→ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)), "/tmp/.tmpto8R4J/output.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
← Ok("") | ||
|
||
H) Regenerate deleted output file: expect only `write_task` to execute | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
→ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)), "/tmp/.tmpTfXwzf/output.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
→ WriteStringToFile(WriteStringToFile(ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)), "/tmp/.tmpto8R4J/output.txt", Modified)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input.txt", Modified)) | ||
← Ok("") | ||
|
||
I) Different tasks: expect `read_task_b_modified` and `read_task_b_exists` to execute | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input_b.txt", Modified)) | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input_b.txt", Modified)) | ||
← Ok("Test") | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input_b.txt", Exists)) | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input_b.txt", Exists)) | ||
← Ok("Test") | ||
|
||
J) Different stampers: expect only `read_task_b_modified` to execute | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input_b.txt", Modified)) | ||
→ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input_b.txt", Modified)) | ||
← Ok("Test Test") | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpTfXwzf/input_b.txt", Exists)) | ||
✓ ReadStringFromFile(ReadStringFromFile("/tmp/.tmpto8R4J/input_b.txt", Exists)) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters