Permalink
Browse files

add a noop test, clean up tests/Makefile.am

git-svn-id: http://svn.metadecks.org/libremix/trunk@335 e2d53364-18fc-0310-981e-b60a84739af0
  • Loading branch information...
1 parent ebb9f99 commit 447f11f02eb805643956ebfd04cb0d263c4a7680 conrad committed Jan 30, 2006
Showing with 47 additions and 2 deletions.
  1. +14 −2 src/tests/Makefile.am
  2. +33 −0 src/tests/noop.c
View
@@ -1,10 +1,22 @@
-noinst_PROGRAMS = sndfiletest
+## Process this file with automake to produce Makefile.in
+
+AM_CFLAGS = -Wall -pedantic
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/ctxdata
REMIX_LIBS = ../ctxdata/libctxdata.la ../libremix/libremix.la -ldl
-TESTS = sndfiletest
+# Test programs
+
+test: check
+
+TESTS = noop sndfiletest
+
+noinst_PROGRAMS = $(TESTS)
+noinst_HEADERS = tests.h
+
+noop_SOURCES = noop.c
+noop_LDADD = $(REMIX_LIBS)
sndfiletest_SOURCES = sndfiletest.c
sndfiletest_LDADD = $(REMIX_LIBS) @SNDFILE_LIBS@
View
@@ -0,0 +1,33 @@
+/*
+ * sndfiletest.c
+ *
+ * Copyright (C) 2006 Commonwealth Scientific and Industrial Research
+ * Organisation (CSIRO), Australia.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation for any purpose is hereby granted without fee, provided
+ * that the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation. No representations are made about the suitability of this
+ * software for any purpose. It is provided "as is" without express or
+ * implied warranty.
+ *
+ */
+
+#include <stdlib.h>
+#include <stdio.h>
+
+#include <remix/remix.h>
+
+#include "tests.h"
+
+int
+main (int argc, char ** argv)
+{
+ RemixEnv * env;
+
+ INFO ("+ Creating new RemixEnv");
+ env = remix_init ();
+
+ return 0;
+}

0 comments on commit 447f11f

Please sign in to comment.