Index: trunk/tests/uniq_name/Makefile =================================================================== --- trunk/tests/uniq_name/Makefile (revision 2667) +++ trunk/tests/uniq_name/Makefile (revision 2668) @@ -6,8 +6,21 @@ CFLAGS = -Wall -I$(UNM) -I$(LHT) LIB_OBJS=$(LHT)/genht/htsp.o $(LHT)/genht/hash.o $(SRC)/compat_misc.o +all: tester + +test: tester.diff + @echo "*** All ok, QC passed ***" + @rm tester.out + tester: tester.o $(UNM)/uniq_name.o $(LIB_OBJS) tester.o: tester.c $(UNM)/uniq_name.h -$(UNM)/uniq_name.o: $(UNM)/uniq_name.c $(UNM)/uniq_name.h \ No newline at end of file +$(UNM)/uniq_name.o: $(UNM)/uniq_name.c $(UNM)/uniq_name.h + +tester.diff: tester.ref tester.out + @diff -u tester.ref tester.out + +tester.out: tester + ./tester > tester.out + Index: trunk/tests/uniq_name/tester.ref =================================================================== --- trunk/tests/uniq_name/tester.ref (nonexistent) +++ trunk/tests/uniq_name/tester.ref (revision 2668) @@ -0,0 +1,16 @@ +'foo' +'bar' +'bar_dup0' +'baz' +'forced' +'forced_dup1' +'forced_dup2' +'forced_dup3' +'forced_dup4' +'foo_dup5' +'unnamed' +'unnamed_dup6' +'unnamed_dup7' +'anonymous' +'anonymous::0' +'anonymous::1'