test_version.c revision 315433
1162271Srwatson/*-
2162271Srwatson * Copyright (c) 2003-2017 Tim Kientzle
3172106Srwatson * All rights reserved.
4162271Srwatson *
5162271Srwatson * Redistribution and use in source and binary forms, with or without
6162271Srwatson * modification, are permitted provided that the following conditions
7162271Srwatson * are met:
8162271Srwatson * 1. Redistributions of source code must retain the above copyright
9162271Srwatson *    notice, this list of conditions and the following disclaimer.
10162271Srwatson * 2. Redistributions in binary form must reproduce the above copyright
11162271Srwatson *    notice, this list of conditions and the following disclaimer in the
12162271Srwatson *    documentation and/or other materials provided with the distribution.
13162271Srwatson *
14162271Srwatson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
15162271Srwatson * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16162271Srwatson * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17162271Srwatson * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
18162271Srwatson * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19162271Srwatson * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20162271Srwatson * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21162271Srwatson * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22162271Srwatson * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23162271Srwatson * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24162271Srwatson */
25162271Srwatson#include "test.h"
26162271Srwatson
27162271Srwatson/*
28162271Srwatson * Test that --version option works and generates reasonable output.
29162271Srwatson */
30162271Srwatson
31162271SrwatsonDEFINE_TEST(test_version)
32162271Srwatson{
33162271Srwatson	assertVersion(testprog, "bsdtar");
34172106Srwatson}
35162271Srwatson