summaryrefslogtreecommitdiffstats
path: root/unit-tests/Makefile
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-12-10 19:52:35 +0100
committerDavid Sommerseth <davids@redhat.com>2009-12-10 19:52:35 +0100
commit38537193a62d45db108527d242988f6dc13793af (patch)
tree0bfe12a66334a66ed06ca0b7776f51fd8c580dd2 /unit-tests/Makefile
parent734eed972d6065f8b71590b95b9a2f97573a2dcf (diff)
downloadpython-dmidecode-38537193a62d45db108527d242988f6dc13793af.tar.gz
python-dmidecode-38537193a62d45db108527d242988f6dc13793af.tar.xz
python-dmidecode-38537193a62d45db108527d242988f6dc13793af.zip
Removed not needed code and fixed Makefile to run test unit test
Diffstat (limited to 'unit-tests/Makefile')
-rw-r--r--unit-tests/Makefile30
1 files changed, 1 insertions, 29 deletions
diff --git a/unit-tests/Makefile b/unit-tests/Makefile
index 01706a3..be2fcf9 100644
--- a/unit-tests/Makefile
+++ b/unit-tests/Makefile
@@ -1,33 +1,5 @@
-## This one is important to get right ...
-## We need to link in the libxml2mod.so file from here
-PYLIBDIR := /usr/lib64/python2.5/site-packages
-PYLIBDIR := /usr/lib/python-support/python-libxml2/python2.5
-
-# Defaults, should be fine
-CFLAGS=-I. $(shell xml2-config --cflags) -g -Wall $(shell python-config --cflags)
-
-LIBS=$(shell xml2-config --libs) -lxml2mod $(shell python-config --libs)
-LIBDIR=-L $(PYLIBDIR)
-
-.SUFFIX=.c .o .so
-
-all : test
-
-demomodule.so : demo.o dmixml.o
- @echo "Linking: $@"
- @gcc -fPIC --shared -o $@ $^ $(LIBS) $(LIBDIR)
-
-.c.o :
- @echo "Compiling $<"
- @gcc -fPIC -c $< $(CFLAGS)
-
-#test : demomodule.so
test :
- @echo "=========================================="
- @echo " Running proof-of-concept code"
- @echo "=========================================="
- @echo ""
- @python unit
+ python unit
clean :
rm -f *.{py[oc],o,so} *~