/* Copyright (C) 1989, Digital Equipment Corporation */ /* All rights reserved. */ /* See the file COPYRIGHT for a full description. */ /* Last Modified On Wed Jul 18 11:39:59 1990 By muller */ M3 = .ROOT/system/driver/m3.local -D../.. -g -w1 -X0C M3FLAGS = #define test_simple_module(m) @@\ test_interface (m) @@\ test_module (m) #define test_interface(f) @@\ test_file(f,i3,ic,is,io) #define test_module(f) @@\ test_file(f,m3,mc,ms,mo) #define test_file(f,src,cf,sf,obj) @@\ source (f.src) @@\ @@\ pgm:: f.obj @@\ f.obj f.cf: FRC @@\ -$(M3) $(M3FLAGS) -k -c f.src 2> f.src.errs #define no_input input(/dev/null) #define input(stdin) @@\ test:: output @@\ output:: pgm @@\ -pgm $(ARGS) < stdin >> pgm.errs 2>> pgm.errs @@\ pgm:: ../../Test.io ../../Test.mo FRC @@\ -$(M3) $(M3FLAGS) -o pgm *.[im]o ../../Test.io ../../Test.mo $(LIBS) 2>pgm.errs @@\ ../../Test.io: ../../Test.i3 @@\ (cd ../..; $(M3) $(M3FLAGS) -c Test.i3) @@\ ../../Test.mo: ../../Test.m3 @@\ (cd ../..; $(M3) $(M3FLAGS) -c Test.m3)