-
-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added stress test for launching app to detect CEF initialization fail…
…ure on Linux. See Issue 131.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# Usage: ./test-launch.sh 500 | ||
|
||
# When launching this test script more than once in current | ||
# Linux session then the CEF initialization issue is hard | ||
# to reproduce. The best results are when launching tests | ||
# in a clean Ubuntu session, just log out and log in again, | ||
# and run the test immediately. You could also run a few | ||
# terminal sessions with several test scripts running | ||
# simultaneously to simulate heavy overload. | ||
|
||
for ((i = 1; i <= $1; i++)); do | ||
output=$(python ./../cef3/wx-subpackage/examples/sample2.py test-launch) | ||
code=$? | ||
if [[ $code != 0 || $output != *b8ba7d9945c22425328df2e21fbb64cd* ]]; then | ||
echo "EXIT CODE: $code" | ||
echo "OUTPUT: $output" | ||
echo "ERROR!" | ||
read -p "Press ENTER to exit" | ||
exit $code | ||
fi | ||
echo RUN $i OK | ||
done | ||
|
||
echo TEST SUCCEEDED | ||
read -p "Press ENTER to exit" |