Browse Source

Move the rest of the tests into the tests subdirectory.

tags/json-c-0.10-20120530
Eric Haszlakiewicz 13 years ago
parent
commit
c1b8891a13
21 changed files with 19 additions and 34 deletions
  1. +0
    -24
      Makefile.am
  2. +16
    -8
      tests/Makefile.am
  3. +0
    -0
      tests/parse_int64.test
  4. +3
    -2
      tests/test-defs.sh
  5. +0
    -0
      tests/test2.c
  6. +0
    -0
      tests/test2.expected
  7. +0
    -0
      tests/test2.test
  8. +0
    -0
      tests/test4.c
  9. +0
    -0
      tests/test4.expected
  10. +0
    -0
      tests/test4.test
  11. +0
    -0
      tests/test_cast.c
  12. +0
    -0
      tests/test_cast.expected
  13. +0
    -0
      tests/test_cast.test
  14. +0
    -0
      tests/test_null.c
  15. +0
    -0
      tests/test_null.expected
  16. +0
    -0
      tests/test_null.test
  17. +0
    -0
      tests/test_parse.c
  18. +0
    -0
      tests/test_parse.expected
  19. +0
    -0
      tests/test_parse.test
  20. +0
    -0
      tests/test_parse_int64.c
  21. +0
    -0
      tests/test_parse_int64.expected

+ 0
- 24
Makefile.am View 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)


+ 16
- 8
tests/Makefile.am View 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)



parse_int64.test → tests/parse_int64.test View File


test-defs.sh → tests/test-defs.sh View File

@@ -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}

test2.c → tests/test2.c View File


test2.expected → tests/test2.expected View File


test2.test → tests/test2.test View File


test4.c → tests/test4.c View File


test4.expected → tests/test4.expected View File


test4.test → tests/test4.test View File


test_cast.c → tests/test_cast.c View File


test_cast.expected → tests/test_cast.expected View File


test_cast.test → tests/test_cast.test View File


test_null.c → tests/test_null.c View File


test_null.expected → tests/test_null.expected View File


test_null.test → tests/test_null.test View File


test_parse.c → tests/test_parse.c View File


test_parse.expected → tests/test_parse.expected View File


test_parse.test → tests/test_parse.test View File


test_parse_int64.c → tests/test_parse_int64.c View File


test_parse_int64.expected → tests/test_parse_int64.expected View File


Loading…
Cancel
Save