Age | Commit message (Collapse) | Author |
|
Sometimes the tests all pass, but UML crashes during the shutdown process itself:
As such we can't actually rely on the /proc/exitcode returned value.
Before this change (rarely):
##### 0 failed tests.
reboot: System halted
../kernel/tests/net/test/run_net_test.sh: line 431: 61682 Aborted (core dumped)
$KERNEL_BINARY umid=net_test mem=512M $blockdevice=$ROOTFS $netconfig $consolemode $cmdline 1>&2
stty: standard input: Inappropriate ioctl for device
Returning exit code 134.
With this change and an extra 'echo 134 > /proc/exitcode' at end of net_test.sh
(to simulate a UML crash):
##### 0 failed tests.
epollctl add err fd 3, Operation not permitted
epollctl add err fd 19, Operation not permitted
reboot: System halted
Warning: UML appears to have crashed after successfully executing the tests.
Info: retrieved exit code 0.
Returning exit code 0.
Normally:
##### 0 failed tests.
epollctl add err fd 3, Operation not permitted
epollctl add err fd 19, Operation not permitted
reboot: System halted
Info: retrieved exit code 0.
Returning exit code 0.
(I don't know why the epollctl add errors show up - but they don't appear to hurt.)
Some useful docs about UML kernel command line options at:
http://user-mode-linux.sourceforge.net/old/input.html
https://www.kernel.org/doc/html/latest/virt/uml/user_mode_linux_howto_v2.html
Tested: see above
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I37a67f140b5fa022f3dde97fbe45373df1a9a20d
Merged-In: I37a67f140b5fa022f3dde97fbe45373df1a9a20d
(cherrypicked from 0c89e40ce29b1908c546619e30e04fe5a6e6c6d2)
|
|
There is different between bionic (on-device tests) and glibc
(VM tests) around interpreting IPv4-mapped addresses. Bionic
don't convert mapped addresses into IPv4 addresses.
Bug: 130199266
Test: run_net_test.sh tcp_repair_test.py
Test: m kernel_net_tests && adb push &&
adb shell /data/nativetest64/kernel_net_tests/kernel_net_tests
Change-Id: I4705464a97c6daec36c69ce72cde58a8bc705929
Merged-In: I2b4c9f111f19dab4cfe29ce16ca130cdff2fba91
(cherry picked from commit f4599d1a1231dfaafe71ece2d7533fb8d8d5d21b)
|
|
am: d9968a1e8b
Change-Id: I9c0a50fe755ad8572577aa153e938efc699faeb6
|
|
am: f1a12c8650
Change-Id: I10de9552507519386bd8f3097e83ec3db0b5d4b9
|
|
am: 17f8bde848
Change-Id: Ic73d4307cf00db8cd8498d26b72f4063acb7548d
|
|
am: c4ff7b8187
Change-Id: I9540aebb1a8d549348f3f8d32235086217a637f0
|
|
am: 0192118a65
Change-Id: I5581677a5dae87aaa39aff21f5081e984bde02cb
|
|
am: a3196de82e
Change-Id: Ic21c28d28c01684f73de8c10df82e6a7d29082bf
|
|
This patch add tests to ensure tcp connection works correctly
in repair mode.
Bug: 114151147
Bug: 129463499
Test: run_net_test.sh tcp_repair_test.py
Change-Id: I91df2e4156002ea62073d7543071c02f11a1de60
|
|
Change-Id: I4fc3c95c5a0061f171b3c7f972b5c44ffb8cbe19
BUG: 129345239
|
|
This change refactors the logic to create parameterized tests in the
kernel unit tests. Logic for name generation is left to classes, while
common code for test injection is moved to the utility class
Bug: 66467511
Test: Ran net tests
Change-Id: I7eba57c616145246637beefac3aca16f9e2e899e
(cherry picked from commit ad7a31a77695b60bdcd223df568a2b921acc41b0)
|
|
am: 0508643812
am: ba594a073f
Change-Id: I2972f08b042ae8d2e768a47a208d3f7a6208eb7f
|
|
3037c36ff8
am: 9dc5d59b92
Change-Id: Id68aafabd39d54ab319af992b726a716f4a9b8d6
|
|
495e005433
am: f2a7312d73
Change-Id: Ib43da666376f2bc701b646ffd4e0b16bd7da5186
|
|
am: 0508643812
Change-Id: I117cbb02e30bdb00a68d88e10ac4511dfc5e9d6e
|
|
am: 3037c36ff8
Change-Id: I69ce12ac7bd9f3f4200049129f0c2d54f393ec5d
|
|
am: 495e005433
Change-Id: Ibb3ad419ba37a36e342988a6ba75638f3a1eb455
|
|
am: fab9a47146
Change-Id: Id8b330449f6499dc79274ca1a8b3dddf364820bf
|
|
am: 789dcf76b6
Change-Id: I914180168703df919411ba30c86e694de57afa2b
|
|
am: 2afd2efd83
Change-Id: I90e836262d3486be580b9241e2b4c0b2aa5d34aa
|
|
am: ede9fe3221
Change-Id: Ib28a03017157b18877bafce6373e065c77596c12
|
|
am: 9d0f5a9c55
Change-Id: I5aa450930cfb356d020029b57f3afeb50c6a33d5
|
|
am: 2e804885d5
Change-Id: I9d34f2f22b674f450737800f6a330eefa12b54af
|
|
bc960f3d0f am: b5779ea931
am: b58db794d5
Change-Id: I7b25303d4b50163d827c828ea6965d7279bb3d4f
|
|
am: 14b7fb1d05
Change-Id: Ie7b2e5707d27349dcb10cf515daffcd0d7adfbde
|
|
bc960f3d0f
am: b5779ea931
Change-Id: I2e81562befe707ddad1afc5f9477c9f2958eec61
|
|
am: de51b09901
Change-Id: I274460e9ce71e3d7be0257b124bad6790a1c114e
|
|
am: 03aa0a663f
Change-Id: Idd14c693f8febc52eddd2d4b8801d66fca95df80
|
|
am: bc960f3d0f
Change-Id: I3452175f875cdc6e92e348633b8b9c3216f31bd7
|
|
This resolves:
Running /host/all_tests.py
Traceback (most recent call last):
File "/host/all_tests.py", line 51, in <module>
import_module(name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/host/bpf_test.py", line 26, in <module>
from bpf import * # pylint: disable=wildcard-import
File "/host/bpf.py", line 41, in <module>
}[os.uname()[4] + "-" + platform.architecture()[0]]
KeyError: 'x86_64-32bit'
Bug: 126465735
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I64f246a4fd34c8a84e9c349957060d7d1be18175
|
|
Google shell style guide: https://google.github.io/styleguide/shell.xml
says to always use "${x}" instead of $x, and in general to double quote
everything (fixes issues with whitespace in variable expansions).
Similarly [[ is bash builtin, unlike [ or test.
Bug: 126465735
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I507ceb630e7dd7347783e499826dcce2c2c50ee5
|
|
This is a fix for:
/sbin/net_test.sh: line 33: ./net_test.sh: No such file or directory
not resulting in a test error (android common 3.18/4.4 on stretch rootfs)
Bug: 126465735
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ib6c9698e98cec39eadcb371b5241241541e276d9
|
|
Bug: 126465735
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I64cf43e0522515a915d8e6b95fc73e50518683a4
|
|
Bug: 126465735
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I63b719e252dde32be3996a6c9747d116650c6b7e
|
|
Bug: 126465735
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8ebb926ab6ce8f09baeec65861a23c8c4a59acff
|
|
ccad07c91f am: dce2437344
am: d4038d5017
Change-Id: I52a85a239e71fd69391c6faeb899def8db6b0340
|
|
ccad07c91f
am: dce2437344
Change-Id: I1a3c0d7b12ce41ecde7d7a2e10ffb78f60bbb4e1
|
|
am: ccad07c91f
Change-Id: I95378d29a718d542f1510f3db94c1cf605522c53
|
|
Tested via:
ARCH=um SUBARCH=x86_64 WERROR=0 /aosp-tests/net/test/run_net_test.sh --builder all_tests.py
Bug: 117102691
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I694e361bc478cdb53da19b7669e3aa2a42793cd9
|
|
1b384ccf3d am: 0e80d0648c
am: e6b2ce28f8
Change-Id: I5bc74acf471631dcd64c5cdd0d31f08627551780
|
|
am: 0e80d0648c
Change-Id: Ie2ee9b23d86be317f6696b42de4ea0dba091e4a0
|
|
am: 1ffe120dd3
Change-Id: Id64eaebeb8d5a97bbdf23a12f773c58a412b7277
|
|
am: 1b384ccf3d
Change-Id: Icc92b0e2703edddf8a57db5652568bb0a543f01f
|
|
am: 0ee596ee82
Change-Id: Icb5057d700d795fd121dbd033be80fc32632b0ab
|
|
am: e9e18054c2
Change-Id: Ibc78572f6c183f44145d70f4b81fbb770a8feefa
|
|
Bug: 126465735
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I5a748479cb48e7bef33717d82e79348be97e5cd2
|
|
Bug: 126465735
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8b980a5830e85cd5c4fd8d123c9911cfdf4daea7
|
|
pie-vts-dev am: 1bc6e4fcff am: 03fd483c6c -s ours
am: b9921e93cf
Change-Id: I064bbe244789c8b5e946bc03a72971a95f4b68d6
|
|
pie-vts-dev am: 1bc6e4fcff
am: 03fd483c6c -s ours
am skip reason: SHA1 03fd483c6c skipped by user lorenzo
Change-Id: I8bd3f5926c810327f22cdac0f4b061a58a13c49c
|
|
am: 1bc6e4fcff
Change-Id: I73a432fe62b529f181db5e37935135958ede2ce9
|