mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 22:01:29 +00:00
* Fix a PAL unit test * Make the PAL unit tests fail properly if one that should work doesn't. * Get consistent indexes with and without graphene ipc module * A little debugging output for ltp flakiness. Seems to make things a little more stable. * A bugfix for issue #80. The migration is not complete when a file-backed VMA is larger than the file size, but the file size is not page-aligned. In Linux, if the file size is smaller than the mapped memory, accessing the remaining memory that is not backed by the file will trigger a SIGBUS. However, it is fine to access the remaining memory within the last page that still overlaps with file, and won't trigger a SIGBUS. This area is commonly used in ELF binary to store uninitialized, static variables. To improve fork latency, Graphene chooses to truncate the migration size as the file size, but missed the memory which belongs to the last file-backed page. The migration size should be aligned up to the page size. * Fix assertion lines in PAL and LibOS * Make sure the return code is correct for the LTP script, bump up some timeouts * Only run gipc tests when the module is loaded, for the purposes of getting CI to work. * Build fix
42 lines
1.5 KiB
Python
42 lines
1.5 KiB
Python
#!/usr/bin/python
|
|
|
|
import os, sys, mmap
|
|
from regression import Regression
|
|
|
|
loader = os.environ['PAL_LOADER']
|
|
|
|
regression = Regression(loader, "Socket")
|
|
|
|
regression.add_check(name="TCP Socket Creation",
|
|
check=lambda res: "TCP Creation 1 OK" in res[0].log)
|
|
|
|
regression.add_check(name="TCP Socket Connection",
|
|
check=lambda res: "TCP Connection 1 OK" in res[0].log)
|
|
|
|
regression.add_check(name="TCP Socket Transmission",
|
|
check=lambda res: "TCP Write 1 OK" in res[0].log and
|
|
"TCP Read 1: Hello World 1" in res[0].log and
|
|
"TCP Write 2 OK" in res[0].log and
|
|
"TCP Read 2: Hello World 2" in res[0].log)
|
|
|
|
regression.add_check(name="UDP Socket Creation",
|
|
check=lambda res: "UDP Creation 1 OK" in res[0].log)
|
|
|
|
regression.add_check(name="UDP Socket Connection",
|
|
check=lambda res: "UDP Connection 1 OK" in res[0].log)
|
|
|
|
regression.add_check(name="UDP Socket Transmission",
|
|
check=lambda res: "UDP Write 1 OK" in res[0].log and
|
|
"UDP Read 1: Hello World 1" in res[0].log and
|
|
"UDP Write 2 OK" in res[0].log and
|
|
"UDP Read 2: Hello World 2" in res[0].log)
|
|
|
|
regression.add_check(name="Bound UDP Socket Transmission",
|
|
check=lambda res: "UDP Write 3 OK" in res[0].log and
|
|
"UDP Read 3: Hello World 1" in res[0].log and
|
|
"UDP Write 4 OK" in res[0].log and
|
|
"UDP Read 4: Hello World 2" in res[0].log)
|
|
|
|
rv = regression.run_checks()
|
|
if rv: sys.exit(rv)
|