forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-launch.sh
More file actions
executable file
·27 lines (23 loc) · 865 Bytes
/
test-launch.sh
File metadata and controls
executable file
·27 lines (23 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"