1240116Smarcel//
2240116Smarcel// Automated Testing Framework (atf)
3240116Smarcel//
4240116Smarcel// Copyright (c) 2007 The NetBSD Foundation, Inc.
5240116Smarcel// All rights reserved.
6240116Smarcel//
7240116Smarcel// Redistribution and use in source and binary forms, with or without
8240116Smarcel// modification, are permitted provided that the following conditions
9240116Smarcel// are met:
10240116Smarcel// 1. Redistributions of source code must retain the above copyright
11240116Smarcel//    notice, this list of conditions and the following disclaimer.
12240116Smarcel// 2. Redistributions in binary form must reproduce the above copyright
13240116Smarcel//    notice, this list of conditions and the following disclaimer in the
14240116Smarcel//    documentation and/or other materials provided with the distribution.
15240116Smarcel//
16240116Smarcel// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
17240116Smarcel// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18240116Smarcel// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19240116Smarcel// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20240116Smarcel// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
21240116Smarcel// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22240116Smarcel// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23240116Smarcel// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24240116Smarcel// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25240116Smarcel// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26240116Smarcel// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27240116Smarcel// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28240116Smarcel//
29240116Smarcel
30240116Smarcel#include <iostream>
31240116Smarcel
32240116Smarcel#include "atf-c++/macros.hpp"
33240116Smarcel
34240116Smarcel// ------------------------------------------------------------------------
35240116Smarcel// Helper tests for "t_integration".
36240116Smarcel// ------------------------------------------------------------------------
37240116Smarcel
38240116SmarcelATF_TEST_CASE(diff);
39240116SmarcelATF_TEST_CASE_HEAD(diff)
40240116Smarcel{
41240116Smarcel    set_md_var("descr", "Helper test case for the t_integration program");
42240116Smarcel}
43240116SmarcelATF_TEST_CASE_BODY(diff)
44240116Smarcel{
45240116Smarcel    std::cout << "--- a	2007-11-04 14:00:41.000000000 +0100\n";
46240116Smarcel    std::cout << "+++ b	2007-11-04 14:00:48.000000000 +0100\n";
47240116Smarcel    std::cout << "@@ -1,7 +1,7 @@\n";
48240116Smarcel    std::cout << " This test is meant to simulate a diff.\n";
49240116Smarcel    std::cout << " Blank space at beginning of context lines must be "
50240116Smarcel                 "preserved.\n";
51240116Smarcel    std::cout << " \n";
52240116Smarcel    std::cout << "-First original line.\n";
53240116Smarcel    std::cout << "-Second original line.\n";
54240116Smarcel    std::cout << "+First modified line.\n";
55240116Smarcel    std::cout << "+Second modified line.\n";
56240116Smarcel    std::cout << " \n";
57240116Smarcel    std::cout << " EOF\n";
58240116Smarcel}
59240116Smarcel
60240116Smarcel// ------------------------------------------------------------------------
61240116Smarcel// Main.
62240116Smarcel// ------------------------------------------------------------------------
63240116Smarcel
64240116SmarcelATF_INIT_TEST_CASES(tcs)
65240116Smarcel{
66240116Smarcel    // Add helper tests for t_integration.
67240116Smarcel    ATF_ADD_TEST_CASE(tcs, diff);
68240116Smarcel}
69