forked from kelvinlawson/atomthreads
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/kelvinlawson/atomthreads
- Loading branch information
Showing
12 changed files
with
145 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env expect | ||
|
||
# Expect script to run an automated test within the AVR simulator (simavr) and | ||
# check for successful completion. | ||
# | ||
# Arguments: <path_to_simavr> <cpu_part> <test_elf_file> | ||
# | ||
# Returns 0 on successful test run within AVR simulator, 1 on failure | ||
|
||
|
||
# Start the test | ||
spawn [lindex $argv 0] -m [lindex $argv 1] [lindex $argv 2] | ||
|
||
# Expect to see the test starting within 10 seconds | ||
set timeout 10 | ||
|
||
# Wait for the test to start ("Go..") | ||
expect { | ||
"Go.." { | ||
puts "Test started" | ||
|
||
# The test could take up to 3 minutes to complete once started | ||
set timeout 180 | ||
|
||
# Now expect to see "Pass.." or "Fail" within 3 minutes | ||
expect { | ||
"Pass.." { puts "Test passed"; exit 0 } | ||
"Fail" { puts "Test failed"; exit 1 } | ||
timeout { puts "Test timed out without completing"; exit 1 } | ||
} | ||
} | ||
|
||
timeout { | ||
# Didn't receive "Go.." within 10 seconds | ||
puts "Test failed to start ('Go' not seen)" | ||
exit 1 | ||
} | ||
} | ||
|
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