fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Daniel Rainerfix: version test on shallow, dirty git repo121b8fffa

master
522 B16 linesraw
1#RUN: fish=%fish %fish %s
2
3# Exact tag:
4# 1.2.3
5# Git version:
6# 1.2.3-42-gdeadbeef
7# Git version when no tags are present. Distros should probably not package it like this.
8# 1.2.3-gdeadbeef
9# If the git commit hash is part of the version identifier, it may have a `-dirty` suffix.
10
11$fish -v
12# CHECK: fish, version {{\d+\.\d+\.\d+((-\d+)?-g[0-9a-f]{7,}(-dirty)?)?$}}
13
14set -l workspace_root (status dirname)/../..
15$workspace_root/build_tools/git_version_gen.sh
16# CHECK: {{\d+\.\d+\.\d+((-\d+)?-g[0-9a-f]{7,}(-dirty)?)?$}}