mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-01 23:37:48 +00:00
Add automated test for version consistency
Automatically check that the version number constants (__RGBDS_MAJOR__ etc.) match `rgbasm -V` Should avoid the problem with 0.4.2's release...
This commit is contained in:
@@ -22,6 +22,9 @@ tryCmp () {
|
||||
cmp $1 $2 || (../../contrib/gbdiff.bash $1 $2; echo "${bold}${red}${i%.asm}${variant}.out.bin mismatch!${rescolors}${resbold}"; false)
|
||||
}
|
||||
|
||||
# Add the version constants test, outputting the closest tag to the HEAD
|
||||
git describe --tags --abbrev=0 > version.out
|
||||
|
||||
# Add the quote test, except on Windows
|
||||
if uname | grep -viq mingw; then
|
||||
cat > quote\"file.asm <<EOF
|
||||
|
||||
Reference in New Issue
Block a user