Run the quote in file name except on Windows

This should make the CI function again
This commit is contained in:
ISSOtm
2020-09-22 18:13:26 +02:00
parent 91a3c538d9
commit 9742fa731c
6 changed files with 18 additions and 3 deletions

View File

@@ -104,6 +104,10 @@ jobs:
shell: bash
run: |
cp bins/* .
- name: Who am I
shell: bash
run: |
uname
- name: Run tests
shell: bash
run: |

1
test/asm/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
quote\"file.*

View File

@@ -1 +0,0 @@
WARN __FILE__

View File

@@ -1,2 +0,0 @@
warning: quote"file.asm(1): [-Wuser]
quote"file.asm

View File

@@ -20,6 +20,19 @@ tryCmp () {
cmp $1 $2 || (../../contrib/gbdiff.bash $1 $2; echo "${bold}${red}${i%.asm}${variant}.out.bin mismatch!${rescolors}${resbold}"; false)
}
# Add the quote test, except on Windows
if uname | grep -vic mingw; then
cat > quote\"file.asm <<EOF
WARN __FILE__
EOF
cat > quote\"file.out <<EOF
EOF
cat > quote\"file.err <<EOF
warning: quote"file.asm(1): [-Wuser]
quote"file.asm
EOF
fi
for i in *.asm; do
for variant in '' '.pipe'; do
if [ -z "$variant" ]; then