t / interop / i0000-basic.shon commit trace2: correct trace2 field name documentation (24df0d4)
   1#!/bin/sh
   2
   3# Note that this test only works on real version numbers,
   4# as it depends on matching the output to "git version".
   5VERSION_A=v1.6.6.3
   6VERSION_B=v2.11.1
   7
   8test_description='sanity test interop library'
   9. ./interop-lib.sh
  10
  11test_expect_success 'bare git is forbidden' '
  12        test_must_fail git version
  13'
  14
  15test_expect_success "git.a version ($VERSION_A)" '
  16        echo git version ${VERSION_A#v} >expect &&
  17        git.a version >actual &&
  18        test_cmp expect actual
  19'
  20
  21test_expect_success "git.b version ($VERSION_B)" '
  22        echo git version ${VERSION_B#v} >expect &&
  23        git.b version >actual &&
  24        test_cmp expect actual
  25'
  26
  27test_done