]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Move the rest of the tests into the tests subdirectory.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 22 Apr 2012 15:33:41 +0000 (10:33 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 22 Apr 2012 15:33:41 +0000 (10:33 -0500)
21 files changed:
Makefile.am
tests/Makefile.am
tests/parse_int64.test [moved from parse_int64.test with 100% similarity]
tests/test-defs.sh [moved from test-defs.sh with 98% similarity]
tests/test2.c [moved from test2.c with 100% similarity]
tests/test2.expected [moved from test2.expected with 100% similarity]
tests/test2.test [moved from test2.test with 100% similarity]
tests/test4.c [moved from test4.c with 100% similarity]
tests/test4.expected [moved from test4.expected with 100% similarity]
tests/test4.test [moved from test4.test with 100% similarity]
tests/test_cast.c [moved from test_cast.c with 100% similarity]
tests/test_cast.expected [moved from test_cast.expected with 100% similarity]
tests/test_cast.test [moved from test_cast.test with 100% similarity]
tests/test_null.c [moved from test_null.c with 100% similarity]
tests/test_null.expected [moved from test_null.expected with 100% similarity]
tests/test_null.test [moved from test_null.test with 100% similarity]
tests/test_parse.c [moved from test_parse.c with 100% similarity]
tests/test_parse.expected [moved from test_parse.expected with 100% similarity]
tests/test_parse.test [moved from test_parse.test with 100% similarity]
tests/test_parse_int64.c [moved from test_parse_int64.c with 100% similarity]
tests/test_parse_int64.expected [moved from test_parse_int64.expected with 100% similarity]

index cec14fd05cc3ff50c69d3d253f01c81427837925..d4a7bbbe4fc0e9f8d843b449328e196094577a1f 100644 (file)
@@ -39,30 +39,6 @@ libjson_la_SOURCES = \
        linkhash.c \
        printbuf.c
 
-check_PROGRAMS = test2 test4 test_parse_int64 test_null test_cast test_parse
-
-test2_SOURCES = test2.c
-test2_LDADD = $(lib_LTLIBRARIES)
-
-test4_SOURCES = test4.c
-test4_LDADD = $(lib_LTLIBRARIES)
-
-test_parse_int64_SOURCES = test_parse_int64.c
-test_parse_int64_LDADD = $(lib_LTLIBRARIES)
-
-test_null_SOURCES = test_null.c
-test_null_LDADD = $(lib_LTLIBRARIES)
-
-test_cast_SOURCES = test_cast.c
-test_cast_LDADD = $(lib_LTLIBRARIES)
-
-test_parse_SOURCES = test_parse.c
-test_parse_LDADD = $(lib_LTLIBRARIES)
-
-TESTS = test2.test test4.test parse_int64.test test_null.test test_cast.test test_parse.test
-EXTRA_DIST += $(TESTS)
-testsubdir=testSubDir
-TESTS_ENVIRONMENT       = top_builddir=$(top_builddir)
 
 distclean-local:
        -rm -rf $(testsubdir)
index ed5d2a5d2025297239d75ca5372511a0eaf564e6..d899c5412af4e82814498ad74edcb573c82fdbff 100644 (file)
@@ -1,17 +1,25 @@
 
 include ../Makefile.am.inc
 
-#lib_LTLIBRARIES = ../libjson.la
+lib_LTLIBRARIES = $(top_builddir)/libjson.la
 
-#check_PROGRAMS = test1 test2 test4 test_parse_int64 test_null test_cast test_parse
-check_PROGRAMS = test1
+check_PROGRAMS = test1 test2 test4 test_parse_int64 test_null test_cast test_parse
 
-#test1_SOURCES = test1.c
-#test1_LDADD = $(lib_LTLIBRARIES)
-test1_LDADD = $(top_builddir)/libjson.la
+test1_LDADD = $(lib_LTLIBRARIES)
 
-#TESTS = test1.test test2.test test4.test parse_int64.test test_null.test test_cast.test test_parse.test
-TESTS = test1.test
+test2_LDADD = $(lib_LTLIBRARIES)
+
+test4_LDADD = $(lib_LTLIBRARIES)
+
+test_parse_int64_LDADD = $(lib_LTLIBRARIES)
+
+test_null_LDADD = $(lib_LTLIBRARIES)
+
+test_cast_LDADD = $(lib_LTLIBRARIES)
+
+test_parse_LDADD = $(lib_LTLIBRARIES)
+
+TESTS = test1.test test2.test test4.test parse_int64.test test_null.test test_cast.test test_parse.test
 EXTRA_DIST=
 EXTRA_DIST += $(TESTS)
 
similarity index 100%
rename from parse_int64.test
rename to tests/parse_int64.test
similarity index 98%
rename from test-defs.sh
rename to tests/test-defs.sh
index 2014b37a51834de6e1c4990d8571ebcffa70c22d..b9b0f60da6f9e0d802cad1ccba09d97be0467245 100755 (executable)
@@ -1,5 +1,4 @@
-
-#! /bin/sh
+#!/bin/sh
 
 # Make sure srcdir is an absolute path.  Supply the variable
 # if it does not exist.  We want to be able to run the tests
@@ -22,6 +21,8 @@ case "$top_builddir" in
     *) top_builddir=`\cd ${top_builddir-..} && pwd` ;;
 esac
 
+top_builddir=${top_builddir}/tests
+
 progname=`echo "$0" | sed 's,^.*/,,'`
 testname=`echo "$progname" | sed 's,-.*$,,'`
 testsubdir=${testsubdir-testSubDir}
similarity index 100%
rename from test2.c
rename to tests/test2.c
similarity index 100%
rename from test2.expected
rename to tests/test2.expected
similarity index 100%
rename from test2.test
rename to tests/test2.test
similarity index 100%
rename from test4.c
rename to tests/test4.c
similarity index 100%
rename from test4.expected
rename to tests/test4.expected
similarity index 100%
rename from test4.test
rename to tests/test4.test
similarity index 100%
rename from test_cast.c
rename to tests/test_cast.c
similarity index 100%
rename from test_cast.expected
rename to tests/test_cast.expected
similarity index 100%
rename from test_cast.test
rename to tests/test_cast.test
similarity index 100%
rename from test_null.c
rename to tests/test_null.c
similarity index 100%
rename from test_null.expected
rename to tests/test_null.expected
similarity index 100%
rename from test_null.test
rename to tests/test_null.test
similarity index 100%
rename from test_parse.c
rename to tests/test_parse.c
similarity index 100%
rename from test_parse.test
rename to tests/test_parse.test
similarity index 100%
rename from test_parse_int64.c
rename to tests/test_parse_int64.c