Ejemplo n.º 1
0
int main(
    void)
{
    Test *pTest;
    bool rc;

    pTest = ct_create("BACnet Credential Data Input", NULL);
    /* individual tests */
    rc = ct_addTestFunction(pTest, testCredentialDataInput);
    assert(rc);

    ct_setStream(pTest, stdout);
    ct_run(pTest);
    (void) ct_report(pTest);
    ct_destroy(pTest);

    return 0;
}
Ejemplo n.º 2
0
int main(
    void)
{
    Test *pTest;
    bool rc;

    pTest = ct_create("BACnet Analog Value", NULL);
    /* individual tests */
    rc = ct_addTestFunction(pTest, testAnalog_Value);
    assert(rc);

    ct_setStream(pTest, stdout);
    ct_run(pTest);
    (void) ct_report(pTest);
    ct_destroy(pTest);

    return 0;
}
Ejemplo n.º 3
0
int main(
    void)
{
    Test *pTest;
    bool rc;

    pTest = ct_create("BACnet Lighting Command", NULL);
    /* individual tests */
    rc = ct_addTestFunction(pTest, testBACnetLightingCommandAll);
    assert(rc);

    ct_setStream(pTest, stdout);
    ct_run(pTest);
    (void) ct_report(pTest);
    ct_destroy(pTest);

    return 0;
}
Ejemplo n.º 4
0
int main(
    int argc,
    char *argv[])
{
    Test *pTest;
    bool rc;

    pTest = ct_create("BACnet Life Safety Operation", NULL);
    /* individual tests */
    rc = ct_addTestFunction(pTest, testLSO);
    assert(rc);

    ct_setStream(pTest, stdout);
    ct_run(pTest);
    (void) ct_report(pTest);
    ct_destroy(pTest);

    return 0;
}
Ejemplo n.º 5
0
int main(
    void)
{
    Test *pTest;
    bool rc;

    pTest = ct_create("ringbuf", NULL);

    /* individual tests */
    rc = ct_addTestFunction(pTest, testRingBuf);
    assert(rc);

    ct_setStream(pTest, stdout);
    ct_run(pTest);
    (void) ct_report(pTest);

    ct_destroy(pTest);

    return 0;
}
int main(
    void)
{
    Test *pTest;
    bool rc;

    pTest = ct_create("filename remove path", NULL);

    /* individual tests */
    rc = ct_addTestFunction(pTest, testFilename);
    assert(rc);

    ct_setStream(pTest, stdout);
    ct_run(pTest);
    (void) ct_report(pTest);

    ct_destroy(pTest);

    return 0;
}
Ejemplo n.º 7
0
int main(
    void)
{
    Test *pTest;
    bool rc;

    pTest = ct_create("BACnet ReadProperty", NULL);
    /* individual tests */
    rc = ct_addTestFunction(pTest, testReadProperty);
    assert(rc);
    rc = ct_addTestFunction(pTest, testReadPropertyAck);
    assert(rc);

    ct_setStream(pTest, stdout);
    ct_run(pTest);
    (void) ct_report(pTest);
    ct_destroy(pTest);

    return 0;
}
Ejemplo n.º 8
0
int main(
    void)
{
    Test *pTest;
    bool rc;

    pTest = ct_create("BACnet PrivateTransfer", NULL);
    /* individual tests */
    rc = ct_addTestFunction(pTest, test_Private_Transfer_Request);
    assert(rc);
    rc = ct_addTestFunction(pTest, test_Private_Transfer_Ack);
    assert(rc);
    rc = ct_addTestFunction(pTest, test_Private_Transfer_Error);
    assert(rc);
    rc = ct_addTestFunction(pTest, test_Unconfirmed_Private_Transfer_Request);
    assert(rc);

    ct_setStream(pTest, stdout);
    ct_run(pTest);
    (void) ct_report(pTest);
    ct_destroy(pTest);

    return 0;
}
Ejemplo n.º 9
0
int main(
    void)
{
    Test *pTest;
    bool rc;

    pTest = ct_create("BACnet Time Stamp", NULL);
    /* individual tests */
    rc = ct_addTestFunction(pTest, testTimestampSequence);
    assert(rc);

    rc = ct_addTestFunction(pTest, testTimestampTime);
    assert(rc);

    rc = ct_addTestFunction(pTest, testTimestampTimeDate);
    assert(rc);

    ct_setStream(pTest, stdout);
    ct_run(pTest);
    (void) ct_report(pTest);
    ct_destroy(pTest);

    return 0;
}