1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5PACKAGE= tests 6FILESGROUPS= TESTS 7TESTSPACKAGE= ${PACKAGE} 8 9LIBXOSRC= ${SRCTOP}/contrib/libxo 10 11# Override the default suffix transformation rules for .c/.o -> .out 12.SUFFIXES: 13.SUFFIXES: .c .err .o .out .sh 14 15.PATH: 16.PATH.c: ${LIBXOSRC}/libxo ${LIBXOSRC}/tests/core 17.PATH.err: ${LIBXOSRC}/tests/core/saved 18.PATH.out: ${LIBXOSRC}/tests/core/saved 19 20.c.out .o.out: 21 22TESTSDIR= ${TESTSBASE}/lib/libxo 23 24ATF_TESTS_SH+= functional_test 25 26BINDIR= ${TESTSDIR} 27 28FILES+= test_01.E.err 29FILES+= test_01.E.out 30FILES+= test_01.H.err 31FILES+= test_01.H.out 32FILES+= test_01.HIPx.err 33FILES+= test_01.HIPx.out 34FILES+= test_01.HP.err 35FILES+= test_01.HP.out 36FILES+= test_01.J.err 37FILES+= test_01.J.out 38FILES+= test_01.JP.err 39FILES+= test_01.JP.out 40FILES+= test_01.T.err 41FILES+= test_01.T.out 42FILES+= test_01.X.err 43FILES+= test_01.X.out 44FILES+= test_01.XP.err 45FILES+= test_01.XP.out 46FILES+= test_01.err 47FILES+= test_01.out 48FILES+= test_02.E.err 49FILES+= test_02.E.out 50FILES+= test_02.H.err 51FILES+= test_02.H.out 52FILES+= test_02.HIPx.err 53FILES+= test_02.HIPx.out 54FILES+= test_02.HP.err 55FILES+= test_02.HP.out 56FILES+= test_02.J.err 57FILES+= test_02.J.out 58FILES+= test_02.JP.err 59FILES+= test_02.JP.out 60FILES+= test_02.T.err 61FILES+= test_02.T.out 62FILES+= test_02.X.err 63FILES+= test_02.X.out 64FILES+= test_02.XP.err 65FILES+= test_02.XP.out 66FILES+= test_02.err 67FILES+= test_02.out 68FILES+= test_03.E.err 69FILES+= test_03.E.out 70FILES+= test_03.H.err 71FILES+= test_03.H.out 72FILES+= test_03.HIPx.err 73FILES+= test_03.HIPx.out 74FILES+= test_03.HP.err 75FILES+= test_03.HP.out 76FILES+= test_03.J.err 77FILES+= test_03.J.out 78FILES+= test_03.JP.err 79FILES+= test_03.JP.out 80FILES+= test_03.T.err 81FILES+= test_03.T.out 82FILES+= test_03.X.err 83FILES+= test_03.X.out 84FILES+= test_03.XP.err 85FILES+= test_03.XP.out 86FILES+= test_03.err 87FILES+= test_03.out 88FILES+= test_04.E.err 89FILES+= test_04.E.out 90FILES+= test_04.H.err 91FILES+= test_04.H.out 92FILES+= test_04.HIPx.err 93FILES+= test_04.HIPx.out 94FILES+= test_04.HP.err 95FILES+= test_04.HP.out 96FILES+= test_04.J.err 97FILES+= test_04.J.out 98FILES+= test_04.JP.err 99FILES+= test_04.JP.out 100FILES+= test_04.T.err 101FILES+= test_04.T.out 102FILES+= test_04.X.err 103FILES+= test_04.X.out 104FILES+= test_04.XP.err 105FILES+= test_04.XP.out 106FILES+= test_05.E.err 107FILES+= test_05.E.out 108FILES+= test_05.H.err 109FILES+= test_05.H.out 110FILES+= test_05.HIPx.err 111FILES+= test_05.HIPx.out 112FILES+= test_05.HP.err 113FILES+= test_05.HP.out 114FILES+= test_05.J.err 115FILES+= test_05.J.out 116FILES+= test_05.JP.err 117FILES+= test_05.JP.out 118FILES+= test_05.T.err 119FILES+= test_05.T.out 120FILES+= test_05.X.err 121FILES+= test_05.X.out 122FILES+= test_05.XP.err 123FILES+= test_05.XP.out 124FILES+= test_06.E.err 125FILES+= test_06.E.out 126FILES+= test_06.H.err 127FILES+= test_06.H.out 128FILES+= test_06.HIPx.err 129FILES+= test_06.HIPx.out 130FILES+= test_06.HP.err 131FILES+= test_06.HP.out 132FILES+= test_06.J.err 133FILES+= test_06.J.out 134FILES+= test_06.JP.err 135FILES+= test_06.JP.out 136FILES+= test_06.T.err 137FILES+= test_06.T.out 138FILES+= test_06.X.err 139FILES+= test_06.X.out 140FILES+= test_06.XP.err 141FILES+= test_06.XP.out 142FILES+= test_07.E.err 143FILES+= test_07.E.out 144FILES+= test_07.H.err 145FILES+= test_07.H.out 146FILES+= test_07.HIPx.err 147FILES+= test_07.HIPx.out 148FILES+= test_07.HP.err 149FILES+= test_07.HP.out 150FILES+= test_07.J.err 151FILES+= test_07.J.out 152FILES+= test_07.JP.err 153FILES+= test_07.JP.out 154FILES+= test_07.T.err 155FILES+= test_07.T.out 156FILES+= test_07.X.err 157FILES+= test_07.X.out 158FILES+= test_07.XP.err 159FILES+= test_07.XP.out 160FILES+= test_08.E.err 161FILES+= test_08.E.out 162FILES+= test_08.H.err 163FILES+= test_08.H.out 164FILES+= test_08.HIPx.err 165FILES+= test_08.HIPx.out 166FILES+= test_08.HP.err 167FILES+= test_08.HP.out 168FILES+= test_08.J.err 169FILES+= test_08.J.out 170FILES+= test_08.JP.err 171FILES+= test_08.JP.out 172FILES+= test_08.T.err 173FILES+= test_08.T.out 174FILES+= test_08.X.err 175FILES+= test_08.X.out 176FILES+= test_08.XP.err 177FILES+= test_08.XP.out 178FILES+= test_09.E.err 179FILES+= test_09.E.out 180FILES+= test_09.H.err 181FILES+= test_09.H.out 182FILES+= test_09.HIPx.err 183FILES+= test_09.HIPx.out 184FILES+= test_09.HP.err 185FILES+= test_09.HP.out 186FILES+= test_09.J.err 187FILES+= test_09.J.out 188FILES+= test_09.JP.err 189FILES+= test_09.JP.out 190FILES+= test_09.T.err 191FILES+= test_09.T.out 192FILES+= test_09.X.err 193FILES+= test_09.X.out 194FILES+= test_09.XP.err 195FILES+= test_09.XP.out 196FILES+= test_10.E.err 197FILES+= test_10.E.out 198FILES+= test_10.H.err 199FILES+= test_10.H.out 200FILES+= test_10.HIPx.err 201FILES+= test_10.HIPx.out 202FILES+= test_10.HP.err 203FILES+= test_10.HP.out 204FILES+= test_10.J.err 205FILES+= test_10.J.out 206FILES+= test_10.JP.err 207FILES+= test_10.JP.out 208FILES+= test_10.T.err 209FILES+= test_10.T.out 210FILES+= test_10.X.err 211FILES+= test_10.X.out 212FILES+= test_10.XP.err 213FILES+= test_10.XP.out 214FILES+= test_10.err 215FILES+= test_10.out 216FILES+= test_11.E.err 217FILES+= test_11.E.out 218FILES+= test_11.H.err 219FILES+= test_11.H.out 220FILES+= test_11.HIPx.err 221FILES+= test_11.HIPx.out 222FILES+= test_11.HP.err 223FILES+= test_11.HP.out 224FILES+= test_11.J.err 225FILES+= test_11.J.out 226FILES+= test_11.JP.err 227FILES+= test_11.JP.out 228FILES+= test_11.T.err 229FILES+= test_11.T.out 230FILES+= test_11.X.err 231FILES+= test_11.X.out 232FILES+= test_11.XP.err 233FILES+= test_11.XP.out 234 235PROGS+= test_01 236PROGS+= test_02 237PROGS+= test_03 238PROGS+= test_04 239PROGS+= test_05 240PROGS+= test_06 241PROGS+= test_07 242PROGS+= test_08 243PROGS+= test_09 244PROGS+= test_10 245PROGS+= test_11 246 247CFLAGS+= -I${LIBXOSRC}/libxo -I${.CURDIR:H} 248 249LIBADD= xo util 250 251SUBDIR+= encoder 252 253.if ${MACHINE} == "host" 254# make it easy to test without install 255TESTSDIR= ${.OBJDIR} 256.endif 257 258.include <bsd.test.mk> 259