--- /dev/null
+test: shm headers
+------ Shared Memory Attach/Detach/Change Times --------
+shmid owner attached detached changed
+------ Shared Memory Creator/Last-op --------
+shmid owner cpid lpid
+------ Shared Memory Segment Creators/Owners --------
+shmid perms cuid cgid uid gid
+------ Shared Memory Limits --------
+------ Shared Memory Status --------
+
+test: mesg headers
+------ Message Queues Send/Recv/Change Times --------
+msqid owner send recv change
+------ Message Queues PIDs --------
+msqid owner lspid lrpid
+------ Message Queues: Creators/Owners --------
+msqid perms cuid cgid uid gid
+------ Messages: Limits --------
+------ Messages: Status --------
+
+test: sem headers
+------ Shared Memory Operation/Change Times --------
+shmid owner last-op last-changed
+------ Semaphore Arrays Creators/Owners --------
+semid perms cuid cgid uid gid
+------ Semaphore Limits --------
+------ Semaphore Status --------
+
+test: all headers
+------ Shared Memory Segments --------
+key shmid owner perms bytes nattch status
+--
+------ Semaphore Arrays --------
+key semid owner perms nsems
+--
+------ Message Queues --------
+key msqid owner perms used-bytes messages
+------ Shared Memory Attach/Detach/Change Times --------
+shmid owner attached detached changed
+--
+------ Shared Memory Operation/Change Times --------
+shmid owner last-op last-changed
+--
+------ Message Queues Send/Recv/Change Times --------
+msqid owner send recv change
+------ Shared Memory Creator/Last-op --------
+shmid owner cpid lpid
+--
+------ Message Queues PIDs --------
+msqid owner lspid lrpid
+------ Shared Memory Segment Creators/Owners --------
+shmid perms cuid cgid uid gid
+--
+------ Semaphore Arrays Creators/Owners --------
+semid perms cuid cgid uid gid
+--
+------ Message Queues: Creators/Owners --------
+msqid perms cuid cgid uid gid
+------ Shared Memory Limits --------
+------ Semaphore Limits --------
+------ Messages: Limits --------
+------ Shared Memory Status --------
+------ Semaphore Status --------
+------ Messages: Status --------
--- /dev/null
+#!/bin/bash
+
+. commands.sh
+. functions.sh
+
+TS_COMPONENT="ipcs"
+TS_DESC="headers"
+
+ts_init
+
+touch $TS_OUTPUT
+
+echo "test: shm headers" >> $TS_OUTPUT
+$TS_CMD_IPCS -m -t | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -m -p | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -m -c | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -m -l | grep "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -m -u | grep "^---" >> $TS_OUTPUT
+echo >> $TS_OUTPUT
+
+echo "test: mesg headers" >> $TS_OUTPUT
+$TS_CMD_IPCS -q -t | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -q -p | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -q -c | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -q -l | grep "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -q -u | grep "^---" >> $TS_OUTPUT
+echo >> $TS_OUTPUT
+
+echo "test: sem headers" >> $TS_OUTPUT
+$TS_CMD_IPCS -s -t | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -s -p | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -s -c | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -s -l | grep "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -s -u | grep "^---" >> $TS_OUTPUT
+echo >> $TS_OUTPUT
+
+echo "test: all headers" >> $TS_OUTPUT
+$TS_CMD_IPCS -a | grep --after-context=1 "^---" >> $TS_OUTPUT
+
+$TS_CMD_IPCS -a -t | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -a -p | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -a -c | grep --after-context=1 "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -a -l | grep "^---" >> $TS_OUTPUT
+$TS_CMD_IPCS -a -u | grep "^---" >> $TS_OUTPUT
+
+ts_finalize
+