From: John Darrington Date: Sat, 24 Oct 2015 09:10:26 +0000 (+0200) Subject: Add test to check that reading from a pipe works ok X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e41840a01ceb64b1a62752e7ebb891394de2ec8;p=pspp Add test to check that reading from a pipe works ok --- diff --git a/tests/data/file.at b/tests/data/file.at index 287f540f0b..4479a48017 100644 --- a/tests/data/file.at +++ b/tests/data/file.at @@ -83,3 +83,22 @@ pid=$! AT_CHECK([pspp -O format=csv file.sps], [0], [ignore]) AT_CLEANUP + + + +AT_SETUP([Reading from pipe]) + +AT_DATA([pipe.sps], [dnl +data list file='echo "1 2\n 3 4\n 5 6" |' notable list /x * y *. +list. +]) + +AT_CHECK([pspp -O format=csv pipe.sps], [0], [dnl +Table: Data List +x,y +1.00,2.00 +3.00,4.00 +5.00,6.00 +]) + +AT_CLEANUP