1 AT_BANNER([system file reader - positive])
3 AT_SETUP([variable labels and missing values])
4 AT_KEYWORDS([sack synthetic system file positive])
5 AT_DATA([sys-file.sack], [dnl
7 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
9 22; dnl Nominal case size
14 "01 Jan 11"; "20:53:52";
15 "PSPP synthetic test file: "; i8 244; i8 245; i8 246; i8 248; s34 "";
18 dnl Numeric variable, no label or missing values.
19 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
21 dnl Numeric variable, variable label.
22 2; 0; 1; 0; 0x050800 *2; s8 "NUM2";
23 32; "Numeric variable 2's label ("; i8 249; i8 250; i8 251; ")";
25 dnl Numeric variable, one missing value.
26 2; 0; 0; 1; 0x050800 *2; s8 "NUM3";
29 dnl Numeric variable, variable label and missing value.
30 2; 0; 1; 1; 0x050800 *2; s8 "NUM4";
31 30; "Another numeric variable label"; i8 0 * 2;
34 dnl Numeric variable, two missing values.
35 2; 0; 0; 2; 0x050800 *2; s8 "NUM5"; 1.0; 2.0;
37 dnl Numeric variable, three missing values.
38 2; 0; 0; 3; 0x050800 *2; s8 "NUM6"; 1.0; 2.0; 3.0;
40 dnl Numeric variable, range of missing values.
41 2; 0; 0; -2; 0x050800 *2; s8 "NUM7"; 1.0; 3.0;
43 dnl Numeric variables, range of missing values plus discrete value.
44 2; 0; 0; -3; 0x050800 *2; s8 "NUM8"; 1.0; 3.0; 5.0;
45 2; 0; 0; -3; 0x050800 *2; s8 "NUM9"; 1.0; HIGHEST; -5.0;
46 2; 0; 0; -3; 0x050800 *2; "NUM"; i8 192; i8 200; i8 204; i8 209; i8 210;
49 dnl String variable, no label or missing values.
50 2; 4; 0; 0; 0x010400 *2; s8 "STR1";
52 dnl String variable, variable label.
53 2; 4; 1; 0; 0x010400 *2; s8 "STR2";
54 25; "String variable 2's label"; i8 0 * 3;
56 dnl String variable, one missing value.
57 2; 4; 0; 1; 0x010400 *2; s8 "STR3"; s8 "MISS";
59 dnl String variable, variable label and missing value.
60 2; 4; 1; 1; 0x010400 *2; s8 "STR4";
61 29; "Another string variable label"; i8 0 * 3;
64 dnl String variable, two missing values.
65 2; 4; 0; 2; 0x010400 *2; s8 "STR5"; s8 "MISS"; s8 "OTHR";
67 dnl String variable, three missing values.
68 2; 4; 0; 3; 0x010400 *2; s8 "STR6"; s8 "MISS"; s8 "OTHR"; s8 "MORE";
70 dnl Long string variable, one missing value.
71 2; 11; 0; 1; 0x010b00 *2; s8 "STR7"; "first8by";
72 2; -1; 0; 0; 0; 0; s8 "";
74 dnl Long string variable, value label.
75 2; 25; 1; 0; 0x011900 *2; s8 "STR8"; 14; "25-byte string"; i8 0 * 2;
76 ( 2; -1; 0; 0; 0; 0; s8 ""; ) * 2;
77 dnl Variable label fields on continuation records have been spotted in system
78 dnl files created by "SPSS Power Macintosh Release 6.1".
79 2; -1; 1; 0; 0; 0; s8 ""; 20; "dummy variable label";
81 dnl Machine integer info record.
82 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
84 dnl Machine floating-point info record.
85 7; 4; 8; 3; SYSMIS; HIGHEST; LOWEST;
87 dnl Character encoding record.
88 7; 20; 1; 12; "windows-1252";
90 dnl Dictionary termination record.
94 1.0; 2.0; 3.0; 4.0; 5.0; 6.0; 7.0; 8.0; 9.0; 10.0;
95 s8 "abcd"; s8 "efgh"; s8 "ijkl"; s8 "mnop"; s8 "qrst"; s8 "uvwx";
96 s16 "yzABCDEFGHI"; s32 "JKLMNOPQRSTUVWXYZ01234567";
99 "be 94338da4d8d44244d43f31e2ea4d0a6a" \
100 "le e3e7eefb984b81be5531b579293cb127"
103 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
105 AT_DATA([sys-file.sps], [dnl
106 GET FILE='sys-file.sav'.
111 AT_CHECK([pspp -o pspp.csv sys-file.sps])
112 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
113 File label: PSPP synthetic test file: ôõöø
115 Variable,Description,,Position
117 num2,Numeric variable 2's label (ùúû),,2
121 num4,Another numeric variable label,,4
125 ,Missing Values: 1; 2,,
127 ,Missing Values: 1; 2; 3,,
129 ,Missing Values: 1 THRU 3,,
131 ,Missing Values: 1 THRU 3; 5,,
133 ,Missing Values: 1 THRU HIGHEST; -5,,
134 numàèìñò,Format: F8.0,,10
135 ,Missing Values: LOWEST THRU 1; 5,,
137 str2,String variable 2's label,,12
140 ,"Missing Values: ""MISS""",,
141 str4,Another string variable label,,14
143 ,"Missing Values: ""OTHR""",,
145 ,"Missing Values: ""MISS""; ""OTHR""",,
147 ,"Missing Values: ""MISS""; ""OTHR""; ""MORE""",,
149 ,"Missing Values: ""first8by""",,
150 str8,25-byte string,,18
154 num1,num2,num3,num4,num5,num6,num7,num8,num9,numàèìñò,str1,str2,str3,str4,str5,str6,str7,str8
155 1,2,3,4,5,6,7,8,9,10,abcd,efgh,ijkl,mnop,qrst,uvwx,yzABCDEFGHI,JKLMNOPQRSTUVWXYZ01234567
160 AT_SETUP([unspecified number of variable positions])
161 AT_KEYWORDS([sack synthetic system file positive])
162 AT_DATA([sys-file.sack], [dnl
164 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
166 -1; dnl Nominal case size (unspecified)
167 0; dnl Not compressed
171 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
174 dnl Numeric variable, no label or missing values.
175 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
177 dnl Numeric variable, variable label.
178 2; 0; 1; 0; 0x050800 *2; s8 "NUM2";
179 26; "Numeric variable 2's label"; i8 0 *2;
181 dnl Dictionary termination record.
188 "be 413e7bc80a47fcd7e4c8020e8e120060" \
189 "le d7db9120b1ff28c83aa6fe9fc405d903"
192 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
194 AT_DATA([sys-file.sps], [dnl
195 GET FILE='sys-file.sav'.
199 AT_CHECK([pspp -o pspp.csv sys-file.sps])
200 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
201 Variable,Description,,Position
203 num2,Numeric variable 2's label,,2
213 AT_SETUP([wrong number of variable positions but version 13])
214 AT_KEYWORDS([sack synthetic system file positive])
215 AT_DATA([sys-file.sack], [dnl
217 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
219 -1; dnl Nominal case size (unspecified)
220 0; dnl Not compressed
224 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
227 dnl Numeric variable, no label or missing values.
228 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
230 dnl Numeric variable, variable label.
231 2; 0; 1; 0; 0x050800 *2; s8 "NUM2";
232 26; "Numeric variable 2's label"; i8 0 *2;
234 dnl Machine integer info record (SPSS 13).
235 7; 3; 4; 8; 13; 2; 3; -1; 1; 1; ENDIAN; 1252;
237 dnl Dictionary termination record.
244 "be 3d17aae7d99538dc73c5cb42692b1038" \
245 "le 8ad1000df598617d5258f323c882d749"
248 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
250 AT_DATA([sys-file.sps], [dnl
251 GET FILE='sys-file.sav'.
255 AT_CHECK([pspp -o pspp.csv sys-file.sps])
256 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
257 Variable,Description,,Position
259 num2,Numeric variable 2's label,,2
269 AT_SETUP([value labels])
270 AT_KEYWORDS([sack synthetic system file positive])
271 AT_DATA([sys-file.sack], [dnl
273 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
275 22; dnl Nominal case size
276 0; dnl Not compressed
280 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
283 dnl Numeric variables.
284 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
285 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
286 2; 0; 0; 0; 0x050800 *2; s8 "NUM3";
287 2; 0; 0; 0; 0x050800 *2; s8 "NUM4";
288 2; 0; 0; 0; 0x050800 *2; s8 "NUM5";
290 dnl String variables.
291 2; 1; 0; 0; 0x010100 *2; s8 "STR1"; dnl index 6
292 2; 2; 0; 0; 0x010200 *2; s8 "STR2"; dnl index 7
293 2; 3; 0; 0; 0x010300 *2; s8 "STR3"; dnl index 8
294 2; 4; 0; 0; 0x010400 *2; s8 "STR4"; dnl index 9
295 2; 4; 0; 0; 0x010400 *2; s8 "STR5"; dnl index 10
296 2; 6; 0; 0; 0x010600 *2; s8 "STR6"; dnl index 11
297 2; 7; 0; 0; 0x010700 *2; s8 "STR7"; dnl index 12
298 2; 8; 0; 0; 0x010800 *2; s8 "STR8"; dnl index 13
299 2; 9; 0; 0; 0x010900 *2; "STR9"; i8 230; s3 ""; dnl index 14
300 2; -1; 0; 0; 0; 0; s8 "";
301 2; 12; 0; 0; 0x010c00 *2; s8 "STR12"; dnl index 16
302 2; -1; 0; 0; 0; 0; s8 "";
303 2; 16; 0; 0; 0x011000 *2; s8 "STR16"; dnl index 18
304 2; -1; 0; 0; 0; 0; s8 "";
305 2; 17; 0; 0; 0x011100 *2; s8 "STR17"; dnl index 20
306 ( 2; -1; 0; 0; 0; 0; s8 ""; ) * 2;
308 dnl One value label for NUM1.
309 3; 1; 1.0; i8 17; i8 238; i8 228; i8 232; i8 237; s19 " (in Russian)"; 4; 1; 1;
311 dnl Two value labels for NUM2, as a single pair of type 3 and type 4 records.
312 3; 2; 1.0; i8 3; s7 "one"; 2.0; i8 3; s7 "two"; 4; 1; 2;
314 dnl Two value labels for NUM3, as two pairs of type 3 and type 4 records.
315 3; 1; 3.0; i8 5; s7 "three"; 4; 1; 3;
316 3; 1; 4.0; i8 4; s7 "four"; 4; 1; 3;
318 dnl Two common value labels for NUM4 and NUM5, plus two different ones for each.
319 3; 1; 5.0; i8 4; s7 "five"; 4; 1; 4;
320 3; 1; 6.0; i8 3; s7 "six"; 4; 1; 5;
321 3; 2; 7.0; i8 5; s7 "seven"; 8.0; i8 5; s7 "eight"; 4; 2; 4; 5;
322 3; 1; 9.0; i8 4; s7 "nine"; 4; 1; 4;
323 3; 1; 10.0; i8 3; s7 "ten"; 4; 1; 5;
325 dnl One value label for STR1.
326 3; 1; s8 "a"; i8 19; s23 "value label for `a'"; 4; 1; 6;
328 dnl Two value labels for STR2, as a single pair of type 3 and type 4 records.
330 s8 "bc"; i8 20; s23 "value label for `bc'";
331 s8 "de"; i8 20; s23 "value label for `de'";
334 dnl Two value labels for STR3, as two pairs of type 3 and type 4 records.
335 3; 1; s8 "fgh"; i8 21; s23 "value label for `fgh'"; 4; 1; 8;
336 3; 1; s8 "ijk"; i8 21; s23 "value label for `ijk'"; 4; 1; 8;
338 dnl Two common value labels for STR4 and STR5, plus two different ones for each.
339 3; 1; s8 "lmno"; i8 22; s23 "value label for `lmno'"; 4; 1; 9;
340 3; 1; s8 "pqrs"; i8 22; s23 "value label for `pqrs'"; 4; 1; 10;
342 s8 "tuvw"; i8 22; s23 "value label for `tuvw'";
343 s8 "xyzA"; i8 22; s23 "value label for `xyzA'";
345 3; 1; s8 "BCDE"; i8 22; s23 "value label for `BCDE'"; 4; 1; 9;
346 3; 1; s8 "FGHI"; i8 22; s23 "value label for `FGHI'"; 4; 1; 10;
348 dnl One value label for STR6, STR7, STR8.
349 3; 1; s8 "JKLMNO"; i8 24; s31 "value label for `JKLMNO'"; 4; 1; 11;
350 3; 1; s8 "JKLMNOP"; i8 25; s31 "value label for `JKLMNOP'"; 4; 1; 12;
351 3; 1; s8 "JKLMNOPQ"; i8 26; s31 "value label for `JKLMNOPQ'"; 4; 1; 13;
353 dnl Machine integer info record.
354 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1251;
356 dnl Character encoding record.
357 7; 20; 1; 12; "windows-1251";
360 dnl One value label for STR9ж,
361 COUNT("STR9"; i8 230); 9; 1; COUNT("RSTUVWXYZ"); COUNT("value label for `RSTUVWXYZ'");
363 dnl Two value labels for STR12.
364 COUNT("STR12"); 12; 2;
365 COUNT("0123456789ab"); COUNT("value label for `0123456789ab'");
366 COUNT("cdefghijklmn"); COUNT("value label for `cdefghijklmn'");
368 dnl Three value labels for STR16.
369 COUNT("STR16"); 16; 3;
370 COUNT("opqrstuvwxyzABCD"); COUNT("value label for `opqrstuvwxyzABCD'");
371 COUNT("EFGHIJKLMNOPQRST"); COUNT("value label for `EFGHIJKLMNOPQRST'");
372 COUNT("UVWXYZ0123456789"); COUNT("value label for `UVWXYZ0123456789' with Cyrillic letters: `"; i8 244; i8 245; i8 246; "'");
374 dnl One value label for STR17.
375 COUNT("STR17"); 17; 1;
376 COUNT("abcdefghijklmnopq"); COUNT("value label for `abcdefghijklmnopq'");
379 dnl Dictionary termination record.
383 "be b27d766d8a5ad9e901c8b244591a5942" \
384 "le eb2e93f3cc29acd605b80e6c3af25ba6"
387 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
389 AT_DATA([sys-file.sps], [dnl
390 GET FILE='sys-file.sav'.
393 AT_CHECK([pspp -o pspp.csv sys-file.sps])
394 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
395 Variable,Description,,Position
397 ,1,один (in Russian),
415 ,a,value label for `a',
417 ,bc,value label for `bc',
418 ,de,value label for `de',
420 ,fgh,value label for `fgh',
421 ,ijk,value label for `ijk',
423 ,BCDE,value label for `BCDE',
424 ,lmno,value label for `lmno',
425 ,tuvw,value label for `tuvw',
426 ,xyzA,value label for `xyzA',
428 ,FGHI,value label for `FGHI',
429 ,pqrs,value label for `pqrs',
430 ,tuvw,value label for `tuvw',
431 ,xyzA,value label for `xyzA',
433 ,JKLMNO,value label for `JKLMNO',
435 ,JKLMNOP,value label for `JKLMNOP',
437 ,JKLMNOPQ,value label for `JKLMNOPQ',
439 ,RSTUVWXYZ,value label for `RSTUVWXYZ',
440 str12,Format: A12,,15
441 ,0123456789ab,value label for `0123456789ab',
442 ,cdefghijklmn,value label for `cdefghijklmn',
443 str16,Format: A16,,16
444 ,EFGHIJKLMNOPQRST,value label for `EFGHIJKLMNOPQRST',
445 ,UVWXYZ0123456789,value label for `UVWXYZ0123456789' with Cyrillic letters: `фхц',
446 ,opqrstuvwxyzABCD,value label for `opqrstuvwxyzABCD',
447 str17,Format: A17,,17
448 ,abcdefghijklmnopq,value label for `abcdefghijklmnopq',
453 AT_SETUP([documents])
454 AT_KEYWORDS([sack synthetic system file positive])
455 AT_DATA([sys-file.sack], [dnl
457 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
459 1; dnl Nominal case size
460 0; dnl Not compressed
464 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
467 dnl Numeric variable, no label or missing values.
468 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
470 dnl Machine integer info record.
471 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
475 s80 "First line of documents";
476 s80 "Second line of documents";
477 "abb"; i8 233; " appliqu"; i8 233; " attach"; i8 233; " blas"; i8 233; " caf"; i8 233; " canap"; i8 233; " clich"; i8 233; " consomm"; i8 233;
480 s80 "Last line of documents";
482 dnl Character encoding record.
483 7; 20; 1; 12; "windows-1252";
485 dnl Dictionary termination record.
492 "be 3555f74f3e714a3a703de7df56ce6d24" \
493 "le ede5a0f805a1aab096ea86abf677ff34"
496 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
498 AT_DATA([sys-file.sps], [dnl
499 GET FILE='sys-file.sav'.
503 AT_CHECK([pspp -o pspp.csv sys-file.sps])
504 AT_CHECK([cat pspp.csv], [0], [dnl
505 Documents in the active dataset:
507 First line of documents
509 Second line of documents
511 abbé appliqué attaché blasé café canapé cliché consommé
515 Last line of documents
524 AT_SETUP([multiple response sets])
525 AT_KEYWORDS([sack synthetic system file positive])
526 AT_DATA([sys-file.sack], [dnl
528 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
530 16; dnl Nominal case size
531 0; dnl Not compressed
535 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
539 2; 0; 0; 0; 0x050800 *2; i8 0x82; i8 0xa0; s6 "";
540 2; 0; 0; 0; 0x050800 *2; s8 "B";
541 2; 0; 0; 0; 0x050800 *2; s8 "C";
544 2; 0; 0; 0; 0x050800 *2; s8 "D";
545 2; 0; 0; 0; 0x050800 *2; s8 "E";
546 2; 0; 0; 0; 0x050800 *2; s8 "F";
547 2; 0; 0; 0; 0x050800 *2; s8 "G";
550 2; 4; 0; 0; 0x010400 *2; s8 "H";
551 2; 4; 0; 0; 0x010400 *2; s8 "I";
552 2; 4; 0; 0; 0x010400 *2; s8 "J";
555 2; 0; 0; 0; 0x050800 *2; s8 "K";
556 2; 0; 0; 0; 0x050800 *2; s8 "L";
557 2; 0; 0; 0; 0x050800 *2; s8 "M";
560 2; 6; 0; 0; 0x010600 *2; s8 "N";
561 2; 6; 0; 0; 0x010600 *2; s8 "O";
562 2; 6; 0; 0; 0x010600 *2; s8 "P";
564 dnl Machine integer info record.
565 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 932;
569 "$a=C 10 my mcgroup "; i8 0x82; i8 0xa0; " b c"; i8 10;
570 "$b=D2 55 0 g e f d"; i8 10;
571 "$c=D4 "; i8 0x82; i8 0xcd; i8 0x82; i8 0xa2; " 10 mdgroup #2 h i j"; i8 10);
575 "$d=E 1 2 34 13 third mdgroup k l m"; i8 10;
576 "$e=E 11 6 choice 0 n o p"; i8 10);
578 dnl Character encoding record.
579 7; 20; 1; 9; "shift_jis";
581 dnl Dictionary termination record.
585 "be fdf260a05220e08c748967dcb90d8b15" \
586 "le 4c9b0c0636bc0aa0cc16684c8188d1c7"
589 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
591 AT_DATA([sys-file.sps], [dnl
592 GET FILE='sys-file.sav'.
593 MRSETS /DISPLAY NAME=ALL.
595 AT_CHECK([pspp -o pspp.csv sys-file.sps])
596 AT_CHECK([cat pspp.csv], [0], [dnl
597 Table: Multiple Response Sets
598 Name,Variables,Details
602 ","Multiple category set
609 ","Multiple dichotomy set
611 Category label source: Variable labels
616 ","Multiple dichotomy set
618 Label source: Provided by user
620 Category label source: Variable labels
625 ","Multiple dichotomy set
627 Label source: Provided by user
629 Category label source: Value labels of counted value
634 ","Multiple dichotomy set
635 Label source: First variable label among variables
636 Counted value: `choice'
637 Category label source: Value labels of counted value
643 AT_SETUP([variable display parameters, without width])
644 AT_KEYWORDS([sack synthetic system file positive])
645 AT_DATA([sys-file.sack], [dnl
647 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
649 19; dnl Nominal case size
650 0; dnl Not compressed
654 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
657 dnl Numeric variables.
658 2; 0; 0; 0; 0x050800 *2; s8 "A";
659 2; 0; 0; 0; 0x050800 *2; s8 "B";
660 2; 0; 0; 0; 0x050800 *2; s8 "C";
661 2; 0; 0; 0; 0x050800 *2; s8 "D";
663 dnl Short string variables.
664 2; 3; 0; 0; 0x010300 *2; s8 "H";
665 2; 3; 0; 0; 0x010300 *2; s8 "I";
666 2; 3; 0; 0; 0x010300 *2; s8 "J";
667 2; 3; 0; 0; 0x010300 *2; s8 "K";
669 dnl Long string variables.
670 2; 9; 0; 0; 0x010900 *2; s8 "L";
671 2; -1; 0; 0; 0; 0; s8 "";
672 2; 10; 0; 0; 0x010a00 *2; s8 "M";
673 2; -1; 0; 0; 0; 0; s8 "";
674 2; 17; 0; 0; 0x011100 *2; s8 "N";
675 ( 2; -1; 0; 0; 0; 0; s8 "" ) * 2;
676 2; 25; 0; 0; 0x011900 *2; s8 "O";
677 ( 2; -1; 0; 0; 0; 0; s8 "" ) * 3;
679 dnl Variable display parameters
694 dnl Dictionary termination record.
698 "be c130d9345080579b8862b360924edbfa" \
699 "le 6fde96f5a7c7386bff6cca049cd84d6a"
702 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
704 AT_DATA([sys-file.sps], [dnl
705 GET FILE='sys-file.sav'.
708 AT_CHECK([pspp -o pspp.csv sys-file.sps])
709 AT_CHECK([cat pspp.csv], [0], [dnl
710 Variable,Description,,Position
713 ,Display Alignment: Left,,
717 ,Display Alignment: Left,,
721 ,Display Alignment: Left,,
725 ,Display Alignment: Right,,
729 ,Display Alignment: Right,,
733 ,Display Alignment: Right,,
737 ,Display Alignment: Center,,
741 ,Display Alignment: Center,,
745 ,Display Alignment: Center,,
749 ,Display Alignment: Left,,
753 ,Display Alignment: Right,,
757 ,Display Alignment: Center,,
763 AT_SETUP([variable display parameters, with width])
764 AT_KEYWORDS([sack synthetic system file positive])
765 AT_DATA([sys-file.sack], [dnl
767 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
769 19; dnl Nominal case size
770 0; dnl Not compressed
774 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
777 dnl Numeric variables.
778 2; 0; 0; 0; 0x050800 *2; s8 "A";
779 2; 0; 0; 0; 0x050800 *2; s8 "B";
780 2; 0; 0; 0; 0x050800 *2; s8 "C";
781 2; 0; 0; 0; 0x050800 *2; s8 "D";
783 dnl Short string variables.
784 2; 3; 0; 0; 0x010300 *2; s8 "H";
785 2; 3; 0; 0; 0x010300 *2; s8 "I";
786 2; 3; 0; 0; 0x010300 *2; s8 "J";
787 2; 3; 0; 0; 0x010300 *2; s8 "K";
789 dnl Long string variables.
790 2; 9; 0; 0; 0x010900 *2; s8 "L";
791 2; -1; 0; 0; 0; 0; s8 "";
792 2; 10; 0; 0; 0x010a00 *2; s8 "M";
793 2; -1; 0; 0; 0; 0; s8 "";
794 2; 17; 0; 0; 0x011100 *2; s8 "N";
795 ( 2; -1; 0; 0; 0; 0; s8 "" ) * 2;
796 2; 25; 0; 0; 0x011900 *2; s8 "O";
797 ( 2; -1; 0; 0; 0; 0; s8 "" ) * 3;
799 dnl Variable display parameters
814 dnl Dictionary termination record.
818 "be 3ace75689a0b7faa9360936bbfe26055" \
819 "le 6e93f35d19a9882eb53ffb1b067ef7cd"
822 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
824 AT_DATA([sys-file.sps], [dnl
825 GET FILE='sys-file.sav'.
828 AT_CHECK([pspp -o pspp.csv sys-file.sps])
829 AT_CHECK([cat pspp.csv], [0], [dnl
830 Variable,Description,,Position
833 ,Display Alignment: Left,,
837 ,Display Alignment: Left,,
841 ,Display Alignment: Left,,
845 ,Display Alignment: Right,,
849 ,Display Alignment: Right,,
853 ,Display Alignment: Right,,
857 ,Display Alignment: Center,,
861 ,Display Alignment: Center,,
865 ,Display Alignment: Center,,
869 ,Display Alignment: Left,,
873 ,Display Alignment: Right,,
877 ,Display Alignment: Center,,
883 AT_SETUP([long variable names])
884 AT_KEYWORDS([sack synthetic system file positive])
885 AT_DATA([sys-file.sack], [dnl
887 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
889 7; dnl Nominal case size
890 0; dnl Not compressed
894 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
897 dnl Numeric variables.
898 2; 0; 0; 0; 0x050800 *2; s8 "LONGVARI";
899 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_A";
900 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_B";
901 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_C";
902 2; 0; 0; 0; 0x050800 *2; "CO"; i8 214; "RDINA";
903 2; 0; 0; 0; 0x050800 *2; "CO"; i8 214; "RDI_A";
904 2; 0; 0; 0; 0x050800 *2; "CO"; i8 214; "RDI_B";
906 dnl Machine integer info record.
907 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
909 dnl Machine floating-point info record.
910 7; 4; 8; 3; SYSMIS; HIGHEST; LOWEST;
912 dnl Long variable names.
914 "LONGVARI=LongVariableName1"; i8 9;
915 "LONGVA_A=LongVariableName2"; i8 9;
916 "LONGVA_B=LongVariableName3"; i8 9;
917 "LONGVA_C=LongVariableName4"; i8 9;
918 "CO"; i8 214; "RDINA=Co"; i8 246; "rdinate_X"; i8 9;
919 "CO"; i8 214; "RDI_A=Co"; i8 246; "rdinate_Y"; i8 9;
920 "CO"; i8 214; "RDI_B=Co"; i8 246; "rdinate_Z";
923 dnl Character encoding record.
924 7; 20; 1; 12; "windows-1252";
926 dnl Dictionary termination record.
930 "be 8ea5a72f3ae6e732371e92a7719c3951" \
931 "le 02bcf02cf08b1e8fc80a858101ae22fc"
934 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
936 AT_DATA([sys-file.sps], [dnl
937 GET FILE='sys-file.sav'.
940 AT_CHECK([pspp -o pspp.csv sys-file.sps])
941 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
942 Variable,Description,,Position
943 LongVariableName1,Format: F8.0,,1
944 LongVariableName2,Format: F8.0,,2
945 LongVariableName3,Format: F8.0,,3
946 LongVariableName4,Format: F8.0,,4
947 Coördinate_X,Format: F8.0,,5
948 Coördinate_Y,Format: F8.0,,6
949 Coördinate_Z,Format: F8.0,,7
954 AT_SETUP([very long strings])
955 AT_KEYWORDS([sack synthetic system file positive])
956 AT_DATA([sys-file.sack], [dnl
958 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
960 109; dnl Nominal case size
961 0; dnl Not compressed
965 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
969 2; 255; 0; 0; 0x01FF00 *2; "S"; i8 201; s6 "Q256";
970 (2; -1; 0; 0; 0; 0; s8 "") * 31;
971 2; 4; 0; 0; 0x010400 *2; "S"; i8 201; "Q256_1";
974 2; 255; 0; 0; 0x01FF00 *2; s8 "STR600";
975 (2; -1; 0; 0; 0; 0; s8 "") * 31;
976 2; 255; 0; 0; 0x01FF00 *2; s8 "STR600_1";
977 (2; -1; 0; 0; 0; 0; s8 "") * 31;
978 2; 96; 0; 0; 0x016000 *2; s8 "STR600_2";
979 (2; -1; 0; 0; 0; 0; s8 "") * 11;
981 dnl Machine integer info record.
982 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
984 dnl Very long string record.
986 "S"; i8 201; "Q256=00256"; i8 0; i8 9;
987 "STR600=00600"; i8 0; i8 9;
990 dnl Character encoding record.
991 7; 20; 1; 12; "windows-1252";
993 dnl Dictionary termination record.
997 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#" * 4;
999 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#" * 9;
1000 "abcdefghijklmnopqrstuvwxyzABCDEF";
1003 "be 844a4704f669dfe292482e587d690133" \
1004 "le b76025f602bdff6a42c1e0795a8b62ff"
1007 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1009 AT_DATA([sys-file.sps], [dnl
1010 GET FILE='sys-file.sav'.
1014 AT_CHECK([pspp -o pspp.csv sys-file.sps])
1015 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
1016 Variable,Description,,Position
1017 séq256,Format: A256,,1
1018 str600,Format: A600,,2
1022 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@a,abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#abcdefghijklmnopqrstuvwxyz
1027 AT_SETUP([data file and variable attributes])
1028 AT_KEYWORDS([sack synthetic system file positive])
1029 AT_DATA([sys-file.sack], [dnl
1031 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1033 2; dnl Nominal case size
1034 0; dnl Not compressed
1038 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1042 2; 0; 0; 0; 0x050800 *2; s8 "FIRSTVAR";
1043 2; 0; 0; 0; 0x050800 *2; s8 "SECONDVA";
1045 dnl Machine integer info record.
1046 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; ENDIAN; 1252;
1048 dnl Long variable names.
1050 "FIRSTVAR=FirstVariable"; i8 9;
1051 "SECONDVA=S"; i8 233; "condVariable"; i8 9;
1054 dnl Data file attributes record.
1056 "Attr1('Value1'"; i8 10; "''d"; i8 233; "claration''"; i8 10; ")";
1057 "S"; i8 233; "condAttr('123'"; i8 10; "'456'"; i8 10; ")";
1060 dnl Variable attributes record.
1063 "ad"; i8 232; "le('23'"; i8 10; "'34'"; i8 10; ")";
1064 "bert('123'"; i8 10; ")";
1065 "$@Role('1'"; i8 10; ")";
1066 "/S"; i8 233; "condVariable:";
1067 "xyzzy('quux'"; i8 10; ")";
1071 dnl Character encoding record.
1072 7; 20; 1; 12; "windows-1252";
1074 dnl Dictionary termination record.
1078 "be 7fff0c04f697adf45f55d8be4aaa8712" \
1079 "le 7331339199344aa58bc60d7d05d538a7"
1082 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1084 AT_DATA([sys-file.sps], [dnl
1085 GET FILE='sys-file.sav'.
1086 DISPLAY @ATTRIBUTES.
1088 AT_CHECK([pspp -o pspp.csv sys-file.sps])
1089 AT_CHECK([cat pspp.csv], [0],
1090 [[Variable,Description,
1091 FirstVariable,Custom attributes:,
1096 SécondVariable,Custom attributes:,
1099 Table: Custom data file attributes.
1102 Attr1[2],'déclaration'
1106 AT_DATA([sys-file.sps], [dnl
1107 GET FILE='sys-file.sav'.
1110 AT_CHECK([pspp -o pspp.csv sys-file.sps])
1111 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0],
1112 [[Variable,Description,,Position
1113 FirstVariable,Format: F8.0,,1
1115 ,Custom attributes:,,
1119 SécondVariable,Format: F8.0,,2
1120 ,Custom attributes:,,
1123 Table: Custom data file attributes.
1126 Attr1[2],'déclaration'
1133 AT_SETUP([compressed data])
1134 AT_KEYWORDS([sack synthetic system file positive])
1135 AT_DATA([sys-file.sack], [dnl
1137 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1139 6; dnl Nominal case size
1140 1; dnl Not compressed
1142 -1; dnl Unspecified number of cases.
1144 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1147 dnl Numeric variables.
1148 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1149 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
1151 dnl String variable.
1152 2; 4; 0; 0; 0x010400 *2; s8 "STR4";
1153 2; 8; 0; 0; 0x010800 *2; s8 "STR8";
1154 2; 15; 0; 0; 0x010f00 *2; s8 "STR15";
1155 2; -1; 0; 0; 0; 0; s8 "";
1157 dnl Dictionary termination record.
1160 dnl Compressed data.
1161 i8 1 100 254 253 254 253; i8 255 251; "abcdefgh"; s8 "0123";
1162 i8 253 253 253 254; i8 101 102 253 253; s8 "jklm"; s8 "nopqrstu";
1163 s8 "vwxyzABC"; s8 "DEFG"; s8 "HIJKLMNO";
1164 i8 254 253 252 0 0 0 0 0; s8 "PQRSTUVW";
1168 "be c0670e436b068f45710b98f6f7d01dc5" \
1169 "le 2e43a7f8861df4e714a192dfb3c8b2f4"
1172 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1174 AT_DATA([sys-file.sps], [dnl
1175 GET FILE='sys-file.sav'.
1179 AT_CHECK([pspp -o pspp.csv sys-file.sps])
1180 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
1181 Variable,Description,,Position
1182 num1,Format: F8.0,,1
1183 num2,Format: F8.0,,2
1186 str15,Format: A15,,5
1189 num1,num2,str4,str8,str15
1190 -99,0,,abcdefgh,0123 @&t@
1191 .,151,jklm,nopqrstu,vwxyzABC @&t@
1192 1,2,DEFG,HIJKLMNO,PQRSTUV
1197 AT_SETUP([compressed data, zero bias])
1198 AT_KEYWORDS([sack synthetic system file positive])
1199 AT_DATA([sys-file.sack], [dnl
1201 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1203 6; dnl Nominal case size
1204 1; dnl Not compressed
1206 -1; dnl Unspecified number of cases.
1208 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1211 dnl Numeric variables.
1212 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1213 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
1215 dnl String variable.
1216 2; 4; 0; 0; 0x010400 *2; s8 "STR4";
1217 2; 8; 0; 0; 0x010800 *2; s8 "STR8";
1218 2; 15; 0; 0; 0x010f00 *2; s8 "STR15";
1219 2; -1; 0; 0; 0; 0; s8 "";
1221 dnl Dictionary termination record.
1224 dnl Compressed data.
1225 i8 1 100 254 253 254 253; i8 255 251; "abcdefgh"; s8 "0123";
1226 i8 253 253 253 254; i8 101 102 253 253; s8 "jklm"; s8 "nopqrstu";
1227 s8 "vwxyzABC"; s8 "DEFG"; s8 "HIJKLMNO";
1228 i8 254 253 252 0 0 0 0 0; s8 "PQRSTUVW";
1232 "be 2f0d25704ee497ae833213a3e4ff5e8b" \
1233 "le 49f68a9e1ba02a2f7e9166686a0db9d9"
1236 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1238 AT_DATA([sys-file.sps], [dnl
1239 GET FILE='sys-file.sav'.
1243 AT_CHECK([pspp -o pspp.csv sys-file.sps], [0])
1244 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
1245 Variable,Description,,Position
1246 num1,Format: F8.0,,1
1247 num2,Format: F8.0,,2
1250 str15,Format: A15,,5
1253 num1,num2,str4,str8,str15
1254 1,100,,abcdefgh,0123 @&t@
1255 .,251,jklm,nopqrstu,vwxyzABC @&t@
1256 101,102,DEFG,HIJKLMNO,PQRSTUV
1261 AT_SETUP([compressed data, other bias])
1262 AT_KEYWORDS([sack synthetic system file positive])
1263 AT_DATA([sys-file.sack], [dnl
1265 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1267 6; dnl Nominal case size
1268 1; dnl Not compressed
1270 -1; dnl Unspecified number of cases.
1272 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
1275 dnl Numeric variables.
1276 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1277 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
1279 dnl String variable.
1280 2; 4; 0; 0; 0x010400 *2; s8 "STR4";
1281 2; 8; 0; 0; 0x010800 *2; s8 "STR8";
1282 2; 15; 0; 0; 0x010f00 *2; s8 "STR15";
1283 2; -1; 0; 0; 0; 0; s8 "";
1285 dnl Dictionary termination record.
1288 dnl Compressed data.
1289 i8 1 100 254 253 254 253; i8 255 251; "abcdefgh"; s8 "0123";
1290 i8 253 253 253 254; i8 101 102 253 253; s8 "jklm"; s8 "nopqrstu";
1291 s8 "vwxyzABC"; s8 "DEFG"; s8 "HIJKLMNO";
1292 i8 254 253 252 0 0 0 0 0; s8 "PQRSTUVW";
1296 "be 668b85e3dee0797883e9933a096b8c18" \
1297 "le 5e7a9c4e88cd2dbc2322943da663868e"
1300 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1302 AT_DATA([sys-file.sps], [dnl
1303 GET FILE='sys-file.sav'.
1307 AT_CHECK([pspp -o pspp.csv sys-file.sps], [0],
1308 [warning: `sys-file.sav' near offset 0x54: Compression bias is not the usual value of 100, or system file uses unrecognized floating-point format.
1310 AT_CHECK([grep -v Measure pspp.csv | grep -v Display], [0], [dnl
1311 "warning: `sys-file.sav' near offset 0x54: Compression bias is not the usual value of 100, or system file uses unrecognized floating-point format."
1313 Variable,Description,,Position
1314 num1,Format: F8.0,,1
1315 num2,Format: F8.0,,2
1318 str15,Format: A15,,5
1321 num1,num2,str4,str8,str15
1322 -49,50,,abcdefgh,0123 @&t@
1323 .,201,jklm,nopqrstu,vwxyzABC @&t@
1324 51,52,DEFG,HIJKLMNO,PQRSTUV
1329 AT_BANNER([system file reader - negative])
1331 AT_SETUP([misplaced type 4 record])
1332 AT_KEYWORDS([sack synthetic system file negative])
1333 AT_DATA([sys-file.sack], [dnl
1335 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1336 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1338 dnl Numeric variable.
1339 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1345 "be 6e0bb549fff1fd1af333d51b8a6e0f43" \
1346 "le 7b62734edcee2a1689c463f2866d11b8"
1349 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1351 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1353 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1354 [error: `sys-file.sav' near offset 0xd4: Misplaced type 4 record.
1359 AT_SETUP([bad record type])
1360 AT_KEYWORDS([sack synthetic system file negative])
1361 AT_DATA([sys-file.sack], [dnl
1363 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1364 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1366 dnl Numeric variable.
1367 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1369 dnl Type 8 record (not a valid type).
1373 "be dc8f078c23046ee7db74ec1003178a11" \
1374 "le dc7f111642f0629f4370630fd092eee3"
1377 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1379 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1381 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1382 [error: `sys-file.sav' near offset 0xd4: Unrecognized record type 8.
1387 AT_SETUP([wrong number of variable positions])
1388 AT_KEYWORDS([sack synthetic system file negative])
1389 AT_DATA([sys-file.sack], [dnl
1391 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1392 2; >>2<<; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1394 dnl Numeric variable.
1395 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1397 dnl End of dictionary.
1401 "be c57e91aa426f61813c3ad91ea3a56dda" \
1402 "le 5d1a6c114b135b219473c8ad5bb44bda"
1405 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1407 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1409 AT_CHECK([pspp -O format=csv sys-file.sps], [0],
1410 [warning: `sys-file.sav': File header claims 2 variable positions but 1 were read from file.
1415 AT_SETUP([variable name may not begin with `#'])
1416 AT_KEYWORDS([sack synthetic system file negative])
1417 AT_DATA([sys-file.sack], [dnl
1419 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1420 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1422 dnl Numeric variable.
1423 2; 0; 0; 0; 0x050800 *2; s8 >>"$UM1"<<;
1425 dnl End of dictionary.
1429 "be decb7ac6defa1ab3cc7a386d1843c1ae" \
1430 "le 5279b6275633bac55d167faebccfdb14"
1433 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1435 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1437 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1438 [error: `sys-file.sav' near offset 0xb4: Invalid variable name `$UM1'.
1443 AT_SETUP([variable name may not be reserved word])
1444 AT_KEYWORDS([sack synthetic system file negative])
1445 AT_DATA([sys-file.sack], [dnl
1447 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1448 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1450 dnl Numeric variable.
1451 2; 0; 0; 0; 0x050800 *2; s8 >>"TO"<<;
1453 dnl End of dictionary.
1457 "be 57e6ad709668bbf538e2efee4af49916" \
1458 "le 523f14b611efa380bbadf7a16ea43fed"
1461 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1463 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1465 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1466 [error: `sys-file.sav' near offset 0xb4: Invalid variable name `TO'.
1471 AT_SETUP([variable width must be between 0 and 255])
1472 AT_KEYWORDS([sack synthetic system file negative])
1473 AT_DATA([sys-file.sack], [dnl
1475 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1476 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1478 dnl String variable with invalid width 256.
1479 2; 256; 0; 0; 0x050800 *2; s8 "VAR1";
1481 dnl End of dictionary.
1485 "be 170bb18589ba264a0ed2d57b41fe77e1" \
1486 "le 9528b4b5936ef5630bbd3bdd60a123c3"
1489 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1491 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1493 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1494 [error: `sys-file.sav' near offset 0xb4: Bad width 256 for variable VAR1.
1499 AT_SETUP([duplicate variable name])
1500 AT_KEYWORDS([sack synthetic system file negative])
1501 AT_DATA([sys-file.sack], [dnl
1503 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1504 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1506 dnl Numeric variables.
1507 2; 0; 0; 0; 0x050800 *2; s8 "VAR1";
1508 2; 0; 0; 0; 0x050800 *2; s8 "VAR1";
1510 dnl End of dictionary.
1514 "be d8f5fd768ab1d641f9330a4840c71343" \
1515 "le f01e123d384cdaa7c2f7fc4791325ebf"
1518 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1520 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1522 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1523 [error: `sys-file.sav' near offset 0xd4: Duplicate variable name `VAR1'.
1528 AT_SETUP([variable label indicator not 0 or 1])
1529 AT_KEYWORDS([sack synthetic system file negative])
1530 AT_DATA([sys-file.sack], [dnl
1532 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1533 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1535 dnl Numeric variable.
1536 2; 0; >>2<<; 0; 0x050800 *2; s8 "VAR1";
1538 dnl End of dictionary.
1542 "be 3c5ff8d8f146457a385ca92d3d23ca8a" \
1543 "le 37e9f956d321ae57b0bf7fe2384e892b"
1546 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1548 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1550 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1551 [error: `sys-file.sav' near offset 0xb4: Variable label indicator field is not 0 or 1.
1556 AT_SETUP([invalid numeric missing value indicator])
1557 AT_KEYWORDS([sack synthetic system file negative])
1558 AT_DATA([sys-file.sack], [dnl
1560 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1561 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1563 dnl Numeric variable.
1564 2; 0; 0; >>-1<<; 0x050800 *2; s8 "VAR1";
1566 dnl End of dictionary.
1570 "be d1d0d4aedf9f053452c4b1e658ade5e2" \
1571 "le df697575499fe12921185a3d23a5d61d"
1574 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1576 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1578 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1579 ["error: `sys-file.sav' near offset 0xb4: Numeric missing value indicator field is not -3, -2, 0, 1, 2, or 3."
1584 AT_SETUP([invalid string missing value indicator])
1585 AT_KEYWORDS([sack synthetic system file negative])
1586 AT_DATA([sys-file.sack], [dnl
1588 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1589 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1591 dnl String variable.
1592 2; 8; 0; >>4<<; 0x010800 *2; s8 "VAR1";
1594 dnl End of dictionary.
1598 "be f833033be7b102fae19159989f62faa6" \
1599 "le 9704ba828bb7a36ef0262838f6b7936b"
1602 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1604 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1606 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1607 ["error: `sys-file.sav' near offset 0xb4: String missing value indicator field is not 0, 1, 2, or 3."
1612 AT_SETUP([missing string continuation record])
1613 AT_KEYWORDS([sack synthetic system file negative])
1614 AT_DATA([sys-file.sack], [dnl
1616 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1617 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1619 dnl String variable.
1620 2; 10; 0; 0; 0x010a00 *2; s8 "VAR1";
1621 >>2; 0; 0; 0; 0x050800 *2; s8 "VAR2";<<
1623 dnl End of dictionary.
1627 "be c8f9ad2b2acd2918055e2b78c1e0b4b8" \
1628 "le 1afab4d6aee90a6fe8d2dbf229e06409"
1631 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1633 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1635 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1636 [error: `sys-file.sav' near offset 0xb4: Missing string continuation record.
1641 AT_SETUP([invalid variable format])
1642 AT_KEYWORDS([sack synthetic system file negative])
1643 AT_DATA([sys-file.sack], [dnl
1645 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1646 2; 4; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1648 dnl Numeric variable, invalid format types.
1649 dnl No warning is issued for type 0 because it has been observed in real
1651 2; 0; 0; 0; >>0xff0800; 0<<; s8 "NUM1";
1653 dnl Numeric variable, string formats.
1654 2; 0; 0; 0; >>0x010800<<; >>0x021000<<; s8 "VAR1";
1656 dnl String variable, numeric formats.
1657 2; 4; 0; 0; >>0x050800<<; >>0x110a01<<; s8 "STR1";
1659 dnl String variable, wrong width formats.
1660 2; 4; 0; 0; >>0x010800<<; >>0x020400<<; s8 "STR2";
1662 dnl End of dictionary.
1666 "be c6ef5d8fded46443aba89adfafe15cad" \
1667 "le fccaf1764c973892f2d5adbcc2c36fb7"
1670 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1672 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1674 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
1675 warning: `sys-file.sav' near offset 0xc0: Variable NUM1 with width 0 has invalid print format 0xff0800.
1677 warning: `sys-file.sav' near offset 0xe0: Variable VAR1 with width 0 has invalid print format 0x10800.
1679 warning: `sys-file.sav' near offset 0xe4: Variable VAR1 with width 0 has invalid write format 0x21000.
1681 warning: `sys-file.sav' near offset 0x100: Variable STR1 with width 4 has invalid print format 0x50800.
1683 warning: `sys-file.sav' near offset 0x104: Variable STR1 with width 4 has invalid write format 0x110a01.
1685 warning: `sys-file.sav' near offset 0x120: Variable STR2 with width 4 has invalid print format 0x10800.
1687 warning: `sys-file.sav' near offset 0x124: Variable STR2 with width 4 has invalid write format 0x20400.
1692 AT_SETUP([weighting variable must be numeric])
1693 AT_KEYWORDS([sack synthetic system file negative])
1694 AT_DATA([sys-file.sack], [dnl
1696 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1697 2; 2; 1; >>2<<; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1699 dnl Numeric variable.
1700 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1702 dnl String variable.
1703 2; 4; 0; 0; 0x010400 *2; s8 "STR1";
1705 dnl End of dictionary.
1709 "be 82d30105e46c4896c24f9dcec26c4749" \
1710 "le 32e235119be70050eb78bf4186a5a046"
1713 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1715 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1717 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1718 [error: `sys-file.sav': Weighting variable must be numeric (not string variable `STR1').
1723 AT_SETUP([bad weighting variable index])
1724 AT_KEYWORDS([sack synthetic system file negative])
1725 AT_DATA([sys-file.sack], [dnl
1727 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1728 2; 2; 1; >>3<<; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1730 dnl Numeric variable.
1731 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1733 dnl String variable.
1734 2; 4; 0; 0; 0x010400 *2; s8 "STR1";
1736 dnl End of dictionary.
1740 "be cd9af924ff20bc75834aa2c696254c97" \
1741 "le cbe0f2f514f5e95f27644d0b4314bc78"
1744 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1746 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1748 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1749 [error: `sys-file.sav' near offset 0x4c: Variable index 3 not in valid range 1...2.
1754 AT_SETUP([variable index is long string contination])
1755 AT_KEYWORDS([sack synthetic system file negative])
1756 AT_DATA([sys-file.sack], [dnl
1758 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1759 2; 2; 1; >>3<<; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1761 dnl Numeric variable.
1762 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1764 dnl Long string variable.
1765 2; 9; 0; 0; 0x010900 *2; s8 "STR1";
1766 (2; -1; 0; 0; 0; 0; s8 "");
1768 dnl End of dictionary.
1772 "be 0c395354df56ea5ff374aafcc535d633" \
1773 "le d977f684ea9d4648ed40f8c6dddde9f7"
1776 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1778 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1780 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
1781 [error: `sys-file.sav' near offset 0x4c: Variable index 3 refers to long string continuation.
1786 AT_SETUP([multiple documents records])
1787 AT_KEYWORDS([sack synthetic system file negative])
1788 AT_DATA([sys-file.sack], [dnl
1790 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1791 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1793 dnl Numeric variable, no label or missing values.
1794 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1796 dnl Two document records.
1797 (6; 1; s80 "One line of documents") >>* 2<<;
1799 dnl Dictionary termination record.
1806 "be 18aa3348a216ed494efe28285b348fa8" \
1807 "le 19b21522bcef1dcc60af328f923f307e"
1810 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1812 AT_DATA([sys-file.sps], [dnl
1813 GET FILE='sys-file.sav'.
1815 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
1816 error: `sys-file.sav' near offset 0x12c: Duplicate type 6 (document) record.
1822 AT_SETUP([empty document record])
1823 AT_KEYWORDS([sack synthetic system file negative])
1824 AT_DATA([sys-file.sack], [dnl
1826 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1827 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1829 dnl Numeric variable, no label or missing values.
1830 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1832 dnl Empty document record.
1835 dnl Dictionary termination record.
1842 "be d8ef29c1b97f9ed226cbd938c9c49b6e" \
1843 "le f6a560c5b62e2c472429d85294f36e61"
1846 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1848 AT_DATA([sys-file.sps], [dnl
1849 GET FILE='sys-file.sav'.
1851 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
1852 error: `sys-file.sav' near offset 0xd4: Number of document lines (0) must be greater than 0 and less than 26843545.
1857 AT_SETUP([extension record too large])
1858 AT_KEYWORDS([sack synthetic system file negative])
1859 AT_DATA([sys-file.sack], [dnl
1861 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1862 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1864 dnl Numeric variable, no label or missing values.
1865 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1867 dnl Too-large extension record.
1868 7; 3; >>0xfffff000 * 2<<;
1871 "be 5a6679dc41ac349b0b73fc430937c05c" \
1872 "le d4769c7f650cfbf160e0386d0d33be04"
1875 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1877 AT_DATA([sys-file.sps], [dnl
1878 GET FILE='sys-file.sav'.
1880 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
1881 error: `sys-file.sav' near offset 0xd8: Record type 7 subtype 3 too large.
1886 AT_SETUP([unknown extension record])
1887 AT_KEYWORDS([sack synthetic system file negative])
1888 AT_DATA([sys-file.sack], [dnl
1890 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1891 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1893 dnl Numeric variable, no label or missing values.
1894 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1896 dnl Unknown extension record type.
1899 dnl End of dictionary.
1903 "be ac8395e27677408189bcb8655e56cc0e" \
1904 "le e308bfcd51f1e3c28d7379c29271f9d6"
1907 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
1909 AT_DATA([sys-file.sps], [dnl
1910 GET FILE='sys-file.sav'.
1912 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
1913 "warning: `sys-file.sav' near offset 0xd8: Unrecognized record type 7, subtype 30. Please send a copy of this file, and the syntax which created it to bug-gnu-pspp@gnu.org."
1918 AT_SETUP([bad machine integer info size])
1919 AT_KEYWORDS([sack synthetic system file negative])
1920 AT_DATA([sys-file.sack], [dnl
1922 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1923 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1925 dnl Numeric variable, no label or missing values.
1926 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1928 dnl Machine integer info record.
1929 7; 3; 4; >>9<<; 1; 2; 3; -1; 1; 1; ENDIAN; 1252; >>1234<<;
1931 dnl End of dictionary.
1935 "be 21ec84826886b0a266d1360f8279d769" \
1936 "le 15dcba7b2b89b7d8a21ebcc872f515af"
1939 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
1940 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1942 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
1943 "warning: `sys-file.sav' near offset 0xd8: Record type 7, subtype 3 has bad count 9 (expected 8)."
1948 AT_SETUP([bad machine integer info float format])
1949 AT_KEYWORDS([sack synthetic system file negative])
1950 AT_DATA([sys-file.sack], [dnl
1952 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1953 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1955 dnl Numeric variable, no label or missing values.
1956 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1958 dnl Machine integer info record.
1959 7; 3; 4; 8; 1; 2; 3; -1; >>2<<; 1; ENDIAN; 1252;
1961 dnl End of dictionary.
1965 "be d510ed28278649eee997fb6881a4c04f" \
1966 "le fbf1eca561a4e243b7ae844ed1677035"
1969 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
1970 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
1972 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
1973 error: `sys-file.sav' near offset 0xd8: Floating-point representation indicated by system file (2) differs from expected (1).
1978 AT_SETUP([bad machine integer info endianness])
1979 AT_KEYWORDS([sack synthetic system file negative])
1980 AT_DATA([sys-file.sack], [dnl
1982 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
1983 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
1985 dnl Numeric variable, no label or missing values.
1986 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
1988 dnl Machine integer info record.
1989 7; 3; 4; 8; 1; 2; 3; -1; 1; 1; >>3<<; 1252;
1991 dnl End of dictionary.
1995 "be 855123d16d5e1560b91d60753dad79ad 1" \
1996 "le d6626b4fa2e46a91f26c2fc609b2f1e0 2"
1999 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2001 AT_DATA([sys-file.sps], [dnl
2002 GET FILE='sys-file.sav'.
2005 AT_CHECK_UNQUOTED([pspp -O format=csv sys-file.sps], [0], [dnl
2006 warning: \`sys-file.sav' near offset 0xd8: Integer format indicated by system file (3) differs from expected ($[3]).
2008 Variable,Description,,Position
2009 num1,Format: F8.0,,1
2011 ,Display Alignment: Right,,
2018 AT_SETUP([bad machine floating-point info size])
2019 AT_KEYWORDS([sack synthetic system file negative])
2020 AT_DATA([sys-file.sack], [dnl
2022 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2023 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2025 dnl Numeric variable, no label or missing values.
2026 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2028 dnl Machine floating-point info record.
2029 7; 4; 8; >>4<<; SYSMIS; HIGHEST; LOWEST; 0.0;
2031 dnl End of dictionary.
2035 "be 29c9a173638fbb8bb1efe1176c4d670f" \
2036 "le 5cb49eb1084e5b9cd573a54705ff86a7"
2039 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
2040 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2042 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2043 "warning: `sys-file.sav' near offset 0xd8: Record type 7, subtype 4 has bad count 4 (expected 3)."
2048 AT_SETUP([wrong special floating point values])
2049 AT_KEYWORDS([sack synthetic system file negative])
2050 AT_DATA([sys-file.sack], [dnl
2052 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2053 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2055 dnl Numeric variable, no label or missing values.
2056 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2058 dnl Machine floating-point info record.
2059 7; 4; 8; 3; >>0.0<<; >>1.0<<; >>2.0<<;
2061 dnl End of dictionary.
2065 "be 1e7452d9bb0a2397bf6084a25437514e" \
2066 "le f59f9a83f723cde1611869ff6d91d325"
2069 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2071 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2073 AT_CHECK([pspp -O format=csv sys-file.sps | sed 's/ [(].*/.../'], [0], [dnl
2074 "warning: `sys-file.sav' near offset 0xd8: File specifies unexpected value 0...
2076 "warning: `sys-file.sav' near offset 0xd8: File specifies unexpected value 1...
2078 "warning: `sys-file.sav' near offset 0xd8: File specifies unexpected value 2...
2083 AT_SETUP([bad mrsets name])
2084 AT_KEYWORDS([sack synthetic system file negative multiple response])
2085 AT_DATA([sys-file.sack], [dnl
2087 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2088 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2090 dnl Numeric variable, no label or missing values.
2091 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2093 dnl Multiple response sets.
2094 7; 7; 1; COUNT("a=C");
2095 7; 19; 1; COUNT("xyz=D");
2100 "be 15a9bf44d0cd6186a60629b77079c5a5" \
2101 "le 161c99aca5e7a3684df096137e72ce5b"
2104 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2106 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2108 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2109 warning: `sys-file.sav' near offset 0xd8: `a' does not begin with `$' at offset 2 in MRSETS record.
2111 warning: `sys-file.sav' near offset 0xeb: `xyz' does not begin with `$' at offset 4 in MRSETS record.
2116 AT_SETUP([missing space after C in mrsets])
2117 AT_KEYWORDS([sack synthetic system file negative multiple response])
2118 AT_DATA([sys-file.sack], [dnl
2120 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2121 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2123 dnl Numeric variable, no label or missing values.
2124 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2126 dnl Multiple response sets.
2127 7; 7; 1; COUNT("$a=Cx");
2132 "be c5e5656ba3d74c3a967850f29ad89970" \
2133 "le 29f110509c3d6893a7d21ae2d66aad9d"
2136 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2138 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2140 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2141 warning: `sys-file.sav' near offset 0xd8: Missing space following `C' at offset 4 in MRSETS record.
2146 AT_SETUP([missing space after E in mrsets])
2147 AT_KEYWORDS([sack synthetic system file negative multiple response])
2148 AT_DATA([sys-file.sack], [dnl
2150 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2151 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2153 dnl Numeric variable, no label or missing values.
2154 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2156 dnl Multiple response sets.
2157 7; 7; 1; COUNT("$a=Ex");
2162 "be a9e1dc63e2524882a5e3d2949a2da9d4" \
2163 "le ac709ca1928f65f47a8c8efdd9454b50"
2166 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2168 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2170 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2171 warning: `sys-file.sav' near offset 0xd8: Missing space following `E' at offset 4 in MRSETS record.
2176 AT_SETUP([unexpected label source in mrsets])
2177 AT_KEYWORDS([sack synthetic system file negative multiple response])
2178 AT_DATA([sys-file.sack], [dnl
2180 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2181 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2183 dnl Numeric variable, no label or missing values.
2184 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2186 dnl Multiple response sets.
2187 7; 7; 1; COUNT("$a=E 2");
2192 "be 8c710e85a0a1609d0d03dec80aaf5f94" \
2193 "le 4682440b82f22d4bd2ac56afb7fa3152"
2196 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2198 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2200 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2201 warning: `sys-file.sav' near offset 0xd8: Unexpected label source value `2' following `E' at offset 7 in MRSETS record.
2203 warning: `sys-file.sav' near offset 0xd8: Expecting digit at offset 7 in MRSETS record.
2208 AT_SETUP([bad type character in mrsets])
2209 AT_KEYWORDS([sack synthetic system file negative multiple response])
2210 AT_DATA([sys-file.sack], [dnl
2212 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2213 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2215 dnl Numeric variable, no label or missing values.
2216 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2218 dnl Multiple response sets.
2219 7; 7; 1; COUNT("$a=");
2224 "be fc5e5200d8f56b9a5a713e4a95313a3b" \
2225 "le 578a61e8a06b20216612f566c2050879"
2228 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2230 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2232 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2233 "warning: `sys-file.sav' near offset 0xd8: Missing `C', `D', or `E' at offset 3 in MRSETS record."
2238 AT_SETUP([bad counted string length in mrsets])
2239 AT_KEYWORDS([sack synthetic system file negative multiple response])
2240 AT_DATA([sys-file.sack], [dnl
2242 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2243 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2245 dnl Numeric variable, no label or missing values.
2246 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2248 dnl Multiple response sets.
2249 7; 7; 1; COUNT("$a=Dx");
2254 "be 23d0e2f65c7c5f93bbedcc0f2b260c69" \
2255 "le c3860c1d80e08842264948056e72c0db"
2258 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2260 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2262 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2263 warning: `sys-file.sav' near offset 0xd8: Expecting digit at offset 4 in MRSETS record.
2268 AT_SETUP([missing space in counted string in mrsets])
2269 AT_KEYWORDS([sack synthetic system file negative multiple response])
2270 AT_DATA([sys-file.sack], [dnl
2272 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2273 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2275 dnl Numeric variable, no label or missing values.
2276 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2278 dnl Multiple response sets.
2279 7; 7; 1; COUNT("$a=D1x");
2284 "be c9ce001723763e0698878b7e43a887e8" \
2285 "le e258a1e4491d5a1d1e7d2272ef631a22"
2288 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2290 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2292 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2293 warning: `sys-file.sav' near offset 0xd8: Expecting space at offset 5 in MRSETS record.
2298 AT_SETUP([counted string too long in mrsets])
2299 AT_KEYWORDS([sack synthetic system file negative multiple response])
2300 AT_DATA([sys-file.sack], [dnl
2302 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2303 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2305 dnl Numeric variable, no label or missing values.
2306 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2308 dnl Multiple response sets.
2309 7; 7; 1; COUNT("$a=D4 abc");
2314 "be 196d1266fa0e8e315769dcbe3130e3df" \
2315 "le 23df1ba7b77a26da8ce1c2cfbcaadce0"
2318 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2320 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2322 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2323 warning: `sys-file.sav' near offset 0xd8: 4-byte string starting at offset 6 exceeds record length 9.
2328 AT_SETUP([missing space after counted string in mrsets])
2329 AT_KEYWORDS([sack synthetic system file negative multiple response])
2330 AT_DATA([sys-file.sack], [dnl
2332 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2333 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2335 dnl Numeric variable, no label or missing values.
2336 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2338 dnl Multiple response sets.
2339 7; 7; 1; COUNT("$a=D3 abcx");
2344 "be 86314bb0bbdfad48c10af8b8d8106d6e" \
2345 "le 2b8d05ff501ca78e51f7110ce88a2364"
2348 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2350 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2352 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2353 warning: `sys-file.sav' near offset 0xd8: Expecting space at offset 9 following 3-byte string.
2358 AT_SETUP([missing newline after variable name in mrsets])
2359 AT_KEYWORDS([sack synthetic system file negative multiple response])
2360 AT_DATA([sys-file.sack], [dnl
2362 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2363 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2365 dnl Numeric variable, no label or missing values.
2366 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2368 dnl Multiple response sets.
2369 7; 7; 1; COUNT("$a=C 0 NUM1");
2374 "be cea939cf3e6a5f88cb45e8fa871c5e13" \
2375 "le 52135afec082f50f37eafacadbb2cd65"
2378 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2380 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2382 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2383 warning: `sys-file.sav' near offset 0xd8: Missing new-line parsing variable names at offset 13 in MRSETS record.
2385 warning: `sys-file.sav' near offset 0xd8: MRSET $a has only 1 variables.
2390 AT_SETUP([duplicate variable name in mrsets])
2391 AT_KEYWORDS([sack synthetic system file negative multiple response])
2392 AT_DATA([sys-file.sack], [dnl
2394 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2395 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2397 dnl Numeric variable, no label or missing values.
2398 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2400 dnl Multiple response sets.
2401 7; 7; 1; COUNT("$a=C 0 NUM1 NUM1"; i8 10);
2406 "be 4b1b5fa2dc22cf0afdd35422290b0a29" \
2407 "le e4304b57976440a036f25f8dd8ac1404"
2410 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2412 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2414 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2415 warning: `sys-file.sav' near offset 0xd8: Duplicate variable name NUM1 at offset 18 in MRSETS record.
2417 warning: `sys-file.sav' near offset 0xd8: MRSET $a has only 1 variables.
2422 AT_SETUP([mixed variable types in mrsets])
2423 AT_KEYWORDS([sack synthetic system file negative multiple response])
2424 AT_DATA([sys-file.sack], [dnl
2426 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2427 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2430 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2431 2; 8; 0; 0; 0x010800 *2; s8 "STR1";
2433 dnl Multiple response sets.
2434 7; 7; 1; COUNT("$a=C 0 NUM1 STR1"; i8 10);
2439 "be 0f130e967e4097823f85b8711eb20727" \
2440 "le 4dc987b4303fd115f1cae9be3963acc9"
2443 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2445 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2447 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2448 warning: `sys-file.sav' near offset 0xf8: MRSET $a contains both string and numeric variables.
2450 warning: `sys-file.sav' near offset 0xf8: MRSET $a has only 1 variables.
2455 AT_SETUP([missing newline after variable name in mrsets])
2456 AT_KEYWORDS([sack synthetic system file negative multiple response])
2457 AT_DATA([sys-file.sack], [dnl
2459 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2460 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2462 dnl Numeric variable, no label or missing values.
2463 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2465 dnl Multiple response sets.
2466 7; 7; 1; COUNT("$a=C 0 NUM1"; i8 10);
2471 "be 3a891e0a467afb3d622629c70f329ada" \
2472 "le 432998ec08370510411af4f5207c015e"
2475 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2477 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2479 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2480 warning: `sys-file.sav' near offset 0xd8: MRSET $a has only 1 variables.
2485 AT_SETUP([only one variable in mrset])
2486 AT_KEYWORDS([sack synthetic system file negative multiple response])
2487 AT_DATA([sys-file.sack], [dnl
2489 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2490 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2492 dnl Numeric variable, no label or missing values.
2493 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2495 dnl Multiple response sets.
2496 7; 7; 1; COUNT("$a=C 0 NUM1"; i8 10);
2501 "be 3a891e0a467afb3d622629c70f329ada" \
2502 "le 432998ec08370510411af4f5207c015e"
2505 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2507 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2509 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2510 warning: `sys-file.sav' near offset 0xd8: MRSET $a has only 1 variables.
2515 AT_SETUP([wrong display parameter size])
2516 AT_KEYWORDS([sack synthetic system file negative])
2517 AT_DATA([sys-file.sack], [dnl
2519 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2520 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2522 dnl Numeric variable, no label or missing values.
2523 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2525 dnl Display parameters record.
2526 7; 11; >>8<<; 2; 1.0; 1.0;
2528 dnl End of dictionary.
2532 "be 7c0f1ae47ae11e37d435c4abaceca226" \
2533 "le c29d05a1f8f15ed2201f31f8b787aaa0"
2536 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2538 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2540 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2541 "warning: `sys-file.sav' near offset 0xd8: Record type 7, subtype 11 has bad size 8 (expected 4)."
2546 AT_SETUP([wrong display parameter count])
2547 AT_KEYWORDS([sack synthetic system file negative])
2548 AT_DATA([sys-file.sack], [dnl
2550 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2551 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2553 dnl Numeric variable, no label or missing values.
2554 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2556 dnl Display parameters record.
2557 7; 11; 4; >>4<<; 1; 1; 2; 2;
2559 dnl End of dictionary.
2563 "be 372b57e73c69b05047b60bf6c596e2a1" \
2564 "le 2a550d8c5ceae4de7ced77df66e49d0f"
2567 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2569 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2571 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2572 warning: `sys-file.sav' near offset 0xd8: Extension 11 has bad count 4 (for 1 variables).
2577 AT_SETUP([wrong display measurement level])
2578 AT_KEYWORDS([sack synthetic system file negative])
2579 AT_DATA([sys-file.sack], [dnl
2581 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2582 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2584 dnl Numeric variable, no label or missing values.
2585 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2587 dnl Display parameters record.
2588 7; 11; 4; 2; >>4<<; 0;
2590 dnl End of dictionary.
2594 "be d43e7616b03743339f37292dec6c2204" \
2595 "le 821533c29a070cefdd8f07f4e1741d2a"
2598 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2600 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2602 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2603 warning: `sys-file.sav' near offset 0xd8: Invalid variable display parameters for variable 0 (NUM1). Default parameters substituted.
2608 AT_SETUP([wrong display alignment])
2609 AT_KEYWORDS([sack synthetic system file negative])
2610 AT_DATA([sys-file.sack], [dnl
2612 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2613 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2615 dnl Numeric variable, no label or missing values.
2616 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2618 dnl Display parameters record.
2619 7; 11; 4; 2; 1; >>-1<<;
2621 dnl End of dictionary.
2625 "be c54bc48b5767e2ec3a9ef31df790cb7c" \
2626 "le a4d8b14af64221abe83adb417d110e10"
2629 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2631 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
2633 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2634 warning: `sys-file.sav' near offset 0xd8: Invalid variable display parameters for variable 0 (NUM1). Default parameters substituted.
2639 AT_SETUP([bad variable name in variable/value pair])
2640 AT_KEYWORDS([sack synthetic system file negative])
2641 AT_DATA([sys-file.sack], [dnl
2643 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2644 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2646 dnl Numeric variables.
2647 2; 0; 0; 0; 0x050800 *2; s8 "LONGVARI";
2649 dnl Long variable names.
2650 7; 13; 1; COUNT (>>"xyzzy"<<);
2652 dnl Dictionary termination record.
2656 "be b67b6e3c1900e5a9cc691055008f0447" \
2657 "le 26cc52e601f830f9087a0ea2bd9527df"
2660 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2662 AT_DATA([sys-file.sps], [dnl
2663 GET FILE='sys-file.sav'.
2665 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2666 warning: `sys-file.sav' near offset 0xde: Dictionary record refers to unknown variable xyzzy.
2671 AT_SETUP([duplicate long variable name])
2672 AT_KEYWORDS([sack synthetic system file negative])
2673 AT_DATA([sys-file.sack], [dnl
2675 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2676 2; 4; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2678 dnl Numeric variables.
2679 2; 0; 0; 0; 0x050800 *2; s8 "LONGVARI";
2680 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_A";
2681 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_B";
2682 2; 0; 0; 0; 0x050800 *2; s8 "LONGVA_C";
2684 dnl Long variable names.
2686 "LONGVARI=_Invalid"; i8 9;
2687 "LONGVA_A=LongVariableName"; i8 9;
2688 "LONGVA_B=LONGVARIABLENAME"; i8 9;
2691 dnl Dictionary termination record.
2695 "be 9b4b4daa00084d984efb8f889bcb727c" \
2696 "le c1b1470d5cd615106e9ae507c9948d8e"
2699 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2701 AT_DATA([sys-file.sps], [dnl
2702 GET FILE='sys-file.sav'.
2704 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2705 warning: `sys-file.sav' near offset 0x138: Long variable mapping from LONGVARI to invalid variable name `_Invalid'.
2707 warning: `sys-file.sav' near offset 0x138: Duplicate long variable name `LONGVARIABLENAME'.
2712 AT_SETUP([bad very long string length])
2713 AT_KEYWORDS([sack synthetic system file negative])
2714 AT_DATA([sys-file.sack], [dnl
2716 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2717 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2719 dnl Numeric variable.
2720 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2722 dnl Very long string map.
2724 "NUM1=00000"; i8 0; i8 9;
2725 "NUM1=00255"; i8 0; i8 9;
2726 "NUM1=00256"; i8 0; i8 9;
2729 dnl Dictionary termination record.
2733 "be 1309d8d9fb24bcf08952dce9b0f39a94" \
2734 "le 94a39de88f8034001b3e467c4cc04d0f"
2737 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2739 AT_DATA([sys-file.sps], [dnl
2740 GET FILE='sys-file.sav'.
2742 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2743 warning: `sys-file.sav' near offset 0xd8: NUM1 listed as string of invalid length 00000 in very long string record.
2745 "warning: `sys-file.sav' near offset 0xd8: NUM1 listed in very long string record with width 00255, which requires only one segment."
2747 error: `sys-file.sav' near offset 0xd8: Very long string NUM1 overflows dictionary.
2752 AT_SETUP([bad very long string segment width])
2753 AT_KEYWORDS([sack synthetic system file negative])
2754 AT_DATA([sys-file.sack], [dnl
2756 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2757 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2760 2; 255; 0; 0; 0x01ff00 *2; s8 "STR1";
2761 (2; -1; 0; 0; 0; 0; s8 "") * 31;
2762 2; >>9<<; 0; 0; 0x010900 *2; s8 "STR1_A";
2763 >>2; -1; 0; 0; 0; 0; s8 "";<<
2765 dnl Very long string map.
2767 "STR1=00256"; i8 0; i8 9;
2770 dnl Dictionary termination record.
2774 "be 1d09a44a46859e6eda28e053dd4b7a8b" \
2775 "le 63b9ac0b3953f3e0d5ee248ebe257794"
2778 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2780 AT_DATA([sys-file.sps], [dnl
2781 GET FILE='sys-file.sav'.
2783 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2784 error: `sys-file.sav' near offset 0x4f8: Very long string with width 256 has segment 1 of width 9 (expected 4).
2789 AT_SETUP([too many value labels])
2790 dnl Skip the test if multiplying a small number by INT32_MAX would not
2791 dnl cause an overflow in size_t.
2792 AT_SKIP_IF([test $SIZEOF_SIZE_T -gt 4])
2793 AT_KEYWORDS([sack synthetic system file negative])
2794 AT_DATA([sys-file.sack], [dnl
2796 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2797 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2799 dnl Numeric variable.
2800 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2804 "be 975b2668dde395ddf619977958b37412" \
2805 "le 0c14aa278cfc2a4b801f91c14321f03b"
2808 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2810 AT_DATA([sys-file.sps], [dnl
2811 GET FILE='sys-file.sav'.
2813 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2814 error: `sys-file.sav' near offset 0xd4: Invalid number of labels 2147483647.
2819 AT_SETUP([missing type 4 record])
2820 AT_KEYWORDS([sack synthetic system file negative])
2821 AT_DATA([sys-file.sack], [dnl
2823 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2824 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2826 dnl Numeric variable.
2827 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2829 dnl Value label with missing type 4 record.
2830 3; 1; 1.0; i8 3; s7 "one";
2832 dnl End of dictionary.
2836 "be 5e1286ac92e3f25ff98492bc5019d608" \
2837 "le b33c12f776bbcaa43aa3bfdd4799e0c0"
2840 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2842 AT_DATA([sys-file.sps], [dnl
2843 GET FILE='sys-file.sav'.
2845 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2846 error: `sys-file.sav' near offset 0xe8: Variable index record (type 4) does not immediately follow value label record (type 3) as it should.
2851 AT_SETUP([value label with no associated variables])
2852 AT_KEYWORDS([sack synthetic system file negative])
2853 AT_DATA([sys-file.sack], [dnl
2855 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2856 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2858 dnl Numeric variable.
2859 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2861 dnl Value label with no variables.
2862 3; 1; 1.0; i8 3; s7 "one"; 4; >>0<<;
2865 "be b0dcec30a936cbcad21c4f3d6fe10fcf" \
2866 "le 3b9fdfce5c8c248048232fd6eac018e3"
2869 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2871 AT_DATA([sys-file.sps], [dnl
2872 GET FILE='sys-file.sav'.
2874 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2875 error: `sys-file.sav' near offset 0xec: Number of variables associated with a value label (0) is not between 1 and the number of variables (1).
2880 AT_SETUP([type 4 record names long string variable])
2881 AT_KEYWORDS([sack synthetic system file negative])
2882 AT_DATA([sys-file.sack], [dnl
2884 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2885 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2887 dnl Long string variable.
2888 2; 9; 0; 0; 0x010900 *2; s8 "STR1";
2889 2; -1; 0; 0; 0; 0; s8 "";
2891 dnl Value label that names long string variable.
2892 3; 1; s8 "xyzzy"; i8 3; s7 "one"; 4; 1; >>1<<;
2894 dnl End of dictionary.
2898 "be 14053a4f09de4c7c4c55281534dd66f4" \
2899 "le 8a61cc994c659fd66307d2f0fd64ce20"
2902 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
2903 AT_DATA([sys-file.sps], [dnl
2904 GET FILE='sys-file.sav'.
2906 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2907 error: `sys-file.sav' near offset 0xf4: Value labels may not be added to long string variables (e.g. STR1) using records types 3 and 4.
2912 AT_SETUP([variables for value label must all be same type])
2913 AT_KEYWORDS([sack synthetic system file negative])
2914 AT_DATA([sys-file.sack], [dnl
2916 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2917 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2920 2; 6; 0; 0; 0x010600 *2; s8 "STR1";
2921 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2923 dnl Value label that names numeric and string variables.
2924 3; 1; s8 "xyzzy"; i8 3; s7 "one"; 4; 2; >>1; 2<<;
2926 dnl End of dictionary.
2930 "be 7577c456726a88f52bbef63a8b47bf1a" \
2931 "le 3ba5c6af9ad0ae5cc88f9f63e726e414"
2934 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [ignore])
2935 AT_DATA([sys-file.sps], [dnl
2936 GET FILE='sys-file.sav'.
2938 AT_CHECK([pspp -O format=csv sys-file.sps], [1], [dnl
2939 "error: `sys-file.sav' near offset 0xf4: Variables associated with value label are not all of identical type. Variable STR1 is string, but variable NUM1 is numeric."
2944 AT_SETUP([duplicate value labels type])
2945 AT_KEYWORDS([sack synthetic system file negative])
2946 AT_DATA([sys-file.sack], [dnl
2948 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2949 2; 2; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2952 2; 6; 0; 0; 0x010600 *2; s8 "STR1";
2953 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
2955 dnl Duplicate value labels.
2956 3; 1; s8 "xyzzy"; i8 3; s7 "one"; 4; 2; >>1; 1<<;
2957 3; 1; 1.0; i8 3; s7 "one"; 4; 2; >>2; 2<<;
2959 dnl End of dictionary.
2963 "be ef0f5b2ebddb5a3bfcda16c93a2508f4" \
2964 "le c00e27abd9a6c06bf29a108d7220435a"
2967 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
2969 AT_DATA([sys-file.sps], [dnl
2970 GET FILE='sys-file.sav'.
2972 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
2973 warning: `sys-file.sav' near offset 0xf4: Duplicate value label for `xyzzy ' on STR1.
2975 warning: `sys-file.sav' near offset 0x11c: Duplicate value label for 1 on NUM1.
2980 AT_SETUP([missing attribute value])
2981 AT_KEYWORDS([sack synthetic system file negative])
2982 AT_DATA([sys-file.sack], [dnl
2984 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
2985 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
2988 2; 0; 0; 0; 0x050800 *2; s8 "FIRSTVAR";
2990 dnl Data file attributes record.
2995 dnl Variable attributes record.
3001 dnl Dictionary termination record.
3005 "be 0fc71f5e3cdb6b7f2dd73d011d4885c2" \
3006 "le e519b44715400156a2bfe648eb5cff34"
3009 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3011 AT_DATA([sys-file.sps], [dnl
3012 GET FILE='sys-file.sav'.
3014 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
3015 warning: `sys-file.sav' near offset 0xde: Error parsing attribute value Attr1[[1]].
3017 warning: `sys-file.sav' near offset 0x101: Error parsing attribute value fred[[2]].
3022 AT_SETUP([unquoted attribute value])
3023 AT_KEYWORDS([sack synthetic system file negative])
3024 AT_DATA([sys-file.sack], [dnl
3026 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3027 2; 1; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3030 2; 0; 0; 0; 0x050800 *2; s8 "FIRSTVAR";
3032 dnl Data file attributes record.
3034 "Attr1(value"; i8 10;
3038 dnl Variable attributes record.
3041 "fred(23"; i8 10; ")"
3044 dnl Dictionary termination record.
3048 "be 33dba37c2247e63c04bb74a7b472293d" \
3049 "le 041025a9d9d9e21a7fabd90ba7341934"
3052 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3054 AT_DATA([sys-file.sps], [dnl
3055 GET FILE='sys-file.sav'.
3057 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
3058 warning: `sys-file.sav' near offset 0xe4: Attribute value Attr1[[1]] is not quoted: value.
3060 warning: `sys-file.sav' near offset 0x106: Attribute value fred[[1]] is not quoted: 23.
3065 AT_SETUP([bad variable name in long string value label])
3066 AT_KEYWORDS([sack synthetic system file negative])
3067 AT_DATA([sys-file.sack], [dnl
3069 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3070 2; 3; 1; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3073 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3074 2; 14; 0; 0; 0x010e00 *2; s8 "STR14";
3075 2; -1; 0; 0; 0; 0; s8 "";
3078 dnl No variable named STR9.
3079 COUNT(>>"STR9"<<); 9;
3080 1; COUNT("RSTUVWXYZ"); COUNT("value label for `RSTUVWXYZ'");
3082 dnl NUM1 is numeric.
3083 COUNT(>>"NUM1"<<); 0;
3084 1; COUNT("xyz"); COUNT("value label for 1.0");
3086 dnl Wrong width for STR14.
3087 COUNT("STR14"); >>9<<;
3088 1; COUNT("RSTUVWXYZ"); COUNT("value label for `RSTUVWXYZ'");
3090 dnl Wrong width for value.
3092 1; COUNT(>>"RSTUVWXYZ"<<); COUNT("value label for `RSTUVWXYZ'");
3094 dnl Duplicate value label.
3095 COUNT("STR14"); 14; 2;
3096 COUNT("abcdefghijklmn"); COUNT("value label for `abcdefghijklmn'");
3097 >>COUNT("abcdefghijklmn"); COUNT("another value label for `abcdefghijklmn'")<<;
3100 dnl Dictionary termination record.
3104 "be cf2e883dadb00e2c6404c09ea0a4e388" \
3105 "le 89c340faf0a7e4a8c834f9687684c091"
3108 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3110 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3112 AT_CHECK([pspp -O format=csv sys-file.sps], [0], [dnl
3113 warning: `sys-file.sav' near offset 0x128: Ignoring long string value record for unknown variable STR9.
3115 warning: `sys-file.sav' near offset 0x164: Ignoring long string value record for numeric variable NUM1.
3117 warning: `sys-file.sav' near offset 0x193: Ignoring long string value record for variable STR14 because the record's width (9) does not match the variable's width (14).
3119 "warning: `sys-file.sav' near offset 0x1d4: Ignoring long string value 0 for variable str14, with width 14, that has bad value width 9."
3121 warning: `sys-file.sav' near offset 0x259: Duplicate value label for `abcdefghijklmn' on str14.
3126 AT_SETUP([fewer data records than indicated by file header])
3127 AT_KEYWORDS([sack synthetic system file negative])
3128 AT_DATA([sys-file.sack], [dnl
3130 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3131 2; 2; 0; 0; >>5<<; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3133 dnl Numeric variables.
3134 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3135 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
3143 dnl Missing record here.
3146 "be 6ee097c3934055d0c4564641636f4b5a" \
3147 "le ae03fe1b888091d6938b5a436d44ac60"
3150 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3152 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3155 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
3156 [error: Error reading case from file `sys-file.sav'.
3168 AT_SETUP([partial data record between variables])
3169 AT_KEYWORDS([sack synthetic system file negative])
3170 AT_DATA([sys-file.sack], [dnl
3172 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3173 2; 2; 0; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3175 dnl Numeric variables.
3176 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3177 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
3185 "be 4bcc085d7d8f0f09c6a4ba8064ffe61c" \
3186 "le 7387fc5edd2740aff92c30ca688d6d9b"
3189 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3191 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3194 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
3195 [error: `sys-file.sav' near offset 0x110: File ends in partial case.
3204 AT_SETUP([partial data record within long string])
3205 AT_KEYWORDS([sack synthetic system file negative])
3206 AT_DATA([sys-file.sack], [dnl
3208 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3209 2; 2; 0; 0; -1; 100.0; "01 Jan 11"; "20:53:52"; s64 ""; i8 0 *3;
3211 dnl Numeric variables.
3212 2; 14; 0; 0; 0x010e00 *2; s8 "STR14";
3213 2; -1; 0; 0; 0; 0; s8 "";
3217 s14 "one data item";
3221 "be 4a9e84f9e679afb7bb71acd0bb7eab89" \
3222 "le 30752606f14ee2deec2854e8e6de4b3b"
3225 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3227 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3230 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
3231 [error: `sys-file.sav' near offset 0x10e: Unexpected end of file.
3240 AT_SETUP([partial compressed data record])
3241 AT_KEYWORDS([sack synthetic system file positive])
3242 AT_DATA([sys-file.sack], [dnl
3244 "$FL2"; s60 "$(#) SPSS DATA FILE PSPP synthetic test file";
3246 6; dnl Nominal case size
3249 -1; dnl Unspecified number of cases.
3251 "01 Jan 11"; "20:53:52"; s64 "PSPP synthetic test file";
3254 dnl Numeric variables.
3255 2; 0; 0; 0; 0x050800 *2; s8 "NUM1";
3256 2; 0; 0; 0; 0x050800 *2; s8 "NUM2";
3258 dnl String variable.
3259 2; 4; 0; 0; 0x010400 *2; s8 "STR4";
3260 2; 8; 0; 0; 0x010800 *2; s8 "STR8";
3261 2; 15; 0; 0; 0x010f00 *2; s8 "STR15";
3262 2; -1; 0; 0; 0; 0; s8 "";
3264 dnl Dictionary termination record.
3267 dnl Compressed data.
3268 i8 1 100 254 253 254 253; i8 255 251; "abcdefgh"; s8 "0123";
3271 "be ef01b16e2e397d979a3a7d20725ebe6d" \
3272 "le 51f7a61e9bc68992469d16c55d6ecd88"
3275 AT_CHECK_UNQUOTED([sack --$[1] sys-file.sack > sys-file.sav], [0], [], [$[2]
3277 AT_DATA([sys-file.sps], [GET FILE='sys-file.sav'.
3280 AT_CHECK([pspp -O format=csv sys-file.sps], [1],
3281 [error: `sys-file.sav' near offset 0x190: File ends in partial case.
3284 num1,num2,str4,str8,str15
3285 -99,0,,abcdefgh,0123 @&t@