LTP posix parsing notes
This page has notes about posix parsing:
flow of execution [edit section]
- ltp_target_run.sh (PTSTESTS="SEM")
- STDOUT: ltp_target_run: doing test SEM
- run-posix-options-group-test.sh SEM
- OUT:pts.log: SEM: Executing semaphores tests
- run_option_group_tests conformance/interfaces/sem*
- find run.sh - execute it
- conformance/interfaces/sem_close/run.sh
- run-tests.sh conformance/interfaces/sem_close sem_close3-1.run-test sem_close_3-2.run-test sem_close_1-1.run-test sem_close_2-1.run-test
- allow LOGFILE override, otherwise use 'logfile'
- sh -c t0 sem_close3-1.run-test sem_close3-3.1.args >$complog
- sem_close-3.1.run-test
- STDOUT: TEST PASSED
- STDOUT: conformance/interfaces/sem_close/sem_close_3-1: execution: PASS
- sem_close-3.1.run-test
- STDOUT: (run-test.sh)
- **** Testing <dir> ****
- PASS, FAIL, TOTAL
- run-tests.sh conformance/interfaces/sem_close sem_close3-1.run-test sem_close_3-2.run-test sem_close_1-1.run-test sem_close_2-1.run-test
- conformance/interfaces/sem_close/run.sh
- find logfile:
- STDOUT: FOLDER: (dirname of logfile)
- OUT:pts.log: (contents of logfile) (Fuego-ism)
- find run.sh - execute it
STDOUT sample [edit section]
ltp_target_run: | SEM | ltp_target_run: doing test SEM ******************* Testing sem_close ******************* PASS 4 FAIL 0 ******************* TOTAL 4 ******************* ******************* Testing sem_destroy ******************* PASS 2 FAIL 0 ******************* TOTAL 2 ******************* ******************* Testing sem_getvalue ******************* PASS 5 FAIL 0 ******************* TOTAL 5 ******************* conformance/interfaces/sem_init/sem_init_7-1: execution: UNTESTED ******************* Testing sem_init ******************* PASS 9 FAIL 1 ******************* TOTAL 10 ******************* ******************* Testing sem_open ******************* PASS 12 FAIL 0 ******************* TOTAL 12 ******************* ******************* Testing sem_post ******************* PASS 7 FAIL 0 ******************* TOTAL 7 ******************* ******************* Testing sem_timedwait ******************* PASS 11 FAIL 0 ******************* TOTAL 11 ******************* ******************* Testing sem_unlink ******************* PASS 10 FAIL 0 ******************* TOTAL 10 ******************* ******************* Testing sem_wait ******************* PASS 8 FAIL 0 ******************* TOTAL 8 ******************* FOLDER: ./bin/../conformance/interfaces/sem_close FOLDER: ./bin/../conformance/interfaces/sem_destroy FOLDER: ./bin/../conformance/interfaces/sem_getvalue FOLDER: ./bin/../conformance/interfaces/sem_init FOLDER: ./bin/../conformance/interfaces/sem_open FOLDER: ./bin/../conformance/interfaces/sem_post FOLDER: ./bin/../conformance/interfaces/sem_timedwait FOLDER: ./bin/../conformance/interfaces/sem_unlink FOLDER: ./bin/../conformance/interfaces/sem_wait ****Tests Complete****
pts.log sample [edit section]
SEM:Executing semaphores tests conformance/interfaces/sem_close/sem_close_3-1: execution: PASS conformance/interfaces/sem_close/sem_close_3-2: execution: PASS conformance/interfaces/sem_close/sem_close_1-1: execution: PASS conformance/interfaces/sem_close/sem_close_2-1: execution: PASS conformance/interfaces/sem_destroy/sem_destroy_3-1: execution: PASS conformance/interfaces/sem_destroy/sem_destroy_4-1: execution: PASS conformance/interfaces/sem_getvalue/sem_getvalue_2-2: execution: PASS conformance/interfaces/sem_getvalue/sem_getvalue_1-1: execution: PASS conformance/interfaces/sem_getvalue/sem_getvalue_5-1: execution: PASS conformance/interfaces/sem_getvalue/sem_getvalue_2-1: execution: PASS conformance/interfaces/sem_getvalue/sem_getvalue_4-1: execution: PASS conformance/interfaces/sem_init/sem_init_2-2: execution: PASS conformance/interfaces/sem_init/sem_init_3-1: execution: PASS conformance/interfaces/sem_init/sem_init_3-2: execution: PASS conformance/interfaces/sem_init/sem_init_1-1: execution: PASS conformance/interfaces/sem_init/sem_init_5-2: execution: PASS conformance/interfaces/sem_init/sem_init_6-1: execution: PASS conformance/interfaces/sem_init/sem_init_5-1: execution: PASS conformance/interfaces/sem_init/sem_init_7-1: execution: UNTESTED: Output: [22:11:32]sysconf(_SC_SEM_NSEMS_MAX) = -1 [22:11:32]File ../../../conformance/interfaces/sem_init/7-1.c cannot test: There is no constraint on SEM_NSEMS_MAX conformance/interfaces/sem_init/sem_init_2-1: execution: PASS conformance/interfaces/sem_init/sem_init_3-3: execution: PASS conformance/interfaces/sem_open/sem_open_2-2: execution: PASS conformance/interfaces/sem_open/sem_open_15-1: execution: PASS conformance/interfaces/sem_open/sem_open_3-1: execution: PASS conformance/interfaces/sem_open/sem_open_1-1: execution: PASS conformance/interfaces/sem_open/sem_open_1-4: execution: PASS conformance/interfaces/sem_open/sem_open_1-3: execution: PASS conformance/interfaces/sem_open/sem_open_6-1: execution: PASS conformance/interfaces/sem_open/sem_open_5-1: execution: PASS conformance/interfaces/sem_open/sem_open_2-1: execution: PASS conformance/interfaces/sem_open/sem_open_10-1: execution: PASS conformance/interfaces/sem_open/sem_open_4-1: execution: PASS conformance/interfaces/sem_open/sem_open_1-2: execution: PASS conformance/interfaces/sem_post/sem_post_1-1: execution: PASS conformance/interfaces/sem_post/sem_post_6-1: execution: PASS conformance/interfaces/sem_post/sem_post_5-1: execution: PASS conformance/interfaces/sem_post/sem_post_2-1: execution: PASS conformance/interfaces/sem_post/sem_post_4-1: execution: PASS conformance/interfaces/sem_post/sem_post_8-1: execution: PASS conformance/interfaces/sem_post/sem_post_1-2: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_2-2: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_3-1: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_11-1: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_1-1: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_6-1: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_7-1: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_2-1: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_10-1: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_4-1: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_6-2: execution: PASS conformance/interfaces/sem_timedwait/sem_timedwait_9-1: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_2-2: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_3-1: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_1-1: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_6-1: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_5-1: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_7-1: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_2-1: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_4-1: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_4-2: execution: PASS conformance/interfaces/sem_unlink/sem_unlink_9-1: execution: PASS conformance/interfaces/sem_wait/sem_wait_3-1: execution: PASS conformance/interfaces/sem_wait/sem_wait_13-1: execution: PASS conformance/interfaces/sem_wait/sem_wait_11-1: execution: PASS conformance/interfaces/sem_wait/sem_wait_1-1: execution: PASS conformance/interfaces/sem_wait/sem_wait_12-1: execution: PASS conformance/interfaces/sem_wait/sem_wait_5-1: execution: PASS conformance/interfaces/sem_wait/sem_wait_7-1: execution: PASS conformance/interfaces/sem_wait/sem_wait_1-2: execution: PASS
logfile sample [edit section]
conformance/interfaces/sem_init/sem_init_2-2: execution: PASS conformance/interfaces/sem_init/sem_init_3-1: execution: PASS conformance/interfaces/sem_init/sem_init_3-2: execution: PASS conformance/interfaces/sem_init/sem_init_1-1: execution: PASS conformance/interfaces/sem_init/sem_init_5-2: execution: PASS conformance/interfaces/sem_init/sem_init_6-1: execution: PASS conformance/interfaces/sem_init/sem_init_5-1: execution: PASS conformance/interfaces/sem_init/sem_init_7-1: execution: UNTESTED: Output: [22:11:32]sysconf(_SC_SEM_NSEMS_MAX) = -1 [22:11:32]File ../../../conformance/interfaces/sem_init/7-1.c cannot test: There is no constraint on SEM_NSEMS_MAX conformance/interfaces/sem_init/sem_init_2-1: execution: PASS conformance/interfaces/sem_init/sem_init_3-3: execution: PASS