diff --git a/test/Makefile b/test/Makefile index 9cd3cb32..cac18293 100644 --- a/test/Makefile +++ b/test/Makefile @@ -160,6 +160,8 @@ TESTFILES += ../image.json TESTFILES += ../iq.db TESTFILES += ../ntenum.db TESTFILES += ../const.db +TESTFILES += ../qgroup.cmd +TESTFILES += ../qgroup.json TESTS += testqgroup PROD_SRCS_RTEMS += rtemsTestData.c diff --git a/test/qgroup.cmd b/test/qgroup.cmd new file mode 100644 index 00000000..82e8f0d3 --- /dev/null +++ b/test/qgroup.cmd @@ -0,0 +1 @@ +dbLoadGroup("../qgroup.json", "N=tst:") diff --git a/test/qgroup.json b/test/qgroup.json new file mode 100644 index 00000000..79478d9c --- /dev/null +++ b/test/qgroup.json @@ -0,0 +1,5 @@ +{ + "$(N)fromFile": { + "value": {"+type": "const", "+const": 3} + } +} diff --git a/test/testqgroup.cpp b/test/testqgroup.cpp index fc74ab20..b9f61e38 100644 --- a/test/testqgroup.cpp +++ b/test/testqgroup.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include "testioc.h" #include "utilpvt.h" @@ -715,11 +716,29 @@ void testConst() ); } +void testDbLoadGroup() +{ + testDiag("%s", __func__); + TestClient ctxt; + + auto val(ctxt.get("tst:fromFile").exec()->wait(5.0)); + testStrEq(std::string(SB()<