003 File Manager
Current Path:
/usr/src/contrib/libucl/tests
usr
/
src
/
contrib
/
libucl
/
tests
/
📁
..
📄
Makefile.am
(1.29 KB)
📁
basic
📄
basic.test
(745 B)
📄
generate.res
(629 B)
📄
generate.test
(306 B)
📄
msgpack.test
(42 B)
📄
run_tests.sh
(1.45 KB)
📁
schema
📄
schema.test
(432 B)
📄
speed.test
(504 B)
📄
streamline.res
(123 B)
📄
streamline.test
(318 B)
📄
test_basic.c
(6.14 KB)
📄
test_generate.c
(10.94 KB)
📄
test_msgpack.c
(10.61 KB)
📄
test_schema.c
(4.18 KB)
📄
test_speed.c
(3.64 KB)
📄
test_streamline.c
(2.94 KB)
Editing: basic.test
#!/bin/sh PROG=${TEST_BINARY_DIR}/test_basic for _tin in ${TEST_DIR}/basic/*.in ; do _t=`echo $_tin | sed -e 's/.in$//'` _out=${TEST_OUT_DIR}/basic.out $PROG $_t.in $_out if [ $? -ne 0 ] ; then echo "Test: $_t failed, output:" cat $_out rm $_out exit 1 fi if [ -f $_t.res ] ; then diff -s $_out $_t.res -u 2>/dev/null if [ $? -ne 0 ] ; then rm $_out echo "Test: $_t output missmatch" exit 1 fi fi rm $_out # Use FD interface $PROG -f $_t.in > /dev/null # JSON output $PROG -j $_t.in > /dev/null $PROG -c -j $_t.in > /dev/null # YAML output $PROG -y $_t.in > /dev/null # Save comments mode $PROG -C $_t.in > /dev/null # Save macro mode $PROG -M $_t.in > /dev/null $PROG -M -C $_t.in > /dev/null done
Upload File
Create Folder