-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test files for fdatasync/fsync #338
Merged
Merged
Conversation
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
Closed
rennergade
approved these changes
Nov 17, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks for adding tests.
rennergade
added a commit
that referenced
this pull request
Feb 27, 2024
* add gunicorn py files (#269) Co-authored-by: lind <[email protected]> * epoll test and textfile (#274) * just the test and text file * with .py and slight change to test * fixing .py error Co-authored-by: lind <[email protected]> * add fchmod test to test suite (#275) * add fchmod test to test suite * fixing error message Co-authored-by: lind <[email protected]> * Fix Implicit Declarations warning in tests/test_cases/pread_pwrite.c (#282) * Add test cases for truncate and ftruncate (#283) * Add test case for truncate and ftruncate * Fix grammar mistake in error message * Update dettests.txt * Add fflush(NULL) after every print statement * Add a separate testfile for truncate.c * Add individual testfiles for different test cases * Fix pipepong.c and Add mutex.c (#286) * Fix pipepong.c and Add mutex.c * Fix indentation * Socketpair test (#290) * socketpair test * Added socketpair test in to dettests Co-authored-by: lind <[email protected]> * LAMP Scripts (#292) * setuptools * init * add setup tools * reorg * reorg * pr fix --------- Co-authored-by: lind <[email protected]> * Nacldesc scripts (#289) * update scripts * update scripts * Remove random prints from template.py and forkandopen.py (#295) * Net shutdown test case (#294) * [WIP]Setup threading and sockets * Incorrect version(passes in lind) * Add shutdown in fork test case * Add more comments * Add more comments and update nondet.txt * Add 1sec delay for synchronization and more verbose error messages * Use pthread barrier to sync up client and server in shutdown, socketselect, and socketepoll * Destroy closebarriers and add correctness checking in shutdown.py * small fix to epoll (#297) Co-authored-by: lind <[email protected]> * LAMP application and load scripts (#299) * add flask app and config files * Delete nginx.conf.backup --------- Co-authored-by: lind <[email protected]> * Simple web example (#300) * libffi bootstrap * Pared down webpage, trying to set up python to get ctypes working * Made ctypes compile properly --------- Co-authored-by: lind <[email protected]> * Fixed #301 libfii ctypes segfaulting (#304) * fixed #301 libfii ctypes segfaulting Signed-off-by: lind <[email protected]> * fix #301: update comments and load_python.sh Signed-off-by: lind <[email protected]> --------- Signed-off-by: lind <[email protected]> Co-authored-by: lind <[email protected]> * tests: IPC performance benchmark (#305) * tests: add IPC performance benchmark tests * tests: compilation scripts for IPC performance tests Signed-off-by: lind <[email protected]> * tests: userpipe test src files and compilation for IPC performance tests Signed-off-by: lind <[email protected]> --------- Signed-off-by: lind <[email protected]> * create pull_request_template.md (#309) * Tests of statfs/fstatfs (#312) * Add statfs test * Add fstatfs test * Statfs test file * fstatfs test file * Add to test suite * Update filepath * Update filename * Update * Update * Add new line * Add new line * Add check * Change to dettests * Make statfs/fstatfs work in test suite * Update typo * Update typo * Add new line and remove extra space * Refine format * Test files for mknod/fchdir/poll (#313) * Added Mknod, Fchdir and Poll Tests * Auto Test Done * Update fchdir.c Updated else clauses * Update dettests.txt * Update mknod.c * Update fchdir.c * Update poll.c * Update fchdir.c * Update fchdir.py * Delete mknod.c * Update dettests.txt * Update dettests.txt --------- Co-authored-by: lind <[email protected]> * Feature/new syscall tests cases (#306) * Implementd test for pipe2 syscall. * Implemented test for getifaddrs syscall. * Implemented test for getppid syscall. * Implemented test for mkdir and rmdir syscalls. * Implemented test for access syscall. * Updated getppid test to verify that pids match. * Renamed access test; changed print string. * Moved file name in creat_access test to #define clause. * Renamed rmdir test to mkdir_rmdir; moved dir name to #define clause. * Updated dettests.txt * Added pipe2.py to check pipe2 test output; updated nondet.txt * Added python script to verify getifaddrs; updated nondet.txt * Updated pipe2 output checking; added missing newlines at the end of test files. * Added newline characters at the end of files. * Added fflush after printfs. * Added fflushes. * Add include * Added flock test. (#315) * Added flock test. * Updated the flock test case to verify concurrent shared lock acquisition. * Added newline at end of file. * Fix Compilation Warning for flock.c * Update flock.c * fix: load libffi.so.5 in load_python.sh (#324) Signed-off-by: RusherRG <[email protected]> * Add Shared memory and semaphore tests (#323) * tests: add shared memory and semaphores tests Signed-off-by: RusherRG <[email protected]> * tests: add shared sempahores with multiple cages test Signed-off-by: RusherRG <[email protected]> * tests: add buffer detach and removalin shm sem tests Signed-off-by: RusherRG <[email protected]> * tests: remove prints in shm sem tests Signed-off-by: RusherRG <[email protected]> * tests: update sleeps in shm sem tests Signed-off-by: RusherRG <[email protected]> * tests: fix exits Signed-off-by: RusherRG <[email protected]> * tests: add semaphore fork tests Signed-off-by: RusherRG <[email protected]> * tests: make shm_sem_fork_t a non-deterministic test Signed-off-by: RusherRG <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> * tests: update regex in forkandopen.py (#325) Signed-off-by: RusherRG <[email protected]> * Flask app fix (#330) * fix: flask myproject.py sample app Signed-off-by: RusherRG <[email protected]> * chore: update run_lamp.sh Signed-off-by: RusherRG <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> * Add vscode instruction images (#334) * feat: add fast option to build rustposix in mklind (#335) Signed-off-by: lind <[email protected]> * Adding fdatasync test files and fixing flock warning (#338) Co-authored-by: lind <[email protected]> * Test files for sync_file_range (#340) * Adding fdatasync test files and fixing flock warning * Adding sync_file_range * Update dettests.txt * Update sync_file_range.c * Update sync_file_range.c * Update sync_file_range.c * Update sync_file_range.c --------- Co-authored-by: lind <[email protected]> * signal tests (#332) Co-authored-by: lind <[email protected]> * Uds tests (#333) * tests: uds test files Signed-off-by: RusherRG <[email protected]> * tests: uds tests update Signed-off-by: RusherRG <[email protected]> * chore: update mklind script Signed-off-by: RusherRG <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> Co-authored-by: Nicholas Renner <[email protected]> * Add signal handling implementation document (#351) --------- Signed-off-by: lind <[email protected]> Signed-off-by: RusherRG <[email protected]> Co-authored-by: lind <[email protected]> Co-authored-by: Justin Koe <[email protected]> Co-authored-by: Tian(Maxwell) Yang <[email protected]> Co-authored-by: jesings <[email protected]> Co-authored-by: Devansh Patel <[email protected]> Co-authored-by: Rushang Gajjal <[email protected]> Co-authored-by: Y. W <[email protected]> Co-authored-by: kuzeyardabulut <[email protected]> Co-authored-by: Keyur Panchal <[email protected]> Co-authored-by: Yaxuan-w <[email protected]> Co-authored-by: Mayank Ramnani <[email protected]>
yashaswi2000
pushed a commit
that referenced
this pull request
Mar 28, 2024
Co-authored-by: lind <[email protected]>
rennergade
added a commit
that referenced
this pull request
Mar 28, 2024
* add gunicorn py files (#269) Co-authored-by: lind <[email protected]> * epoll test and textfile (#274) * just the test and text file * with .py and slight change to test * fixing .py error Co-authored-by: lind <[email protected]> * add fchmod test to test suite (#275) * add fchmod test to test suite * fixing error message Co-authored-by: lind <[email protected]> * Add test cases for truncate and ftruncate (#283) * Add test case for truncate and ftruncate * Fix grammar mistake in error message * Update dettests.txt * Add fflush(NULL) after every print statement * Add a separate testfile for truncate.c * Add individual testfiles for different test cases * Fix pipepong.c and Add mutex.c (#286) * Fix pipepong.c and Add mutex.c * Fix indentation * Socketpair test (#290) * socketpair test * Added socketpair test in to dettests Co-authored-by: lind <[email protected]> * LAMP Scripts (#292) * setuptools * init * add setup tools * reorg * reorg * pr fix --------- Co-authored-by: lind <[email protected]> * Remove random prints from template.py and forkandopen.py (#295) * Net shutdown test case (#294) * [WIP]Setup threading and sockets * Incorrect version(passes in lind) * Add shutdown in fork test case * Add more comments * Add more comments and update nondet.txt * Add 1sec delay for synchronization and more verbose error messages * Use pthread barrier to sync up client and server in shutdown, socketselect, and socketepoll * Destroy closebarriers and add correctness checking in shutdown.py * small fix to epoll (#297) Co-authored-by: lind <[email protected]> * LAMP application and load scripts (#299) * add flask app and config files * Delete nginx.conf.backup --------- Co-authored-by: lind <[email protected]> * Simple web example (#300) * libffi bootstrap * Pared down webpage, trying to set up python to get ctypes working * Made ctypes compile properly --------- Co-authored-by: lind <[email protected]> * Fixed #301 libfii ctypes segfaulting (#304) * fixed #301 libfii ctypes segfaulting Signed-off-by: lind <[email protected]> * fix #301: update comments and load_python.sh Signed-off-by: lind <[email protected]> --------- Signed-off-by: lind <[email protected]> Co-authored-by: lind <[email protected]> * Tests of statfs/fstatfs (#312) * Add statfs test * Add fstatfs test * Statfs test file * fstatfs test file * Add to test suite * Update filepath * Update filename * Update * Update * Add new line * Add new line * Add check * Change to dettests * Make statfs/fstatfs work in test suite * Update typo * Update typo * Add new line and remove extra space * Refine format * Test files for mknod/fchdir/poll (#313) * Added Mknod, Fchdir and Poll Tests * Auto Test Done * Update fchdir.c Updated else clauses * Update dettests.txt * Update mknod.c * Update fchdir.c * Update poll.c * Update fchdir.c * Update fchdir.py * Delete mknod.c * Update dettests.txt * Update dettests.txt --------- Co-authored-by: lind <[email protected]> * Feature/new syscall tests cases (#306) * Implementd test for pipe2 syscall. * Implemented test for getifaddrs syscall. * Implemented test for getppid syscall. * Implemented test for mkdir and rmdir syscalls. * Implemented test for access syscall. * Updated getppid test to verify that pids match. * Renamed access test; changed print string. * Moved file name in creat_access test to #define clause. * Renamed rmdir test to mkdir_rmdir; moved dir name to #define clause. * Updated dettests.txt * Added pipe2.py to check pipe2 test output; updated nondet.txt * Added python script to verify getifaddrs; updated nondet.txt * Updated pipe2 output checking; added missing newlines at the end of test files. * Added newline characters at the end of files. * Added fflush after printfs. * Added fflushes. * Add include * Added flock test. (#315) * Added flock test. * Updated the flock test case to verify concurrent shared lock acquisition. * Added newline at end of file. * Fix Compilation Warning for flock.c * Update flock.c * fix: load libffi.so.5 in load_python.sh (#324) Signed-off-by: RusherRG <[email protected]> * Add Shared memory and semaphore tests (#323) * tests: add shared memory and semaphores tests Signed-off-by: RusherRG <[email protected]> * tests: add shared sempahores with multiple cages test Signed-off-by: RusherRG <[email protected]> * tests: add buffer detach and removalin shm sem tests Signed-off-by: RusherRG <[email protected]> * tests: remove prints in shm sem tests Signed-off-by: RusherRG <[email protected]> * tests: update sleeps in shm sem tests Signed-off-by: RusherRG <[email protected]> * tests: fix exits Signed-off-by: RusherRG <[email protected]> * tests: add semaphore fork tests Signed-off-by: RusherRG <[email protected]> * tests: make shm_sem_fork_t a non-deterministic test Signed-off-by: RusherRG <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> * tests: update regex in forkandopen.py (#325) Signed-off-by: RusherRG <[email protected]> * Flask app fix (#330) * fix: flask myproject.py sample app Signed-off-by: RusherRG <[email protected]> * chore: update run_lamp.sh Signed-off-by: RusherRG <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> * Adding fdatasync test files and fixing flock warning (#338) Co-authored-by: lind <[email protected]> * Test files for sync_file_range (#340) * Adding fdatasync test files and fixing flock warning * Adding sync_file_range * Update dettests.txt * Update sync_file_range.c * Update sync_file_range.c * Update sync_file_range.c * Update sync_file_range.c --------- Co-authored-by: lind <[email protected]> * signal tests (#332) Co-authored-by: lind <[email protected]> * Uds tests (#333) * tests: uds test files Signed-off-by: RusherRG <[email protected]> * tests: uds tests update Signed-off-by: RusherRG <[email protected]> * chore: update mklind script Signed-off-by: RusherRG <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> Co-authored-by: Nicholas Renner <[email protected]> * tests: add IPC performance tests (#353) * tests: formatting ipc_performance tests Signed-off-by: RusherRG <[email protected]> * tests: add optimization to ipc performance tests Signed-off-by: lind <[email protected]> * tests: update ipc performance test compile scripts Signed-off-by: lind <[email protected]> * tests: add buffer read write tests Signed-off-by: lind <[email protected]> * tests: add timers to buffer_read_write Signed-off-by: lind <[email protected]> * tests: update buffer read write scripts Signed-off-by: lind <[email protected]> * graphs * graphs * graphs * graphs * graphs * tests: add buffer_read_write times Signed-off-by: lind <[email protected]> * feat: add ping/pong inet test scripts Signed-off-by: lind <[email protected]> * feat: update ping/pong inet test scripts Signed-off-by: lind <[email protected]> * test: remove flamegraphs from buffer_read_write Signed-off-by: lind <[email protected]> * test: remove perf files from inet Signed-off-by: lind <[email protected]> * test: update syscall_ratios with plotting scripts Signed-off-by: lind <[email protected]> * test: update total_runtime with plotting scripts Signed-off-by: lind <[email protected]> * test: update buffer_read_write formatting Signed-off-by: lind <[email protected]> * test: update total_runtime formatting Signed-off-by: lind <[email protected]> * test: add README.md in buffer_read_write Signed-off-by: lind <[email protected]> * test: add README.md in inet Signed-off-by: lind <[email protected]> * test: add README.md for all the tests in ipc_performance_tests Signed-off-by: lind <[email protected]> * tests: remove target/ from ipc_performance_tests/total_runtime/scripts/userpipe Signed-off-by: lind <[email protected]> * tests: remove graphs Signed-off-by: lind <[email protected]> * tests: remove data output files from ipc performance tests Signed-off-by: lind <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> Signed-off-by: lind <[email protected]> Co-authored-by: lind <[email protected]> * tests: unix bash pipelines (#354) * tests: bash pipeline scripts Signed-off-by: RusherRG <[email protected]> * grep perf data Signed-off-by: RusherRG <[email protected]> * tests: chain of cats benchmark Signed-off-by: RusherRG <[email protected]> * tests: add scripts to benchmark coreutils pipelines on native and lind Signed-off-by: RusherRG <[email protected]> * update Signed-off-by: RusherRG <[email protected]> * tests: pipeline_tests cleanup Signed-off-by: RusherRG <[email protected]> * tests: reorganize pipeline-tests Signed-off-by: RusherRG <[email protected]> * tests: change extension of scripts Signed-off-by: lind <[email protected]> * tests: update pipeline_tests scripts Signed-off-by: lind <[email protected]> * tests: remove unnecessary files Signed-off-by: lind <[email protected]> * tests: update cat_bench.py Signed-off-by: lind <[email protected]> * tests: add README.md Signed-off-by: lind <[email protected]> * tests: add plotting scripts to pipeline_tests Signed-off-by: lind <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> Signed-off-by: lind <[email protected]> * tests: lamp stack (#356) * tests: lamp stack pgbench tests Signed-off-by: RusherRG <[email protected]> * tests: lamp stack profiling Signed-off-by: RusherRG <[email protected]> * tests: update lamp stack scripts Signed-off-by: RusherRG <[email protected]> * tests: fix lamp stack postgres queries Signed-off-by: RusherRG <[email protected]> * tests: chmod for lamp stack scripts Signed-off-by: RusherRG <[email protected]> * tests: lamp stack remove create.html Signed-off-by: RusherRG <[email protected]> * tests: native lamp stack updates Signed-off-by: RusherRG <[email protected]> * tests: make scripts executable Signed-off-by: RusherRG <[email protected]> * tests: add prints to pgbench run Signed-off-by: RusherRG <[email protected]> * tests: fixing lamp-stack tests and update sleep times Signed-off-by: lind <[email protected]> * tests: update nginx configuration Signed-off-by: lind <[email protected]> * tests: reformatting lamp stack tests Signed-off-by: lind <[email protected]> * tests: reformatting lamp stack tests Signed-off-by: lind <[email protected]> * tests: adding -O3 flag to postgres bootstrap_nacl Signed-off-by: lind <[email protected]> * tests: adding scripts for no postgres versions Signed-off-by: lind <[email protected]> * tests: update pgbench and profiling scripts Signed-off-by: lind <[email protected]> * tests: add no-flask test scripts Signed-off-by: lind <[email protected]> * tests: update no-flask test times Signed-off-by: lind <[email protected]> * tests: update flask app to restructure the data generation Signed-off-by: lind <[email protected]> * fix: nginx platform word size Signed-off-by: lind <[email protected]> * fix: use unix sockets for gunicorn Signed-off-by: lind <[email protected]> * feat: update pgbench scripts Signed-off-by: lind <[email protected]> * feat: add nginx only scripts Signed-off-by: lind <[email protected]> * feat: update lamp_stack scripts and files Signed-off-by: lind <[email protected]> * test: add scripts about select_accept Signed-off-by: lind <[email protected]> * tests: refactor pgbench tests Signed-off-by: lind <[email protected]> * tests: refactor profiling tests Signed-off-by: lind <[email protected]> * tests: refactor profiling select_accpet tests Signed-off-by: lind <[email protected]> * tests: update nginx scripts Signed-off-by: lind <[email protected]> * tests: add README.md and compile.sh to profiling Signed-off-by: lind <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> Signed-off-by: lind <[email protected]> * tests: Unix domain sockets (#355) * tests: formatting ipc_performance tests Signed-off-by: RusherRG <[email protected]> * uds ipc test and scripts * removing prints * push * tests: reorganize uds ipc tests Signed-off-by: RusherRG <[email protected]> * tests: update uds ipc tests to support more than 1GB data Signed-off-by: RusherRG <[email protected]> * tests: uds native test str(total_size) Signed-off-by: RusherRG <[email protected]> * tests: uds plot scripts Signed-off-by: RusherRG <[email protected]> * tests: update uds ipc test Signed-off-by: RusherRG <[email protected]> * tests: adding -O3 to uds tests Signed-off-by: lind <[email protected]> * tests: updating uds script to uds_send_recv Signed-off-by: lind <[email protected]> * chore: remove unnecessary files Signed-off-by: lind <[email protected]> * tests: cleanup uds tests Signed-off-by: lind <[email protected]> * tests: add README.md and plot scripts in uds Signed-off-by: lind <[email protected]> * tests: remove data output files from uds Signed-off-by: lind <[email protected]> --------- Signed-off-by: RusherRG <[email protected]> Signed-off-by: lind <[email protected]> Co-authored-by: lind <[email protected]> * Fix UDS tests after signal merge (#357) * updating submodules to latest commits for Merge into main --------- Signed-off-by: lind <[email protected]> Signed-off-by: RusherRG <[email protected]> Co-authored-by: lind <[email protected]> Co-authored-by: Justin Koe <[email protected]> Co-authored-by: Tian(Maxwell) Yang <[email protected]> Co-authored-by: jesings <[email protected]> Co-authored-by: Devansh Patel <[email protected]> Co-authored-by: Rushang Gajjal <[email protected]> Co-authored-by: Y. W <[email protected]> Co-authored-by: kuzeyardabulut <[email protected]> Co-authored-by: Keyur Panchal <[email protected]> Co-authored-by: Yaxuan-w <[email protected]> Co-authored-by: Mayank Ramnani <[email protected]> Co-authored-by: Yashaswi Makula <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces two new test cases for the fsync and fdatasync syscalls. The test files have been created and tested for validity. They will help us confirm the correct operation of these syscalls.
I also fixed the warnings of the flock.c file.
fsync.c
A new C source file,
fsync.c
, tests thefsync
system call functionality.fdatasync.c
We've introduced a C source file,
fdatasync.c
, to verify thefdatasync
system call.Type of change
How Has This Been Tested?
To reproduce the tests, follow these steps for each system call:
Test of fsync
fsync
-lind_project/tests/test_cases/fsync.c
fsync.c
inlindsh
withcompile tests/test_cases/fsync.c -o fsync.nexe
lindfs cp /home/lind/lind_project/fsync.nexe fsync.nexe
lindfs ls /
command.lind /fsync.nexe
Test of fdatasync
fdatasync
-lind_project/tests/test_cases/fdatasync.c
fdatasync.c
inlindsh
withcompile tests/test_cases/fdatasync.c -o fdatasync.nexe
lindfs cp /home/lind/lind_project/fdatasync.nexe fdatasync.nexe
lindfs mkdir automated_tests
command.lindfs ls /
command.lind /fdatasync.nexe
Checklist: