File: unit-test

package info (click to toggle)
json-c 0.18%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,412 kB
  • sloc: ansic: 9,153; sh: 546; cpp: 18; makefile: 12
file content (15 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

exec 2>&1

TEST_LIST="test1 test2 test4 testReplaceExisting test_cast test_charcase test_compare test_deep_copy test_double_serializer test_float test_int_add test_json_pointer test_locale test_null test_parse test_parse_int64 test_printbuf test_set_serializer test_set_value test_visit test_object_iterator"

mkdir build
cd build
cmake ..
make
rm -f libjson-c.so.*.*.*
#ln -s /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/libjson-c.so.*.*.* .
for test in $TEST_LIST; do ./tests/$test > /dev/null; done