Skip to content

Commit 3853719

Browse files
author
David Sommerseth
committed
Removed not needed code and fixed Makefile to run test unit test
1 parent 734eed9 commit 3853719

7 files changed

Lines changed: 1 addition & 694 deletions

File tree

unit-tests/Makefile

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,5 @@
1-
## This one is important to get right ...
2-
## We need to link in the libxml2mod.so file from here
3-
PYLIBDIR := /usr/lib64/python2.5/site-packages
4-
PYLIBDIR := /usr/lib/python-support/python-libxml2/python2.5
5-
6-
# Defaults, should be fine
7-
CFLAGS=-I. $(shell xml2-config --cflags) -g -Wall $(shell python-config --cflags)
8-
9-
LIBS=$(shell xml2-config --libs) -lxml2mod $(shell python-config --libs)
10-
LIBDIR=-L $(PYLIBDIR)
11-
12-
.SUFFIX=.c .o .so
13-
14-
all : test
15-
16-
demomodule.so : demo.o dmixml.o
17-
@echo "Linking: $@"
18-
@gcc -fPIC --shared -o $@ $^ $(LIBS) $(LIBDIR)
19-
20-
.c.o :
21-
@echo "Compiling $<"
22-
@gcc -fPIC -c $< $(CFLAGS)
23-
24-
#test : demomodule.so
251
test :
26-
@echo "=========================================="
27-
@echo " Running proof-of-concept code"
28-
@echo "=========================================="
29-
@echo ""
30-
@python unit
2+
python unit
313

324
clean :
335
rm -f *.{py[oc],o,so} *~

unit-tests/POCDemo.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

unit-tests/demo.c

Lines changed: 0 additions & 99 deletions
This file was deleted.

unit-tests/demo.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)