From 275c0a97f7adfe6705702aedaf1bc0e9fbe19f97 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 16 Oct 2019 12:10:53 -0500 Subject: Simple ps smoketest. --- tests/ps.test | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tests/ps.test diff --git a/tests/ps.test b/tests/ps.test new file mode 100755 index 00000000..e14336ff --- /dev/null +++ b/tests/ps.test @@ -0,0 +1,11 @@ +#!/bin/bash + +[ -f testing.sh ] && . testing.sh + +#testing "name" "command" "result" "infile" "stdin" + +ln -s "$(which sleep)" xiphoid +(./xiphoid 5 & echo $! > pid.txt) +ID=$(cat pid.txt) +NOSPACE=1 testing "" "ps -o pid $ID" "PID\n$ID\n" "" "" +kill "$ID" -- cgit v1.2.3