aboutsummaryrefslogtreecommitdiff
path: root/openssl/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/tests/Makefile')
-rw-r--r--openssl/tests/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/openssl/tests/Makefile b/openssl/tests/Makefile
new file mode 100644
index 00000000..f7b803eb
--- /dev/null
+++ b/openssl/tests/Makefile
@@ -0,0 +1,30 @@
+# $Id$
+
+OPENSSL_DIR = ../../openssl/openssl
+
+CFLAGS = -g -I${OPENSSL_DIR}/include
+
+# -H -Wl,-t
+
+BIN = resource-set-test
+OBJ = resource-set-test.o
+LIB = ${OPENSSL_DIR}/libcrypto.a
+
+all: ${BIN}
+
+clean:
+ rm -f ${BIN} ${OBJ}
+
+${BIN}: ${OBJ} ${LIB} Makefile
+ ${CC} -g -o $@ ${OBJ} ${LIB}
+
+# This test needs more work
+
+test: ${BIN} test.cer
+ ./${BIN} -v -a AS:17 -i IPv4:10.0.0.44 -d test.cer
+
+test.cer: test.conf
+ ${OPENSSL_DIR}/apps/openssl req -new -x509 -config test.conf -keyout test.key -out test.cer -outform DER
+
+immaculate: clean
+ rm -f test.key test.cer