1f08c3bdfSopenharmony_cifreeze_cancel.sh 2f08c3bdfSopenharmony_ci This bash script tests freezer code by starting a long sleep process. 3f08c3bdfSopenharmony_ci We initially try to freeze the cgroup but then try to cancel that. 4f08c3bdfSopenharmony_ci After we cancel the sleep process should eventually reach the thawed 5f08c3bdfSopenharmony_ci state. We expect the process to still be alive as we cleanup the test. 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_cifreeze_kill_thaw.sh 8f08c3bdfSopenharmony_ci This bash script tests freezer code by starting a long sleep process. 9f08c3bdfSopenharmony_ci The sleep process is frozen. We then kill the sleep process. 10f08c3bdfSopenharmony_ci Then we unfreeze the sleep process and see what happens. We expect the 11f08c3bdfSopenharmony_ci sleep process to receive the kill signals and exit almost immediately 12f08c3bdfSopenharmony_ci after the cgroup is thawed. 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_cifreeze_move_thaw.sh 15f08c3bdfSopenharmony_ci This bash script tests freezer code by starting a long sleep process. 16f08c3bdfSopenharmony_ci The sleep process is frozen. We then move the sleep process to a THAWED 17f08c3bdfSopenharmony_ci cgroup. We expect moving the sleep process to fail. 18f08c3bdfSopenharmony_ci 19f08c3bdfSopenharmony_cifreeze_self_thaw.sh 20f08c3bdfSopenharmony_ci This bash script tests freezer code by starting a long subshell process. 21f08c3bdfSopenharmony_ci The subshell process sleeps and then freezes the control group it is a 22f08c3bdfSopenharmony_ci part of. We then thaw the subshell process. We expect the unthawed 23f08c3bdfSopenharmony_ci subshell process to need cleanup afterwards (allows us to test 24f08c3bdfSopenharmony_ci successful thawing). 25f08c3bdfSopenharmony_ci 26f08c3bdfSopenharmony_cifreeze_sleep_thaw.sh 27f08c3bdfSopenharmony_ci This bash script tests freezer code by starting a long sleep process. 28f08c3bdfSopenharmony_ci The sleep process is frozen. We then wait until the sleep process should 29f08c3bdfSopenharmony_ci have exited. Then we unfreeze the sleep process. We expect the 30f08c3bdfSopenharmony_ci sleep process to wakeup almost immediately after the cgroup is thawed, 31f08c3bdfSopenharmony_ci recognize that its expiration time has long since passed, and exit 32f08c3bdfSopenharmony_ci before we get a chance to "see" it again. 33f08c3bdfSopenharmony_ci 34f08c3bdfSopenharmony_cifreeze_thaw.sh 35f08c3bdfSopenharmony_ci This bash script tests freezer code by starting a long sleep process. 36f08c3bdfSopenharmony_ci The sleep process is frozen. We then thaw the process before it exits. 37f08c3bdfSopenharmony_ci We expect the process to still be alive as we cleanup the test. 38f08c3bdfSopenharmony_ci 39f08c3bdfSopenharmony_cifreeze_write_freezing.sh 40f08c3bdfSopenharmony_ci Freeze the cgroup and then make sure that writing "FREEZING" into 41f08c3bdfSopenharmony_ci freezer.state reports an error (EIO) and doesn't change the freezer's 42f08c3bdfSopenharmony_ci state (which was "FROZEN"). 43f08c3bdfSopenharmony_ci 44f08c3bdfSopenharmony_cistop_freeze_sleep_thaw_cont.sh 45f08c3bdfSopenharmony_ci This bash script tests freezer code by starting a long sleep process. 46f08c3bdfSopenharmony_ci The sleep process is stopped and then frozen. We then thaw the process 47f08c3bdfSopenharmony_ci after it normally would have exited. 48f08c3bdfSopenharmony_ci We expect the process to still be around as we cleanup the test. 49f08c3bdfSopenharmony_ci 50f08c3bdfSopenharmony_cistop_freeze_thaw_cont.sh 51f08c3bdfSopenharmony_ci This bash script tests freezer code by starting a long sleep process. 52f08c3bdfSopenharmony_ci The sleep process is stopped and then frozen. We then thaw the process 53f08c3bdfSopenharmony_ci before it normally would have exited. 54f08c3bdfSopenharmony_ci We expect the process to still be around as we cleanup the test. 55f08c3bdfSopenharmony_ci 56f08c3bdfSopenharmony_civfork_freeze.sh 57f08c3bdfSopenharmony_ci This bash script tests freezer code by starting a process with vfork(2). 58f08c3bdfSopenharmony_ci vfork causes the freezer to wait until the vfork call "returns" to the 59f08c3bdfSopenharmony_ci parent. We need the vfork test binary -- ensure it's been built. 60f08c3bdfSopenharmony_ci 61f08c3bdfSopenharmony_ciwrite_freezing.sh 62f08c3bdfSopenharmony_ci Try to write "FREEZING" into the freezer.state while freezer.state == 63f08c3bdfSopenharmony_ci "THAWED". This should result in an error (EIO) and should not change 64f08c3bdfSopenharmony_ci the freezer state. 65f08c3bdfSopenharmony_ci 66f08c3bdfSopenharmony_cifork_freeze.sh 67f08c3bdfSopenharmony_ci A task within the cgroup to be frozen tries to fork. 68